< Previous | Next > | |
Product: Volume Manager Guides | |
Manual: Volume Manager 4.1 Administrator's Guide |
Removing DisksNote You must disable a disk group as described in Disabling a Disk Group before you can remove the last disk in that group. Alternatively, you can destroy the disk group as described in Destroying a Disk Group. You can remove a disk from a system and move it to another system if the disk is failing or has failed. Before removing the disk from the current system, you must:
Before removing a disk, make sure any data on that disk has either been moved to other disks or is no longer needed. Then remove the disk from its disk group using the vxdiskadm utility, as follows:
Removing a Disk with SubdisksYou can remove a disk on which some subdisks are defined. For example, you can consolidate all the volumes onto one disk. If you use the vxdiskadm program to remove a disk, you can choose to move volumes off that disk. To do this, run the vxdiskadm program and select item 2 (Remove a disk) from the main menu. If the disk is used by some subdisks, the following message is displayed: VxVM ERROR V-5-2-369 The following volumes currently use part of disk mydg02: home usrvol Volumes must be moved from mydg02 before it can be removed. Move volumes to other disks? [y,n,q,?] (default: n) If you choose y, then all subdisks are moved off the disk, if possible. Some subdisks are not movable. A subdisk may not be movable for one of the following reasons:
If the vxdiskadm program cannot move some subdisks, remove some plexes from some disks to free more space before proceeding with the disk removal operation. See Removing a Volume and Taking Plexes Offline for information on how to remove volumes and plexes. Removing a Disk with No SubdisksTo remove a disk that contains no subdisks from its disk group, run the vxdiskadm program and select item 2 (Remove a disk) from the main menu, and respond to the prompts as shown in this example to remove mydg02: Enter disk name [<disk>,list,q,?] mydg02 VxVM NOTICE V-5-2-284 Requested operation is to remove disk mydg02 from group mydg. Continue with operation? [y,n,q,?] (default: y) y VxVM INFO V-5-2-268 Removal of disk mydg02 is complete. Clobber disk headers? [y,n,q,?] (default: n) y Enter y to remove the disk completely from VxVM control. If you do not want to remove the disk completely from VxVM control, enter n. |
^ Return to Top | < Previous | Next > |
Product: Volume Manager Guides | |
Manual: Volume Manager 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |