Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
110 Administering disks
Removing and replacing disks
# /usr/lib/vxvm/bin/vxdiskunsetup c#t#d#
Caution: The vxdiskunsetup command removes a disk from Veritas Volume Manager
control by erasing the VxVM metadata on the disk. To prevent data loss, any data on the
disk should first be evacuated from the disk. The
vxdiskunsetup command should only
be used by a system administrator who is trained and knowledgeable about Veritas
Volume Manager.
Removing and replacing disks
Note: A replacement disk should have the same disk geometry as the disk that failed. That
is, the replacement disk should have the same bytes per sector, sectors per track, tracks per
cylinder and sectors per cylinder, same number of cylinders, and the same number of
accessible cylinders.
If failures are starting to occur on a disk, but the disk has not yet failed completely, you
can replace the disk. This involves detaching the failed or failing disk from its disk group,
followed by replacing the failed or failing disk with a new one. Replacing the disk can be
postponed until a later date if necessary.
To replace a disk
1 Select menu item 3 (Remove a disk for replacement) from the
vxdiskadm main menu.
2 At the following prompt, enter the name of the disk to be replaced (or enter list for
a list of disks):
Remove a disk for replacement
Menu: VolumeManager/Disk/RemoveForReplace
Use this menu operation to remove a physical disk from a disk
group, while retaining the disk name. This changes the state
for the disk name to a removed disk. If there are any
initialized disks that are not part of a disk group, you will
be given the option of using one of these disks as a
replacement.
Enter disk name [<disk>,list,q,?] mydg02
3 When you select a disk to remove for replacement, all volumes that are affected by
the operation are displayed, for example:
VxVM NOTICE V-5-2-371 The following volumes will lose mirrors
as a result of this operation:
home src