Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
VERITAS Volume Manager 3.5 Administrator's Guide > Chapter 2 Administering Disks

Removing and Replacing Disks

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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, use the following procedure:

  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 begiven the option of using one of these disks as a replacement.

    Enter disk name [<disk>,list,q,?] disk02
  3. When you select a disk to remove for replacement, all volumes that are affected by the operation are displayed, for example:

    The following volumes will lose mirrors as a result of this operation: 

    home src

    No data on these volumes will be lost.

    The following volumes are in use, and will be disabled as a result of this operation:

    mkting

    Any applications using these volumes will fail future accesses.
    These volumes will require restoration from backup.

    Are you sure you want do this? [y,n,q,?] (default: n)

    To remove the disk, causing the named volumes to be disabled and data to be lost when the disk is replaced, enter y or press Return.

    To abandon removal of the disk, and back up or move the data associated with the volumes that would otherwise be disabled, enter n or q and press Return.

    For example, to move the volume mkting to a disk other than disk02, use this command:

    # vxassist move mkting !disk02

    After backing up or moving the data in the volumes, start again from step 1 above.

  4. At the following prompt, either select the device name of the replacement disk (from the list provided), press Return to choose the default disk, or enter none to defer replacing the disk until a later date:

    The following devices are available as replacements: 
    c0t1d0

    You can choose one of these disks now, to replace disk02.
    Select "none" if you do not wish to select a replacement disk.

    Choose a device, or select "none" [<device>,none,q,?] (default: c0t1d0)
    NOTE: Do not choose the old disk drive as a replacement even though it appears in the selection list. If necessary, you can choose to initialize a new disk.

    If you choose to defer replacing the failed disk, see the following section, “Replacing a Failed or Removed Disk”

  5. If you chose to replace the disk in step 4, press Return at the following prompt to confirm this:

    Requested operation is to remove disk02 from group rootdg. 
    The removed disk will be replaced with disk device c0t1d0.
    Continue with operation? [y,n,q,?] (default: y)
  6. vxdiskadm displays the following success messages:

    Replacement of disk disk02 in group rootdg with disk device c0t1d0 completed successfully.

    At 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”.

Replacing a Failed or Removed Disk

Use the following procedure to replace a failed or removed disk with a new disk:

  1. Select menu item 4 (Replace a failed or removed disk) 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):

    Replace a failed or removed disk 
    Menu: VolumeManager/Disk/ReplaceDisk

    Use this menu operation to specify a replacement disk for a diskthat you removed with the "Remove a disk for replacement" menuoperation, 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 diskwill be initialized, or you can choose a disk that you havealready initialized using the Add or initialize a disk menuoperation.

    Select a removed or failed disk [<disk>,list,q,?] disk02
  3. The 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:
    c0t1d0

    You can choose one of these disks to replace disk02.
    Choose "none" to initialize another disk to replace disk02.

    Choose a device, or select "none"
    [<device>,none,q,?] (default: c0t1d0)
  4. If the disk has not previously been initialized, press Return at the following prompt to replace the disk:

    The requested operation is to initialize disk device c0t1d0 and to then use that device to replace the removed or failed disk disk02 in disk group rootdg.
    Continue with operation? [y,n,q,?] (default: y)

    If the disk has already been initialized, press Return at the following prompt to replace the disk:

    The requested operation is to use the initialized device c0t1d0 to replace the removed or failed disk disk02 in disk group rootdg.
    Continue with operation? [y,n,q,?] (default: y)
  5. The vxdiskadm program then proceeds to replace the disk, and returns the following message on success:

    Replacement of disk disk02 in group rootdg with disk device c0t1d0 completed successfully. 

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

    Replace another disk? [y,n,q,?] (default: n) 
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.