Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)
To create a concatenated, default volume, use the following form of the vxassist
command:
# vxassist [-b] [-g diskgroup] make volume length
Specify the -b option if you want to make the volume immediately available for
use.
See “Initializing and starting a volume” on page 326.
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 ...
Specify the -b option if you want to make the volume immediately available for
use.
See “Initializing and starting a volume” on page 326.
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
The vxassist command allows you to specify storage attributes. These give you
control over the devices, including disks, controllers and targets, which vxassist
uses to configure a volume. For example, you can specifically exclude disk mydg05.
Note: The ! character is a special character in some shells. The following examples
show how to escape it in a bash shell.
# vxassist -b -g mydg make volspec 5g \!mydg05
The following example excludes all disks that are on controller c2:
305Creating volumes
Creating a volume on specific disks