Testing takeover and giveback

Contributors

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.

Steps
  1. Check the cabling on the HA interconnect cables to make sure that they are secure.

  2. Verify that you can create and retrieve files on both nodes for each licensed protocol.

  3. Enter the following command:

    storage failover takeover -ofnode partnernode

    See the man page for command details.

  4. Enter either of the following commands to confirm that takeover occurred:

    storage failover show-takeover

    storage failover show

    If you have the storage failover command’s -auto-giveback option enabled:

    Node

    Partner

    Takeover Possible

    State Description

    node 1

    node 2

    -

    Waiting for giveback

    node 2

    node 1

    false

    In takeover, Auto giveback will be initiated in number of seconds

    If you have the storage failover command’s -auto-giveback option disabled:

    Node

    Partner

    Takeover Possible

    State Description

    node 1

    node 2

    -

    Waiting for giveback

    node 2

    node 1

    false

    In takeover

  5. 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

  6. Cconfirm that the takeover node (Node1) controls the partner node’s (Node2) aggregates:

    aggr show ‑fields home‑id,home‑name,is‑home

    aggregate

    home-id

    home-nameh

    is-home

    aggr0_1

    2014942045

    node1

    true

    aggr0_2

    4078312453

    node2

    false

    aggr1_1

    2014942045

    node1

    true

    aggr1_2

    4078312453

    node2

    false

    During takeover, the “is-home” value of the partner node’s aggregates is false.

  7. Give back the partner node’s data service after it displays the “Waiting for giveback” message:

    storage failover giveback -ofnode partnernode

  8. Enter either of the following commands to observe the progress of the giveback operation:

    storage failover show-giveback

    storage failover show

  9. Proceed, depending on whether you saw the message that giveback was completed successfully:

    If takeover and giveback…​

    Then…​

    Are completed successfully

    Repeat Step 2 through Step 8 on the partner node.

    Fail

    Correct the takeover or giveback failure and then repeat this procedure.