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.
Note You may need to run commands that are specific to the operating system or disk array before removing a physical disk.
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.
If removing a disk causes a volume to be disabled, you can restart the volume so that you can restore its data from a backup.
See the Veritas Volume Manager Troubleshooting Guide.
To replace a disk
(Remove a disk for replacement)from the
listfor a list of disks):
Remove a disk for replacement
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
Enter disk name [<disk>,list,q,?]
VxVM NOTICE V-5-2-371 The following volumes will lose mirrors
as a result of this operation:
No data on these volumes will be lost.
The following volumes are in use, and will be disabled as a
result of this operation:
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
q and press Return.
For example, to move the volume
mkting to a disk other than
mydg02, use this command:
vxassist move mkting !mydg02
After backing up or moving the data in the volumes, start again from step 1 above.
noneif you are going to replace the physical disk:
The following devices are available as replacements:
You can choose one of these disks now, to replace mydg02.
Select "none" if you do not wish to select a replacement disk.
Choose a device, or select "none"
[<device>,none,q,?] (default: hdisk1)
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.
You can enter
none if you intend to replace the physical disk.
See "Replacing a failed or removed disk" on page 106.
VxVM NOTICE V-5-2-285 Requested operation is to remove mydg02
from group mydg. The removed disk will be replaced with disk
Continue with operation? [y,n,q,?] (default: y)
vxdiskadm displays the following messages to indicate that the original disk is being removed:
VxVM NOTICE V-5-2-265 Removal of disk mydg02 completed
VxVM NOTICE V-5-2-260 Proceeding to replace mydg02 with device
Enter the desired format [cdsdisk,aixdisk,q,?]
Enter the format that is appropriate for your needs. In most cases, this is the default format,
vxdiskadmasks if you want to use the default private region size of 65536 blocks (32 MB). Press Return to confirm that you want to use the default value, or enter a different value. (The maximum value that you can specify is 524288 blocks.)
Enter desired private region length [<privlen>,q,?]
Use FMR for plex resync? [y,n,q,?] (default: n) y
vxdiskadm displays the following success message:
VxVM NOTICE V-5-2-158 Disk replacement completed successfully.
y) or return to the
vxdiskadmmain menu (
Remove another disk? [y,n,q,?] (default: n)
It is possible to move hot-relocate subdisks back to a replacement disk.
See "Configuring hot-relocation to use only spare disks" on page 368.