Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

Detaching plexes
To temporarily detach one data plex in a mirrored volume, use the following
command:
# vxplex [-g diskgroup] det plex
For example, to temporarily detach a plex named vol01-02 in the disk group,
mydg, and place it in maintenance mode, use the following command:
# vxplex -g mydg det vol01-02
This command temporarily detaches the plex, but maintains the association
between the plex and its volume. However, the plex is not used for I/O. A plex
detached with the preceding command is recovered at system reboot. The plex
state is set to STALE, so that if a vxvol start command is run on the appropriate
volume (for example, on system reboot), the contents of the plex is recovered and
made ACTIVE.
When the plex is ready to return as an active part of its volume, it can be reattached
to the volume.
See Reattaching plexes on page 288.
Reattaching plexes
This section describes how to reattach plexes manually if automatic reattachment
feature is disabled. This procedure may also be required for devices that are not
automatically reattached. For example, VxVM does not automatically reattach
plexes on site-consistent volumes.
When a disk has been repaired or replaced and is again ready for use, the plexes
must be put back online (plex state set to ACTIVE). To set the plexes to ACTIVE, use
one of the following procedures depending on the state of the volume.
If the volume is currently ENABLED, use the following command to reattach the
plex:
# vxplex [-g diskgroup] att volume plex ...
For example, for a plex named vol01-02 on a volume named vol01 in the disk
group, mydg, use the following command:
# vxplex -g mydg att vol01 vol01-02
Creating and administering subdisks and plexes
Detaching plexes
288