Commands for configuring automatic giveback

There are specific ONTAP commands for enabling or disabling automatic giveback.

If you want to... Use this command...
Enable automatic giveback so that giveback occurs as soon as the taken-over node boots, reaches the Waiting for Giveback state, and the Delay before Auto Giveback period has expired

The default setting is false, except for two-node clusters, where the default setting is true.

storage failover modify -node nodename -auto-giveback true
Disable automatic giveback

The default setting is false, except for two-node clusters, where the default setting is true

Note: Setting this parameter to false does not disable automatic giveback after takeover on panic and takeover on reboot; automatic giveback after takeover on panic must be disabled by setting the -auto-giveback-after-panic parameter to false
storage failover modify -node nodename -auto-giveback false
Disable automatic giveback after takeover on panic (this setting is enabled by default) storage failover modify -node nodename -auto-giveback-after-panic false
Delay automatic giveback for a specified number of seconds (default is 600)

This option determines the minimum time that a node will remain in takeover before performing an automatic giveback.

storage failover modify -node nodename -delay-seconds seconds
Change the number of times the automatic giveback is attempted within 60 minutes (default is two) storage failover modify -node nodename -attempts integer
Change the time period (in minutes) used by the -attempts parameter (default is 60 minutes) storage failover modify -node nodename -attempts-time integer
Change the time period (in minutes) to delay the automatic giveback before terminating CIFS clients that have open files.

During the delay, the system periodically sends notices to the affected workstations. If 0 (zero) minutes are specified, then CIFS clients are terminated immediately.

storage failover modify -node nodename -auto-giveback-cifs-terminate-minutes integer
Override any vetoes during automatic giveback operations
Note: Some vetos cannot be overridden.
storage failover modify -node nodename -auto-giveback-override-vetoes true