Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

45Understanding ISP
Examples of using ISP from the command line
Examples of using ISP from the command line
This section provides examples of using ISP from the command line and
provides pointers to where more information can be found. You can also find
summaries of the usage of commonly used commands in “Command summary
on page 205. Further examples may be found in “Examples of using ISP” on
page 209 and in the manual page for each command.
Creating a data storage pool
Assuming that you have created a disk group, mydg, that contains several disks
that you have initialized for use with VxVM, the following command creates a
data storage pool, mypool, containing several disks, which supports the
creation of striped-mirror volumes:
# vxpool -g mydg create mypool \
dm=mydg01,mydg02,mydg03,mydg04,mydg04,mydg06 \
pooldefinition=stripe_mirror_volumes
See “Creating a storage pool” on page 52.
Adding disks to a storage pool
You can use the vxpool adddisk command to add initialized disks to a storage
pool. For example, this command adds two disks to the storage pool, mypool:
# vxpool -g mydg adddisk mypool dm=mydg07,mydg08
See “Adding disks to a storage pool” on page 55.
Creating an application volume
The following command creates a striped-mirror volume with three columns
and two mirrors in the data storage pool, mypool, by specifying the capability
DataStripeMirror together with the appropriate parameters:
# vxassist -g mydg -P mypool make stmrvol 2g \
capability=’DataStripeMirror(ncols=3,nmirs=2)’ init=active
The init=active attribute makes the volume immediately available for use
without performing any synchronization.
Having created the application volume, stmrvol, you can use the following
command to prepare it for use with volume snapshots:
# vxassist -g mydg -P mypool addlog stmrvol nlog=2 logtype=dco
This command associates a data change object (DCO) and DCO volume with the
volume. The attribute nlog is used to specify that the DCO volume has the same
redundancy as the original volume. Alternatively, you can use the
vxsnap
prepare command to set up the volume for snapshots:
# vxsnap -g mydg prepare stmrvol ndcomirs=2