I will show you how to replace disk on server solaris with SVM configuration.
I have case that the server has 1 failed disk and need to be replaced. Below is the step to replace the failed disk.
Step:
#metadetach -f d10 d12
#metadetach -f d20 d22
#metastat -p
#metadb -d c0t1d0s7
#cfgadm –al
#cfgadm –c unconfigure c0::dsk/c0t1d0
Processing to replace disk
#cfgadm –c configure c0::dsk/c0t1d0
#cfgadm –al
# format
#prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
#metadb -a -c3 -f c0t1d0s7
#metaclear d22
#metaclear d12
#metainit -f d12 1 1 c0t1d0s0
#metainit -f d22 1 1 c0t1d0s1
#metattach d10 d12
#metattach d20 d22
Thanks.