Tuesday, July 6, 2010

Solaris 10 - replace failed hardisk on mirror setting

#metastat
#metadb -d c0t1d1s7
#metadetach -f d40 d42
#metaclear -f d42
#cfgadm -al
#cfgadm -c unconfigure c1::dsk/c0t1d0

take out old disk
put in new disk

#cfgadm -c configure c1::dsk/c0t1d0
#format
#prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
#metadb -a -c 2 c0t1d0s7
#metainit -f d42 1 1 c0t1d0s5
#metattach d40 d42
#metastat -p
#metadevadm -u c0t1d0

1 comment:

fLufyz said...

to sync back all mirrors:
#metasync -r