VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Chapter 8, Administering Volumes
Removing a Mirror
193
Removing a Mirror
When a mirror is no longer needed, you can remove it to free up disk space.
Note The last valid plex associated with a volume cannot be removed.
To remove a mirror from a volume, use the following command:
# vxassist remove mirror volume
Additionally, you can use storage attributes to specify the storage to be removed. For
example, to remove a mirror on disk disk01, from volume vol01, enter:
# vxassist remove mirror vol01 !disk01
For more information about storage attributes, see “Creating a Volume on Specific Disks
on page 166.
Alternatively, use the following command to dissociate and remove a mirror from a
volume:
# vxplex -o rm dis plex
For example, to dissociate and remove a mirror named vol01-02, use the following
command:
# vxplex -o rm dis vol01-02
This command removes the mirror vol01-02 and all associated subdisks. This is
equivalent to entering the following separate commands:
# vxplex dis vol01-02
# vxedit -r rm vol01-02
Adding a DCO and DCO Volume
Caution If the existing volume was created before release 3.2 of VxVM, and it has any
attached snapshot plexes or it is associated with any snapshot volumes, follow
the procedure given in “Enabling Persistent FastResync on Existing Volumes
with Associated Snapshots” on page 209. The procedure given in this section is
for existing volumes without existing snapshot plexes or associated snapshot
volumes.
To put Persistent FastResync into effect for a volume, a Data Change Object (DCO) and
DCO volume must first be associated with that volume. When you have added a DCO
object and DCO volume to a volume, you can then enable Persistent FastResync on the
volume as described in “Enabling FastResync on a Volume” on page 207.