VERITAS Volume Manager 3.5 Troubleshooting Guide (September 2004)

Recovery from Boot Disk Failure
Recovery by Reinstallation
Chapter 2
44
- RW
sd disk01-04 v03-02
disk03 262144
30720 0
c1t5d6 DIS
This volume has two plexes, v03-01 and v03-02. The first plex (v03-01) does not use
any space on the invalid disk, so it can still be used. The second plex (v03-02) uses space
on invalid disk disk01 and has a state of NODEVICE. Plex v03-02 must be removed.
However, the volume still has one valid plex containing valid data. If the volume needs to
be mirrored, another plex can be added later. Note the name of the volume to create
another plex later.
To remove an invalid plex, use the vxplex command to dissociate and then remove the
plex from the volume. For example, to dissociate and remove the plex v03-02, use the
following command:
# vxplex -o rm dis v03-02
Step 7. Once all the volumes have been cleaned up, clean up the disk configuration as described
in the following section, “Clean up Disk Configuration” on page 44
Clean up Disk Configuration Once all invalid volumes and plexes have been
removed, the disk configuration can be cleaned up. Each disk that was removed,
reinstalled, or replaced (as determined from the output of the vxdisk list command)
must be removed from the configuration.
To remove the disk, use the vxdg command. To remove the failed disk disk01, use the
following command:
# vxdg rmdisk disk01
If the vxdg command returns an error message, some invalid mirrors exist. Repeat the
processes described in “Clean up Volumes” on page 40 until all invalid volumes and
mirrors are removed.
Final Volume Reconfiguration Once the root disk is under VxVM control, any other
disks that were replaced should be added using the vxdiskadm command.
Once all the disks have been added to the system, any volumes that were completely
removed as part of the configuration cleanup can be recreated and their contents
restored from backup. The volume recreation can be done by using the vxassist
command or the graphical user interface.
For example, to recreate the volumes v01 and v02, use the following command:
# vxassist make v01 24000
# vxassist make v02 30720 layout=stripe nstripe=3
Once the volumes are created, they can be restored from backup using normal
backup/restore procedures.
Recreate any plexes for volumes that had plexes removed as part of the volume cleanup.
To replace the plex removed from volume v03, use the following command:
# vxassist mirror v03
Once you have restored the volumes and plexes lost during reinstallation, recovery is
complete and your system is configured as it was prior to the failure.