Active IQ Unified Manager Discussions

Snapshot Autogrow

VIRTUALGEEK2
6,966 Views

Simple question, at what point does volume autogrow expand the volume size as can this number be manually set?

 

 

 

1 ACCEPTED SOLUTION

ekashpureff
6,945 Views

 

VG -

 

The aoutogrow would be in increments of 500G with a max of 1.2T.

The increment and max can both be configured with the -i and -m parameters.

 

Yes, the trigger threshold can be configured with the '[ -grow-threshold-percent <used space %> ] ' parameter.

 

From the man page:

'

vol autosize volname
[ -m size [k|m|g|t] ]
[ -i size [k|m|g|t] ]
[ -minimum-size size [k|m|g|t] ]
[ -grow-threshold-percent <used space %> ] [ -shrink-threshold-percent <used space %> ] [ grow(on) | grow_shrink |off | reset ]

Volume autosize allows a flexible volume to automatically grow or shrink in size within an aggregate. Autogrow is useful when a volume is about to run out of available space, but there is space available in the containing aggregate for the volume to grow. Autoshrink is useful in combination with autogrow. It can return unused blocks to the aggregate when the amount of data in a volume drops below a user configurable shrink threshold. Autoshrink can be enabled via the grow_shrink subcommand. Autoshrink without autogrow is not supported. The autogrow feature works together with snap autodelete to automatically reclaim space when a volume is about to get full. The volume option try_first controls the order in which these two reclaim policies are used.

By default autosize is disabled. The minimum autosize is set to the volume size, the maximum autosize is set to 120% of the volume size, and the autosize increment is set to the lesser value of either 1GB or 5% of the volume size at the time of command. The grow (or on) subcommand can be used to enable autogrow on a volume. The grow_shrink subcommand enables both autogrow and autoshrink. The reset subcommand resets the settings of volume autosize to defaults. The off subcommand can be used to disable autosize.

The -m switch allows the user to specify the maximum size to which a flexible volume will be allowed to grow. When increasing the size of a volume, Data ONTAP uses the increment size specified with the -i switch as a guide; the actual size increase may be larger or smaller. You can specify the increment amount either as a fixed size (in bytes) or as a percentage. The percentage is converted to a fixed size that is based on the current volume size. If the value of the -m parameter is invalidated by a manual volume resize or is invalid when autosize is enabled, the maximum size is reset to 120% of the volume size, and the autosize increment is reset to the lesser value of either 1GB or 5% of the volume size.

The -minimum-size switch allows you to specify the minimum size below which a flexible volume is not allowed to shrink. The default value is the size of the volume at the time grow_shrink is enabled. If the value of the -minimum-size parameter is invalidated by a manual volume resize or is invalid when autosize is enabled, the minimum size is reset to the volume size. The -shrink-threshold-percent switch allows you to specify the threshold percentage of used space below which the autoshrink action is triggered. Similarly, if the used space in a volume exceeds the value specified with the -grow-threshold-percent switch, the autogrow action is triggered.'


I hope this response has been helpful to you.

At your service,

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp
(P.S. I appreciate 'kudos' on any helpful posts.)

 

 

 

View solution in original post

4 REPLIES 4

ekashpureff
6,957 Views

 

VG -

 

The command is 'vol autosize'.

 

The trigger is configurable with '-grow-threshold-percent <used space %>'.

 

See the 'vol' command man page:

https://library.netapp.com/ecmdocs/ECMP1511537/html/man1/na_vol.1.html

 


I hope this response has been helpful to you.

At your service,

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp
(P.S. I appreciate 'kudos' on any helpful posts.)

VIRTUALGEEK2
6,948 Views

Let me reword my question.

If my current volume is 10TB and the current used space is 7.5TB, the autogrow is in increments of 150GB with a max size of 12TB.

 

Can and where does one define at what point the volume gets expanded by 150GB? I would like the volume to grow by 150GB when it reached 85%, can this be done?

 

Thank you

ekashpureff
6,946 Views

 

VG -

 

The aoutogrow would be in increments of 500G with a max of 1.2T.

The increment and max can both be configured with the -i and -m parameters.

 

Yes, the trigger threshold can be configured with the '[ -grow-threshold-percent <used space %> ] ' parameter.

 

From the man page:

'

vol autosize volname
[ -m size [k|m|g|t] ]
[ -i size [k|m|g|t] ]
[ -minimum-size size [k|m|g|t] ]
[ -grow-threshold-percent <used space %> ] [ -shrink-threshold-percent <used space %> ] [ grow(on) | grow_shrink |off | reset ]

Volume autosize allows a flexible volume to automatically grow or shrink in size within an aggregate. Autogrow is useful when a volume is about to run out of available space, but there is space available in the containing aggregate for the volume to grow. Autoshrink is useful in combination with autogrow. It can return unused blocks to the aggregate when the amount of data in a volume drops below a user configurable shrink threshold. Autoshrink can be enabled via the grow_shrink subcommand. Autoshrink without autogrow is not supported. The autogrow feature works together with snap autodelete to automatically reclaim space when a volume is about to get full. The volume option try_first controls the order in which these two reclaim policies are used.

By default autosize is disabled. The minimum autosize is set to the volume size, the maximum autosize is set to 120% of the volume size, and the autosize increment is set to the lesser value of either 1GB or 5% of the volume size at the time of command. The grow (or on) subcommand can be used to enable autogrow on a volume. The grow_shrink subcommand enables both autogrow and autoshrink. The reset subcommand resets the settings of volume autosize to defaults. The off subcommand can be used to disable autosize.

The -m switch allows the user to specify the maximum size to which a flexible volume will be allowed to grow. When increasing the size of a volume, Data ONTAP uses the increment size specified with the -i switch as a guide; the actual size increase may be larger or smaller. You can specify the increment amount either as a fixed size (in bytes) or as a percentage. The percentage is converted to a fixed size that is based on the current volume size. If the value of the -m parameter is invalidated by a manual volume resize or is invalid when autosize is enabled, the maximum size is reset to 120% of the volume size, and the autosize increment is reset to the lesser value of either 1GB or 5% of the volume size.

The -minimum-size switch allows you to specify the minimum size below which a flexible volume is not allowed to shrink. The default value is the size of the volume at the time grow_shrink is enabled. If the value of the -minimum-size parameter is invalidated by a manual volume resize or is invalid when autosize is enabled, the minimum size is reset to the volume size. The -shrink-threshold-percent switch allows you to specify the threshold percentage of used space below which the autoshrink action is triggered. Similarly, if the used space in a volume exceeds the value specified with the -grow-threshold-percent switch, the autogrow action is triggered.'


I hope this response has been helpful to you.

At your service,

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp
(P.S. I appreciate 'kudos' on any helpful posts.)

 

 

 

VIRTUALGEEK2
6,935 Views

Thank you, the commands used to increase or decrease the autogrow/autoshrink were:

Autogrow

volume autosize -vserver svm_name -volume volume_name -grow-threshold-percent 90

 

Autoshrink

volume autosize -vserver svm_name -volume volume_name -shrink-threshold-percent 85

 

Public