Replace a Disk with DiskSuite
Tags:
Replacing a Disk with DiskSuite (Solaris Volume Manager) 1. Check the status using metastat or metdb. 2. Record the disk partition layout: # prtvtoc /dev/rdsk/c1t3d0s0 > /var/tmp/c1t3d0s0.vtoc or # format specify disk (enter its number0: 10 format> partition parition> name Enter table name (remember quotes): "SDS ssa disk format" partition> format> save Saving new partition definition Enter file name["./format.dat"]: /etc/format.dat format> q 3. Shutdown the system and replace the disk. Reboot then restore the original disk label. # cat /var/tmp/c1t3d0s0.vtoc | fmthard -s - /dev/rdsk/c1t3d0s0 or # format Specify disk (enter its number): 10 format> partition partition> select 0. SUN 1.05 1. SDS ssa disk format 2. original Specify table (enter its number)[2]: 1 partitiion> label Ready to label disk, continue?: y partition> q format> q # 4. Restore any meta databses. This is best done with a delete and add. # metadb -i ... "W" is for write errors ... # metadb -d /dev/rdsk/c1t3d0s3 # metadb -a /dev/rdsk/c1t3d0s3 5. Restore any metadevices # metastat d1 shows all submirrors attached to d1 # metareplace -e d1 c1t3d0s4 d1: device c1t3d0s4 is enabled # metastat d10 shows the status of d10 # metareplace -e d10 c1t3d0s5 d10: device c1t3d0s5 is enabled # Note: Disks can be replaced without shutting down the system, if the configuration allows the pulling of SSA trays. # ssaadm stop -t 1 c1 (to stop the tray before replacing a disk)
»
- Add new comment
- 14977 reads

Very good and useful documentation. Thanks a lot.