VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Specifying a Disk Group to Commands
108 VERITAS Volume Manager Administrator’s Guide
the free parameter. An example is shown in “Displaying Disk Group Information” on
page 109. One way to overcome the problem of running out of free space is to split the
affecteddiskgroupinto two separate diskgroups.SeeReorganizingthe Contents ofDisk
Groups” on page 121 for details.
Caution Before making any changes to disk groups, use the commands vxprint -hrm
and vxdisk list to record the current configuration.
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.