To replace a slice by using metareplace option

What you would do if you desire to replace a slice by using metareplace option?

E

Expert

Verified

Usually we employ metareplace while we have faulty submirrors and once replaced it resyncs along with the failed components.

1) Search the meta state databases on the slice

#metadb -i

2) If any meta state databases exist eliminate them

#metadb –d c0t0d0sX where x refer to slice number

3) Once the meta state databases are eliminated we can employ cfgadm to unconfigure the device

#cfgadm -c unconfigure diskname

Once unconfigured replace the disk & configure it as given below

4)#cfgadm –c configure diskname

5) Now copy the Volume Table Of Contents (VTOC) to the new disk

#prtvtoc /dev/rdsk/devicename | fmthard -s -

/dev/rdsk/devicename

6) Once the VTOC is in place now employ metareplace command to replace the faulty meta devices

#metareplace -e d11 devicename (Where d11 is the meta device)

   Related Questions in Science

©TutorsGlobe All rights reserved 2022-2023.