How to replace a broken disk on Solaris Volume Manager (SVM)

Sep 5, 2016 5:38 PM

We have Solaris box in hardware Fujitsu Sparc M3000 with 4 internal disks configured on SVM. Bellow the internal disks information : # echo | format AVAILABLE DISK SELECTIONS: 0. c0t0d0 <fujitsu-mbd2147rc-3701 14087="" 24="" 2="" 848="" alt="" cyl="" hd="" sec=""> /pci@0,600000/pci@0/pci@0/scsi@0/sd@0,0 1. c0t1d0 <fujitsu-mbd2147rc-3701 14087="" 24="" 2="" 848="" alt="" cyl="" hd="" sec=""> /pci@0,600000/pci@0/pci@0/scsi@0/sd@1,0 2. c3t2d31 <sun-universalxport-0735 2="" 64="" 8="" alt="" cyl="" hd="" sec=""> /pci@1,700000/pci@0/pci@9/SUNW,emlxs@0/fp@0,0/ssd@w202500a0b868b254,1f 3. c4t0d31 <sun-universalxport-0735 2="" 64="" 8="" alt="" cyl="" hd="" sec=""> /pci@1,700000/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0/ssd@w202400a0b868b254,1f
There were a problem with with disk c0t0d0 in "Maintenance" status at sub-mirror d11. This tutorial will give step by step how to replace disk c0t0d0 in SVM environment.
Bellow the mirroring status :
# metastat d1: Mirror Submirror 0: d12 State: Okay Wed Jun 12 00:00:08 2014 Submirror 1: d11 State: Needs maintenance Thu Jun 13 01:50:26 2014 Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 102411264 blocks (48 GB) d12: Submirror of d1 State: Okay Wed Jun 12 00:00:08 2014 Size: 102411264 blocks (48 GB) Stripe 0: Device Start Dbase State Reloc Hot Spare Time c0t1d0s0 0 No Okay Yes Mon Mar 1 13:45:19 2010 d11: Submirror of d1 State: Needs maintenance Thu Jun 13 01:50:26 2013 Invoke: metareplace d1 c0t0d0s0 Size: 102411264 blocks (48 GB) Stripe 0: Device Start Dbase State Reloc Hot Spare Time c0t0d0s0 0 No Maintenance Yes Thu Jun 13 01:50:26 2014 Metadb check : # metadb flags first blk block count a m p luo 16 8192 /dev/dsk/c0t0d0s7 a p luo 8208 8192 /dev/dsk/c0t0d0s7 Then we want to replace the disk c0t0d0 which goes to maintenance status. Bellow the step-by-step on how to replace it : 1. Detach Sub-Mirror d11 : # metadetach d1 d11 2. Remove any metadb on the failed disk : # metadb # metadb -d /dev/dsk/c0t0d0s7 3. Disconnect disk from OS to be ready physically remove: # cfgadm -alv # cfgadm -c unconfigure c0::dsk/c0t0d0 4. Physically remove and insert disk >> Physically remove disk c0t0d0 >> Physically insert new disk for c0t0d0 5. Scan newly disk installed : # devfsadm # cfgadm -alv 6. Instal bootblk to new disk (c0t0d0) in slice 0: # installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0 7. Add the metadb replica that were deleted : # metadb -afc 1 c0t0d0s7 8. Attached the detached mirror and sub-mirror of metadevice of c0t0d0: # metattach d1 d11 9. Check synchronization status use -c command: # metastat -c Done

0 comments:

Popular Posts

Copyright @ 2010-2019 Suryaningrat Suwardi. Powered by Blogger.

Article list :