Veritas 4.1 Installation Guide (HP-UX 11i v3, February 2007)

You can do the following operations on plexes:
Creating Plexes
You can create plexes in one of the following ways:
Creating simple plexes
Use the vxmake command to create VxVM objects, such as plexes. When creating a
plex, identify the subdisks that are to be associated with it.
Create a plex from existing subdisks:
# vxmake -g <diskgroup> plex <plex> sd=<subdisk1[,subdisk2,...]>
See vxmake (1M), for more information on the supported options.
Creating stripped plexes
Create a striped plex, you must specify the attribute layout=stripe.
# vxmake -g <diskgroup> plex <plexname> layout=stripe stwidth=<width> ncolumn=<no_col> \ sd=<subdisk1>
<subdisk2>
See vxmake (1M), for more information on the supported options.
Displaying information on plexes
Display detailed information about all plexes in the system:
# vxprint -lp
See vxprint (1M), for more information on the supported options.
Display detailed information about a specific plex:
# vxprint -g <diskgroup> -l <plex>
See vxprint (1M), for more information on the supported options and Veritas Volume Manager
4.1 Administrator's Guide for more information on plex states.
Attaching and Associating Plexes
You can attach plexes to existing volumes or you to new volumes at volume creation time.
Attaching a Plex to an Existing Volume
Attach plex to an existing volume as follows:
# vxplex -g <diskgroup> att <volume> <plex>
Attaching Plex to a New Volume at Volume Creation Time
Attach a plex to a new volume:
# vxmake -g <diskgroup> -U usetype vol <volume> plex=<plex1[,plex2...]>
See vxmake (1M), for more information on the supported options.
Moving plexes offline
Take a plex OFFLINE so that repair or maintenance can be performed on the physical disk
containing subdisks of that plex:
# vxmend -g <diskgroup> off <plex>
See vxmend (1M), for more information on the supported options.
Detaching Plexes
Temporarily detach one data plex in a mirrored volume:
# vxplex -g <diskgroup> det <plex>
See vxplex (1M), for more information on the supported options.
Reattaching Plexes
When a disk has been repaired or replaced and is ready for use, the plex must be put back
online (plex state set to ACTIVE).
Setting up and managing VxVM 4.1 37