Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

72 Creating application volumes
Creating multiple volumes as a volume group
}
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 {
separateby "Controller"
}
capability ’DataMirroring(nmirs=2)’
}
};
To create multiple volumes with the same name prefix, specify a numeric
argument to the nvol parameter in the volume section, as shown in this
example:
volumegroup {
diskgroup "mydg"
rules {
separateby "Enclosure"
exclude "Enclosure"="ENC1"
}
volume "mirvol" 10g {
nvol 3
capability ’DataMirroring(nmirs=2)’