You are on page 1of 2

prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2 <To label the HDD> metadb a c 3 -f c0t0d0s7 c0t1d0s7 <To Create MetaDB> metadb

I <To check the MetaDB> metainit -f d11 1 1 c0t0d0s0 metainit -f d12 1 1 c0t1d0s0 metainit d10 -m d11 <for root> metaroot d10 metainit d21 1 1 c0t0d0s1 metainit d22 1 1 c0t1d0s1 metainit d20 -m d21 <for swap> metainit d31 1 1 c0t0d0s3 metainit d32 1 1 c0t1d0s3 metainit d30 -m d31 <for opt> make entry in /etc/vfstab for / swap and /opt /dev/md/dsk/d10 /dev/md/dsk/d20 /dev/md/dsk/d30 >REBOOT< metattach d10 d12 metattach d20 d22 metattach d30 d32 metastat d10 metastat d20 metastat d30 You will want to update the Openboot with the prior alias for the boot devices. You can do this by doing the following: ls -l /dev/dsk/c0t0d0s0 ls -l /dev/dsk/c0t1d0s0 You output will look similar to the following lrwxrwxrwx 1 root root 42 Jul 12 2007 /dev/dsk/c0t0d0s0 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:a lrwxrwxrwx 1 root root 42 Jul 12 2007 /dev/dsk/c0t1d0s0 -> ../../devices/pci@1e,600000/ide@d/sd@1,0:a You will need to update the bold part above, with your output. You will then run the following command from the OS eeprom "nvramrc=devalias mirror /pci@1e,600000/ide@d/disk@0,0:a devalias mirror-a /pci@1e,600000/ide@d/disk@1,0:a" eeprom boot-device="mirror mirror-a" /dev/md/rdsk/d10 /dev/md/rdsk/d20 /dev/md/rdsk/d30 / ufs 1 no swap swap no /opt ufs 2 yes -

eeprom "use-nvramrc?=true" The below commands for doing this are from the OK prompt, don't do this else wise. "nvalias mirror /pci@1e,600000/ide@d/disk@0,0:a mirror-a /pci@1e,600000/ide@d/disk@1,0:a" "setenv boot-device mirror mirror-a" If you are mirroring just the two internal drives, you will want to add the following line to /etc/system to allow it to boot from a single drive. This will bypass the SVM Quorum rule set md:mirrored_root_flag = 1 Please note that if you are running a Sparc platform you can use the installboot command in order to install the boot blocks onto the head of the drive. For a UFS based File system you will use the below command. installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0 And on a ZFS based File System you will use the below command. installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0 If you are on a X86 Platform you will want to use installgrub to do similar functions, below you will find references for that /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0

You might also like