Skip to main content
A newer release of this product is available.

volume size

Contributors
Suggest changes

Set/Display the size of the volume.

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The volume size command allows the user to set or display the volume size. If new-size is not specified then the current volume size is displayed.

Parameters

-vserver <vserver name> - Vserver Name

This parameter can be used to specify the Vserver on which the volume is located.

-volume <volume name> - Volume Name

This parameter specifies the volume for which the user wants to set or display the size.

[-new-size <text>] - [+|-]<New Size>

This optional parameter specifies the size of the volume. It can be used to set the volume size to a particular number or grow/shrink the size by a particular amount. The size is specified as a number (preceded with a sign for relative growth/shrinkage) followed by a unit designation: k (kilobytes), m (megabytes), g (gigabytes), or t (terabytes). If the unit designation is not specified, bytes are used as the unit, and the specified number is rounded up to the nearest 4 KB. The minimum size for a flexible volume is 20 MB, and the maximum size depends on hardware platform and free space in the containing aggregate. If the volume's space guarantee is currently disabled, its size cannot be increased. This parameter is not supported on Infinite Volumes that are managed by storage services.

Examples

The following example shows the size of a volume called vol1.

cluster1::> vol size vol1
  (volume size)
vol size: Flexible volume 'vs1:vol1' has size 2g.

The following example sets the size of a volume called vol1 to 1GB.

cluster1::> vol size vol1 1g
  (volume size)
vol size: Flexible volume 'vs1:vol1' size set to 1g.

The following example increases the size of a volume called vol1 by 500MB.

cluster1::> vol size vol1 +500m
  (volume size)
vol size: Flexible volume 'vs1:vol1' size set to 1.49g.

The following example decreases the size of a volume called vol1 by 250MB.

cluster1::> vol size vol1 -250m
  (volume size)
vol size: Flexible volume 'vs1:vol1' size set to 1.24g.