VERITAS Volume Manager 4.1 Administrator's Guide

Creating Volumes
Creating a Volume on Specific Disks
Chapter 7236
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 ...
NOTE Specify the -b option if you want to make the volume immediately
available for use. See “Initializing and Starting a Volume” on page 258
for details.
For example, to create the volume volspec with length 5 gigabytes on
disk03 and disk04, use the following command:
# vxassist -b make volspec 5g disk03 disk04
The vxassist command allows you to specify storage attributes. These
give you fine control over the devices, including disks, controllers and
targets, which vxassist uses to configure a volume. For example, you can
specifically exclude disk05:
# vxassist -b make volspec 5g !disk05
or exclude all disks that are on controller c2:
# vxassist -b make volspec 5g c2
or include only disks on controller c1 except for target t5:
# vxassist -b make volspec 5g ctlr:c1 !target:c1t5
If you want a volume to be created using only disks from a specific disk
group, use the -g option to vxassist, for example:
# vxassist -b -g bigone make volmega 20g disk10 disk11
or alternatively, use the diskgroup attribute: