Service manual

Chapter 4 Service 4-11
Note Save all the drive partitioning information immediately after configuring
metadevices or file systems for use when recovering from device failure later.
Use the prtvtoc command to save the partition information.
For example:
For example:
Save the output of the commands so you can reconstruct the metadevice
configuration after you replace the disk.
d. Delete database replicas.
If there are database replicas on the disk, you must delete them. First record the
size and number of database replicas on each slice; then delete them.
For example:
e. Detach submirrors.
If any slices of the disk are used by submirrors, detach the submirrors.
# prtvtoc /dev/rdsk/cwtxdysz
0
> saved-partition-table-file
# prtvtoc /dev/rdsk/c1t4d0s0 > /etc/c1t4d0s0.vtoc
# metadb | grep c1t4d0
# metastat | grep c1t4d0
# mount | grep c1t4d0
# metadb -d
cwtxdysz
# metadb -d c1t4d0s0
# metadetach d20 d21