Administering disks

Removing and replacing disks

VxVM NOTICE V-5-2-158 Disk replacement completed successfully.

9At the following prompt, indicate whether you want to remove another disk (y) or return to the vxdiskadm main menu (n):

Remove another disk? [y,n,q,?] (default: n)

Note: If removing a disk causes one or more volumes to be disabled, see the section, “Restarting a Disabled Volume” in the chapter “Recovery from Hardware Failure” in the Veritas Volume Manager Troubleshooting Guide, for information on how to restart a disabled volume so that you can restore its data from a backup.

If you wish to move hot-relocate subdisks back to a replacement disk, see “Configuring hot-relocation to use only spare disks” on page 390.

115

Replacing a failed or removed disk

Note: You may need to run commands that are specific to the operating system or disk array when replacing a physical disk.

To specify a disk that has replaced a failed or removed disk

1Select menu item 4 (Replace a failed or removed disk) from the vxdiskadm main menu.

2At the following prompt, enter the name of the disk to be replaced (or enter list for a list of disks):

Replace a failed or removed disk

Menu: VolumeManager/Disk/ReplaceDisk

VxVM INFO V-5-2-479 Use this menu operation to specify a replacement disk for a disk that you removed with the “Remove a disk for replacement” menu operation, or that failed during use. You will be prompted for a disk name to replace and a disk device to use as a replacement.

You can choose an uninitialized disk, in which case the disk will be initialized, or you can choose a disk that you have already initialized using the Add or initialize a disk menu operation.

Select a removed or failed disk [<disk>,list,q,?] mydg02

3The vxdiskadm program displays the device names of the disk devices available for use as replacement disks. Your system may use a device name that differs from the examples. Enter the device name of the disk or press Return to select the default device:

The following devices are available as replacements:

Page 114
Image 114
HP Veritas Volume Manager 5.0 -UX 11i v3 manual Replacing a failed or removed disk