Create an sv object from the bottom-up:
# vxmake -g sd ,0,
Create a plex using specified subdisks, layout and other attributes:
# vxmake -g plex layout= stwidth= sd=[,
Example
In the following example, a disk group named "scottdg" exists with a corrupted 2-column stripe-mirror volume ( stripe-pro )
Command syntax to create "sv" object
This creates two sv objects linked to the sub-volume named "stripey-L01" each with a size of 3145728 sectors.
Note: The "0" value before the sector size refers to the state of the volume, i.e. "0" is off and "1" is on and active
# vxmake -g scottdg sd stripey-S01 stripey-L01,0,3145728
# vxmake -g scottdg sd stripey-S02 stripey-L02,0,3145728
The command below displays the existing subdisk objects for the disk group "scottdg"
Command syntax to create "plex" object
In the example below the plex "stripey-03" has two subdisks, "stripey-S01" and "stripey-S02", with a stripe unit size of 128k.
Once the plex and its corresponding subdisks exist, attach the newly created plex to the required volume
Command syntax
# vxplex -g <dg-name> att <volume-name> <plex-name>
The command below attaches the plex "stripey-03" to the volume named "stripey"
# vxplex -g scottdg att stripey stripey-03
The vxprint output below reflects the results of the commands above being issued
Once the plex has been attached to the volume, each layer of the volume will need to be started:
# vxvol -g scottdg start stripey
# vxvol -g scottdg start stripey-L01
# vxvol -g scottdg start stripey-L02
Now that all the volumes have been enabled and display a state of "ENABLED ACTIVE", the file system can be mounted on the appropriate mount-point ( in this instance /scott ).
# mount -F vxfs /dev/vx/dsk/scottdg/stripey /scott