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
Enter disk name [<disk>,list,q,?] mydg02
VxVM NOTICE V-5-2-371 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)
# vxassist move mkting !mydg02
After backing up or moving the data in the volumes, start again from step 1.
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 if you are going to replace the physical disk:
The following devices are available as replacements: c0t1d0 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: c0t1d0)
If you chose to replace the disk in step 4, press Return at the following prompt to confirm this:
VxVM NOTICE V-5-2-285 Requested operation is to remove mydg02 from group mydg. The removed disk will be replaced with disk device c0t1d0. Continue with operation? [y,n,q,?] (default: y)
VxVM NOTICE V-5-2-265 Removal of disk mydg02 completed successfully. VxVM NOTICE V-5-2-260 Proceeding to replace mydg02 with device c0t1d0.
The disk c1t0d0 was a previously encapsulated root disk. Due to the disk layout that results from root disk encapsulation, the preferred action is to reinitialize and reorganize this disk. However, if you have any non-redundant data on this disk you should not reorganize this disk, as the data will be lost. Reorganize the disk? [y,n,q,?] (default: y) y
Enter the desired format [cdsdisk,sliced,simple,q,?] (default: cdsdisk)
At the following prompt, vxdiskadm asks 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,?] (default: 65536)
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.
Remove another disk? [y,n,q,?] (default: n)