Testing takeover and giveback
After you configure all aspects of your HA pair, you need to verify that it is operating as expected in maintaining uninterrupted access to both nodes' storage during takeover and giveback operations. Throughout the takeover process, the local (or takeover) node should continue serving the data normally provided by the partner node. During giveback, control and delivery of the partner's storage should return to the partner node.
- Check the cabling on the HA interconnect cables to make sure that they are secure.
- Verify that you can create and retrieve files on both nodes for each licensed protocol.
- Enter the following command: storage failover takeover -ofnode partner_node See the man page for command details.
- Enter either of the following commands to confirm that takeover occurred: storage failover show-takeover storage failover show
Example
If you have the storage failover command's -auto-giveback option enabled:cluster::> storage failover show
Takeover
Node Partner Possible State Description
------ ------- --------- -----------------
node1 node2 - Waiting for giveback
node2 node1 false In takeover, Auto giveback will be
initiated in <em className="ph i">number of seconds</em> secondsExample
If you have the storage failover command's -auto-giveback option disabled:cluster::> storage failover show
Takeover
Node Partner Possible State Description
------ ------- --------- -----------------
node1 node2 - Waiting for giveback
node2 node1 false In takeover. - Enter the following command to display all the disks that belong to the partner node (Node2) that the takeover node (Node1) can detect: storage disk show -home node2 -ownership
The following command displays all disks belonging to Node2 that Node1 can detect:
cluster::> storage disk show -home node2 -ownership
Disk Aggregate Home Owner DR Home Home ID Owner ID DR Home ID Reserver Pool
------ --------- ----- ----- ------- ---------- ---------- ---------- ---------- -----
1.0.2 - node2 node2 - 4078312453 4078312453 - 4078312452 Pool0
1.0.3 - node2 node2 - 4078312453 4078312453 - 4078312452 Pool0
... - Enter the following command to confirm that the takeover node (Node1) controls the partner node's (Node2) aggregates: aggr show ‑fields home‑id,home‑name,is‑home
cluster::> aggr show ‑fields home‑id,home‑name,is‑home
aggregate home-id home-name is-home
--------- ---------- --------- ---------
aggr0_1 2014942045 node1 true
aggr0_2 4078312453 node2 false
aggr1_1 2014942045 node1 true
aggr1_2 4078312453 node2 false
4 entries were displayed.During takeover, the is-home value of the partner node's aggregates is false. - Give back the partner node's data service after it displays the Waiting for giveback message by entering the following command: storage failover giveback -ofnode partner_node
- Enter either of the following commands to observe the progress of the giveback operation: storage failover show-giveback storage failover show
- Proceed depending on whether you saw the message that giveback was completed successfully:
If takeover and giveback... Then... Is completed successfully Repeat Step 2 through Step 8 on the partner node. Fails Correct the takeover or giveback failure and then repeat this procedure.
Give documentation feedback