Determining the Maximum Volume Size
Before creating a volume, you may wish to check whether there is sufficient storage available. You can use the following command to determine the maximum size of a volume with a given capability that you can create in the data storage pool of a disk group:
# vxvoladm [-g diskgroup] [-p storage_pool] [-b] maxsize \ [storage_specification] [attribute=value ...]
Specify the -b option if you want to run this command in the background. Otherwise, it will block until it has completed its calculation of the maximum volume size.
Note
The storage that is available for allocation is based on the setting of the AutoGrow policy on a storage pool. If the value of this policy is set to diskgroup and not to pool, all suitable disks in the disk group are used in the calculation. You can use the -p option to specify that only storage from the specified pool is to be considered.
For example, the following command returns the maximum possible size of a mirrored volume with 3 mirrors that can be created in the disk group, mydg, from all the available free storage using the DataMirroring capability:
# vxvoladm -g mydg maxsize capability='DataMirroring(nmirs=3)'
The next example checks for the maximum volume size that can be created using prefabricated mirrors of a specified vendor type:
# vxvoladm -g peakdg maxsize \ volume_template=PrefabricatedDataMirroring \
rules='confineto "VendorName"="ACME"'
|