How to Replace Solaris Mirror Disk
First we need to remove metadb databse from disk
metadb -d c1t2d0s7
then unconfigure disk
cfgadm -c unconfigure c1::dsk/c1t2d0
then insert new disk and reconfigure it
cfgadm -c configure c1::dsk/c1t2d0
after disk is available we need working disks structure on new disk
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t2d0s2
then
metareplace -e d0 c1t2d0s0
metareplace -e d3 c1t2d0s1
metareplace -e d6 c1t2d0s3
metareplace -e d9 c1t2d0s4
metareplace -e d12 c1t2d0s5
metadb -a -c 2 /dev/dsk/c1t2d0s7
No comments:
Post a Comment