VERITAS Volume Manager 4.1 Administrator's Guide

Chapter 4 153
Specifying a Disk Group to Commands
Many VxVM commands allow you to specify a disk group using the –g
option. For example, to create a volume in disk group mktdg, use the
following command:
# vxassist -g mktdg make mktvol 50m
The block special device for this volume is:
/dev/vx/dsk/mktdg/mktvol
The disk group does not have to be specified if the object names are
unique. Most VxVM commands use object names specified on the
command line to determine the disk group for the operation. For
example, to create a volume on disk mktdg01 without specifying the disk
group name, use the following command:
# vxassist make mktvol 50m mktdg01
Many commands work this way as long as two disk groups do not have
objects with the same names. For example, VxVM allows you to create
volumes named mktvol in both rootdg and in mktdg. If you do this, you
must add –g mktdg to any command where you want to manipulate the
volume in the mktdg disk group.
NOTE Most VxVM commands require superuser or equivalent privileges.