Enabling autosizing
Volume autosizing so that the volume will automatically grow to a specified size
when it reaches a used space threshold. You can do this for FlexVol volume types (the default volume type for
FSx for ONTAP) using the volume autosize
To enable volume autosizing (ONTAP CLI)
To access the NetApp ONTAP CLI, establish an SSH session on the management port of the Amazon FSx for NetApp ONTAP file system by running the following command. Replace
with the IP address of the file system's management port.management_endpoint_ip
[~]$
ssh fsxadmin@
management_endpoint_ip
For more information, see Managing file systems with the ONTAP CLI.
Use the
volume autosize
command as shown, replacing the following values:-
Replace
with the name of the SVM that the volume is created on.svm_name
-
Replace
with name of the volume that you want to resize.vol_name
Replace
with a used space percentage value (such asgrow_threshold
90
) at which the volume will automatically increase in size (up to the
value).max_size
Replace
with the maximum size that the volume can grow to. Use the formatmax_size
integer
[KB|MB|GB|TB|PB]
; for example,300TB
. The maximum size is 300 TB. The default is 120% of the volume size.Replace
min_size
with the minimum size that the volume will shrink to. Use the same format as formax_size
.Replace
shrink_threshold
with the used space percentage at which the volume will automatically shrink in size.
::>
volume autosize -vserver
svm_name
-volumevol_name
-mode grow_shrink -grow-threshold-percentgrow_threshold
-maximum-sizemax_size
-shrink-threshold-percentshrink_threshold
-minimum-sizemin_size
-