How to perform Takeover/Giveback
Applies to
- ONTAP 9
- Storage Takeover/Giveback
Description
- This article covers performing a takeover and giveback of a node in an ONTAP cluster
- If one or more nodes in the cluster needs to be shutdown, instead follow Gracefully shutdown and power up your storage system Resolution Guide
Procedure
System Manager
- Use System Manager to Perform a Reboot of the node
- When the node reboots the HA partner automatically executes a takeover
- After the reboot is complete the giveback option can be performed through System Manager
ONTAP CLI
- Check that both nodes are connected with the storage failover show command:
cluster1::> storage failover show
Takeover Node Partner Possible State Description
-------------- -------------- -------- -------------------------------------
cluster1-01 cluster1-02 true Connected to cluster1-02
cluster1-02 cluster1-01 true Connected to cluster1-01
2 entries were displayed.
- If the
Possible
field is false, enable storage failover before proceeding. - Initiate a takeover of the node to be taken over:
cluster1::> storage failover takeover -ofnode <nodename>
The following example causes a node named cluster1-02 to be taken over
cluster1::> storage failover takeover -ofnode cluster1-02
Warning: A takeover will be initiated. Once the partner node reboots, a giveback will be automatically initiated. Do you want to continue? {y|n}: y
- Check the progress of the takeover:
cluster1::> storage failover show
Takeover Node Partner Possible State Description
-------------- -------------- -------- -------------------------------------
cluster1-01 cluster1-02 true Takeover scheduled. cluster1-02
has relocated its SFO aggregates in
preparation of takeover.
cluster1-02 cluster1-01 false Pending shutdown
2 entries were displayed.
- Check if the takeover is finished and then giveback will perform automatically or you can giveback manually:
cluster1::> storage failover show
Takeover Node Partner Possible State Description
-------------- -------------- -------- -------------------------------------
cluster1-01 cluster1-02 false In takeover, Auto giveback will be
initiated in 416 seconds
cluster1-02 cluster1-01 - Waiting for giveback
2 entries were displayed.
- If the giveback is not started automatically then you can perform a manual giveback:
cluster1::> storage failover giveback -ofnode <nodename>
- Run the storage failover show to ensure that both nodes are connected:
cluster1::> storage failover show
Takeover Node Partner Possible State Description
-------------- -------------- -------- -------------------------------------
cluster1-01 cluster1-02 true Connected to cluster1-02
cluster1-02 cluster1-01 true Connected to cluster1-01
2 entries were displayed.
- After the giveback is complete it may be necessary to Revert all LIFs back to their home port