How to replace a failed root disk using Solaris Disk Manager
In this example, c0t0d0 and c0t1d0 are the root disks and they are mirrored using Solaris disk manager. The disk c0t0d0 failed and needs replacing. The failed disk c0t0d0 holds meta mirror d10,d11,d13,d14,d15 and d16.
Remove the mirrors from the failed disk
metadetach -f d0 d10
metadetach -f d1 d11
metadetach -f d3 d13
metadetach -f d4 d14
metadetach -f d5 d15
metadetach -f d6 d16
Clear the meta devices
metaclear d10
metaclear d11
metaclear d13
metaclear d14
metaclear d15
metaclear d16
metadb –i
Remove the failed disk from the meta db
metadb -d c0t0d0s7
metadb –i
Remove the disk from OS
cfgadm -c unconfigure c0::dsk/c0t0d0
Replace the failed disk, possibly by the vendor
Configure the new disk in the OS and create new devices
cfgadm -c configure c0::dsk/c0t0d0
devfsadm –C
Create the partitions same as the existing root disk c0t1d0
prtvtoc /dev/rdsk/c0t1d0s2|fmthard -s - /dev/rdsk/c0t0d0s2
Install the boot block and make it ready for OS
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s2
metadb -a -c 3 c0t0d0s7
metadb -i
Create the new meta devices on the partitions of replaced disk
metainit -f d10 1 1 c0t0d0s0
metainit -f d11 1 1 c0t0d0s1
metainit -f d13 1 1 c0t0d0s3
metainit -f d14 1 1 c0t0d0s4
metainit -f d15 1 1 c0t0d0s5
metainit -f d16 1 1 c0t0d0s6
Re establish the mirror
metattach d0 d10
metattach d1 d11
metattach d3 d13
metattach d4 d14
metattach d5 d15
metattach d6 d16
No comments:
Post a Comment