The NetApp volume autosize command sets and displays the autosize settings of DataONTAP flexible volumes. This command enables a user to enable and disable autosizing on a volume, to control both the overall minimum and maximum sizes, and to control the percentage size of the increments with each grow or shrink operation. The check_netapp_pro VolumeAutosize check has been build to check all the autosized volumes on a specific host which are using this autogrow functionality.
Filters and Thresholds
The actual volumes to be examined can be additionally filtered by using the ‑‑include and ‑‑exclude volume script parameters. Thresholds may be set in bytes or percentages of the autosize maximum.
A couple of examples to illustrate: In this first example, the command will warn us if any autosize volume has less than 500 MiB difference between actual and maximum sizes, and return critical if the difference is less than 200 MiB.
./check_netapp_pro.pl VolumeAutosize -H filer -w 500 -c 200
In this second example, the command will warn if any autosize volume has less than 25% of the maximum, and return critical if the difference is less than 10%.
./check_netapp_pro.pl VolumeAutosize -H filer -w =MAX/100*25 -c =MAX/100*10
This provides for a highly flexible approach to checking available autosize capacities on multiple volumes, or any subset thereof. For more information on using the check_netapp_pro VolumeAutosize command, and associated command suites, with DataONTAP please check the blog .