Reduce the size of a FlexGroup volume
-
PDF of this doc site
- Cluster administration
-
Volume administration
- Logical storage management with the CLI
-
NAS storage management
- Configure NFS with the CLI
- Manage NFS with the CLI
-
Manage SMB with the CLI
- Manage file access using SMB
- SAN storage management
- Security and data encryption
-
Data protection and disaster recovery
- Data protection with the CLI
Collection of separate PDF docs
Creating your file...
Beginning with ONTAP 9.6, you can resize a FlexGroup volume to a value lower than its current size to free up the unused space from the volume. When you reduce the size of a FlexGroup volume, ONTAP automatically resizes all of the FlexGroup constituents.
-
Check the current FlexGroup volume size: 'volume size -vserver vserver_name -volume fg_name'
-
Reduce the size of the FlexGroup volume:
volume size -vserver vserver_name -volume fg_name new_size
When you specify the new size, you can specify either a lower value than the current size or a negative value using the minus sign (-) by which the current size of the FlexGroup volume is reduced.
If automatic shrinking is enabled for the volume (
volume autosize
command), the minimum autosize is set to the new size of the volume.The following example displays the current volume size for the FlexGroup volume named volX and resizes the volume to 10TB:
cluster1::> volume size -vserver svm1 -volume volX (volume size) vol size: FlexGroup volume 'svm1:volX' has size 15TB. cluster1::> volume size -vserver svm1 -volume volX 10TB (volume size) vol size: FlexGroup volume 'svm1:volX' size set to 10TB.
The following example displays the current volume size for the FlexGroup volume named volX and reduces the size of the volume by 5TB:
cluster1::> volume size -vserver svm1 -volume volX (volume size) vol size: FlexGroup volume 'svm1:volX' has size 15TB. cluster1::> volume size -vserver svm1 -volume volX -5TB (volume size) vol size: FlexGroup volume 'svm1:volX' size set to 10TB.