VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Chapter 3, Creating Application Volumes
Creating Multiple Volumes as a Volume Group
53
For convenience, it is easiest to define one or more volume groups in a definition file, and have
vxvoladm read this file to create the volumes as shown here:
# vxvoladm -M make < filename
For a description of the syntax of a volume group definition, see “Volume Group Definition
Syntax” on page 177.
A sample definition might contain the following volumegroup entry:
volumegroup {
diskgroup "mydg"
rules {
separateby "Enclosure"
exclude "Enclosure"="ENC1"
}
volume "mirvol1" 10g {
capability ’DataMirroring(nmirs=2)’
}
volume "mirvol2" 10g {
capability ’DataMirroring(nmirs=2)’
}
volume "mirvol3" 10g {
capability ’DataMirroring(nmirs=2)’
}
};
This specifies three 10-gigabyte mirrored volumes in the disk group, mydg, with the data mirrors
placed on separate enclosures, but excluding enclosure, ENC1.
The next sample definition specifies a prefabricated striped volume on storage that is restricted to
the location Room1, and a volume that is mirrored across controllers in the disk group testdg. In
addition, the rules for the volume group specify that the volumes are to be created on separate
enclosures, and that storage may only be allocated on disks from a given vendor.
volumegroup {
diskgroup "testdg"
rules {
separateby "Enclosure"
confineto "VendorName"="ACME"
}
volume "strpvol" 10g {
rules {
confineto "Room=Room1"
}
capability ’PrefabricatedStriping’
}
volume "mirdvol" 1g {
rules {