Configuring FlexGroup volumes to automatically grow and shrink their size

Starting with ONTAP 9.3, you can configure FlexGroup volumes to automatically grow and shrink according to how much space they currently require.

Before you begin

The FlexGroup volume must be online.

About this task

You can autosize FlexGroup volumes in two modes:

As a volume grows, the maximum number of files it can contain might be automatically increased. When a volume is shrunk, the maximum number of files it can contain is left unchanged, and a volume cannot be automatically shrunk below the size that corresponds to its current maximum number of files. For this reason, it might not be possible to automatically shrink a volume all the way to its original size.

Procedure

Configure the volume to grow and shrink its size automatically: volume autosize -vserver vserver_name -volume vol_name -mode [grow | grow_shrink]
You can also specify the maximum size, minimum size, and thresholds for growing or shrinking the volume.
The following command enables automatic size changes for a volume called fg1. The volume is configured to grow to a maximum size of 5 TB when it is 70% full.
cluster1::> volume autosize -volume fg1 -mode grow -maximum-size 5TB -grow-threshold-percent 70
vol autosize: volume "vs_src:fg1" autosize settings UPDATED.