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 ONTAP CLI, establish an SSH session on the management port of the Amazon FSx for NetApp ONTAP file system or SVM by running the following command. Replace
with the IP address of the file system's management port.management_endpoint_ip[~]$ssh fsxadmin@management_endpoint_ipFor more information, see Managing file systems with the ONTAP CLI.
Use the
volume autosizecommand 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_threshold90) at which the volume will automatically increase in size (up to thevalue).max_sizeReplace
with the maximum size that the volume can grow to. Use the formatmax_sizeinteger[KB|MB|GB|TB|PB]; for example,300TB. The maximum size is 300 TB. The default is 120% of the volume size.Replace
min_sizewith the minimum size that the volume will shrink to. Use the same format as formax_size.Replace
shrink_thresholdwith the used space percentage at which the volume will automatically shrink in size.
::>volume autosize -vserversvm_name-volumevol_name-mode grow_shrink -grow-threshold-percentgrow_threshold-maximum-sizemax_size-shrink-threshold-percentshrink_threshold-minimum-sizemin_size-
To show the current autosize setting, run the following command. Replace
svm_nameandvol_namewith your information.::>volume autosize -vserversvm_name-volumevol_name