VxVM User's Guide
Refer to the chapters that follow for information on using Volume Manager commands to perform common tasks. The
vxintro(1M) manual page also contains introductory information relating to Volume Manager utilities.
Topics covered in this chapter include:
The device name (sometimes referred to as devname or disk access name) is the location of the disk. The syntax of a device name is
c#is the number of the controller to which the disk drive is attached.
b#is the corresponding bus number.
t#is the number of the target disk on that controller.
d#is the number of the disk (or UNIX partition).
s#is the number of the disk slice.
/dev/dsk/devicename. In this document, only the device name is listed and
/dev/dskis assumed. An example of a device name is
The disk name (sometimes referred to as disk media name) is an administrative name for the disk, such as
disk01. If you do not assign a disk name, the disk name defaults to
disk## if the disk is being added to
## is a sequence number). Otherwise, the default disk name is groupname
##, where groupname is the name of the disk group to which the disk is added.
vmdisk listThis command provides a list of all disks available to the Volume Manager. The output of
listlists the device name, the type of disk, the disk name, the disk group to which the disk belongs, and the disk's status. The following is an example of
DEVICE TYPE DISK GROUP STATUS c0b0t0d0s7 sliced rootdisk rootdg online c0b0t1d0s7 sliced disk02 rootdg online c0b0t2d0s7 sliced disk03 rootdg online
vxprint -htThis displays output such as the following:
Disk group: rootdg DG NAME NCONFIG NLOG MINORS GROUP-ID DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE dg rootdg default default 0 774226267.1025.tweety dm disk01 c0b0t5d0s7 sliced 1055 1054944 - dm disk02 c0b0t1d0s7 sliced 1119 1043840 - v vol03 fsgen DISABLED ACTIVE 1310720 SELECT - pl vol03-01 vol03 DISABLED ACTIVE 1311632 STRIPE 2/128 RW sd disk01-01 vol03-01 disk01 0 655380 0/0 c0b0t0d0 ENA sd disk02-08 vol03-01 disk02 0 655760 1/0 c0b0t1d0 ENA v vm-build fsgen DISABLED ACTIVE 409600 SELECT - pl vm-build-01 vm-build DISABLED ACTIVE 410016 STRIPE 2/128 RW sd disk01-02 vm-build-01 disk01 655380 204831 0/0 c0b0t0d0 ENA sd disk02-01 vm-build-01 disk02 655760 204960 1/0 c0b0t1d0 ENAwhere
dgis a disk group,
dmis a disk,
vis a volume,
plis a plex, and
sdis a subdisk. The top few lines indicate the headers that match each type of output line that follows. Each volume is listed along with its associated plex(es) and subdisk(s).
To display free space for a disk group, enter:
vxdg -g diskgroup freewhere
-gdiskgroup optionally specifies a disk group.
To see the free space in the default disk group, rootdg, enter:
vxdg freeThe Volume Manager returns the following:
GROUP DISK DEVICe TAG OFFSET LENGTH FLAGS rootdg disk04 c0b0t0d0s7 c0b0t0d0 726400 102672 - rootdg disk01 c1b0t0d0s7 c1b0t0d0 0 102128 - rootdg disk01 c1b0t0d0s7 c1b0t0d0 175856 26384 - rootdg disk02 c1b0t1d0s7 c1b0t1d0 26624 175616 -
The free space is measured in 512-byte sectors.
You can create volumes using either a basic or advanced approach:
Volumes can be created with various layout types:
vxassistutility provides a simple way to create and manage volumes from the command line. You can use
vxassistto create, mirror, grow, shrink, and back up volumes.
vxassistis capable of performing many operations that would otherwise require the use of a series of more complicated VxVM commands.
vxassistcreates and manipulates volumes based on a set of established defaults, but also allows the user to supply preferences for each operation.
vxassist command typically takes the following form:
vxassist keyword volume_name [attributes...]Select the specific action to perform by specifying an operation keyword as the first argument on the command line. For example, the keyword for creating a new volume is
make. You can therefore create a new volume by entering:
vxassist make volume_name lengthThe first argument after any
vxassistkeyword is always a volume name. Follow the volume name with a set of attributes. Use these attributes to specify where to allocate space and whether you want mirroring or striping to be used.
You can select the disks on which the volumes are to be created by specifying the disk names at the end of the command line. For example, to create a 30 megabyte striped volume on three specific disks (
vxassist make stripevol 30m layout=stripe disk03 disk04\ disk05
vxassistdefaults are listed in the file
/etc/defaults/vxassist. The defaults listed in this file take effect if there is no overriding default specified on the
Refer to the VERITAS Volume Manager System Administrator's Guide or the
vxassist(1M) manual page for more information on operations, options, and attributes of the