You are on page 1of 2

#####ROOT MIRRORING##### Create a slice (slice7) with 20MB no need to create file system # prtvtoc /dev/rdsk/c0t0d0s0 >/vtoc # fmthard

-s /vtoc /dev/rdsk/c0t1d0s0 # cp /etc/system /etc/system.bkup # cp /etc/vfstab /etc/vfstab.bkup # metadb -a -f -c 3 c0t0d0s7 --- to create state database # metadb -a -f -c 3 c0t1d0s7 # metainit -f d0 1 1 /dev/dsk/c0t0d0s0 ----> to create meta device # metainit -f d1 1 1 /dev/dsk/c0t1d0s0 # metainit d10 -m d0 -----> attaching a 1st submirror # metaroot d10 ----> changing the Boot Path # init 6 # df -h ----> check for the "/" filesystem # metattach d10 d1 ----> attaching 2nd submirror ----->second hdd

# metastat | grep % ----> check for the resync process IMP: Dont reboot when r esync is going on After completing 100% # prtconf -pvv | grep bootpath # init 0 ok> boot disk3 ----> 2nd disk # prtconf -pvv | grep bootpath ----> verify whether it is showing "d10" ##### root unmirroring ##### # metadetach d10 d1 # metaroot /dev/dsk/c0t0d0s0 # init 6 # df -h # prtconf -pvv | grep bootpath ---> verify whether it is showing "/dev/dsk/c0t0 d0s0" then boot through 2nd disk ###### Boot Block ##### Installing the Boot Block If you're using this procedure because you had to replace a failed hard drive, y

ou need to reinstall the boot block. /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk dev/rdsk/c0t3d 0s0

You might also like