Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)

Chapter 7, Creating Volumes
Creating a Volume on Any Disk
203
If you specify the attribute dgalign_checking=strict to vxassist, the command
fails with an error if you specify a volume length or attribute size value that is not a
multiple of the alignment value for the disk group.
Creating a Volume on Any Disk
By default, the vxassist make command creates a concatenated volume that uses one or
more sections of disk space. On a fragmented disk, this allows you to put together a
volume larger than any individual section of free disk space available.
Note To change the default layout, edit the definition of the layout attribute defined in
the /etc/default/vxassist file.
If there is not enough space on a single disk, vxassist creates a spanned volume. A
spanned volume is a concatenated volume with sections of disk space spread across more
than one disk. A spanned volume can be larger than any disk on a system, since it takes
space from more than one disk.
To create a concatenated, default volume, use the following form of the vxassist
command:
# vxassist [-b] [-g diskgroup] make volume length
Note Specify the -b option if you want to make the volume immediately available for
use. See “Initializing and Starting a Volume” on page 221 for details.
For example, to create the concatenated volume voldefault with a length of 10
gigabytes in the default disk group:
# vxassist -b make voldefault 10g
Creating a Volume on Specific Disks
VxVM automatically selects the disks on which each volume resides, unless you specify
otherwise. If you want a volume to be created on specific disks, you must designate those
disks to VxVM. More than one disk can be specified.
To create a volume on a specific disk or disks, use the following command:
# vxassist [-b] [-g diskgroup] make volume length [layout=layout] \
diskname ...
For example, to create the volume volspec with length 5 gigabytes on disks mydg03 and
mydg04, use the following command:
# vxassist -b -g mydg make volspec 5g mydg03 mydg04