Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot get software RAID-1 going on root (/) on Sun V240's

807557Jul 11 2005 — edited Jan 30 2006
Hi All,

I for the life of me cannot get software RAID-1 going on the root file-system. I've followed the instructions in Solaris Volume Manager Admin. Guide and I think I'm doing it right. This is in a Sun V240 with two 137GB drives.

I basically do the following:

Disk0 - c1t0d0s0
Disk1 - c1t0d1s0

prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
prtvtoc /dev/rdsk/c1t1d0s2 (Double check that disk 1 looks like disk 2)

metadb -af -c 2 /dev/rdsk/c1t0d0s3 /dev/rdsk/c1t0d0s4
metadb -af -c 2 /dev/rdsk/c1t1d0s3 /dev/rdsk/c1t1d0s4

metainit -f d10 1 1 /dev/rdsk/c1t0d0s0
metainit -f d20 1 1 /dev/rdsk/c1t1d0s0

metainit d0 -m d10
metaroot d0
lockfs -fa
reboot

......
Before I reboot, I do a metastat and it shows the following:
# metastat 
d0: Mirror
    Submirror 0: d10
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20494464 blocks (9.8 GB)

d10: Submirror of d0
    State: Okay         
    Size: 20494464 blocks (9.8 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s0          0     No            Okay   Yes 


d20: Concat/Stripe
    Size: 20494464 blocks (9.8 GB)
    Stripe 0:
        Device     Start Block  Dbase   Reloc
        c1t1d0s0          0     No      Yes
Upon reboot, I get this:
Rebooting with command: boot                                          
Boot device: /pci@1c,600000/scsi@2/disk@0,0:a  File and args: 
SunOS Release 5.10 Version Generic 64-bit
Copyright 1983-2005 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Cannot open mirrored root device, error 19
Cannot remount root on /pseudo/md@0:0,0,blk fstype ufs

panic[cpu1]/thread=180e000: vfs_mountroot: cannot remount root

000000000180b960 genunix:vfs_mountroot+2b8 (18aa800, 0, 185e6f8, 3000153dc40, 1859ce8, 4)
  %l0-3: 0000000000000000 0000000000000003 00000000018a40b0 00000000018a40b0
  %l4-7: 000000000185b800 00000000011cb000 00000000018aa800 0000000001834340
000000000180ba20 genunix:main+88 (1813c98, 1011c00, 1834340, 18a7c00, 0, 1813800)
  %l0-3: 000000000180e000 0000000000000001 000000000180c000 0000000001835200
  %l4-7: 0000000070002000 0000000000000001 000000000181ba54 0000000000000000

syncing file systems... done
skipping system dump - no dump device configured
rebooting...
HELP! What am I doing wrong? Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2006
Added on Jul 11 2005
15 comments
300 views