VERITAS Volume Manager 3.5 Troubleshooting Guide (August 2002)

Chapter 2, Recovery from Boot Disk Failure
Recovery by Reinstallation
33
Note Your system may use a device name that differs from the examples. For more
information on device names, see the chapter “Administering Disks” in the
VERITAS Volume Manager Administrators Guide.
The display shows that the reinstalled root device, c0t0d0, is not associated with a
VM disk and is marked with a status of error. The disks disk02 and disk03 were
not involved in the reinstallation and are recognized by VxVM and associated with
their devices (c0t1d0 and c0t2d0). The former disk01, which was the VM disk
associated with the replaced disk device, is no longer associated with the device
(c0t0d0).
If other disks (with volumes or mirrors on them) had been removed or replaced
during reinstallation, those disks would also have a disk device listed in error state
and a VM disk listed as not associated with a device.
2. Once you know which disks have been removed or replaced, locate all the mirrors on
failed disks using the following command:
# vxprint -sF “%vname” -e’sd_disk = “disk”’
where disk is the name of a disk with a failed status. Be sure to enclose the disk
name in quotes in the command. Otherwise, the command returns an error message.
The vxprint command returnsa list ofvolumes that havemirrors on the failed disk.
Repeat this command for every disk with a failed status.
3. Check the status of each volume and print volume information using the following
command:
# vxprint -th volume
where volume is the name of the volume to be examined. The vxprint command
displays the status of the volume, its plexes, and the portions of disks that make up
those plexes. For example, a volume named v01 with only one plex resides on the
reinstalled disk named disk01. The vxprint -th v01 command produces the
following output:
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WIDMODE
SD NAME PLEX DISK DISKOFFSLENGTH COL/]OFF DEVICE MODE
v v01 fsgen DISABLEDACTIVE 24000 SELECT -
pl v01-01 v01 DISABLEDNODEVICE24000 CONCAT - RW
sd disk01-06 v0101 disk01 245759 24000 0 c1t5d1 ENA
The only plex of the volume is shown in the line beginning with pl. The STATE field
for the plex named v01-01 is NODEVICE. The plex has space on a disk that has been
replaced, removed, or reinstalled. The plex is no longer valid and must be removed.