Restoring PowerHA Policies

The Restore High Availability (HA) Policy (RSTHAPCY) command is used to restore HA policies that have been previously saved with the Save HA Policy (SAVHAPCY) command.

If a policy is being restored over an existing policy in the cluster, the existing policy value is replaced with the value in the policy file. If a policy is being restored as new, the policy is added as a new policy.

The Restore HA Policy command screen can be accessed by:

  • Typing the RSTHAPCY command and pressing F4 to open the Restore HA Policy (RSTHAPCY) screen.

  • Using the Work with Cluster (WRKCLU) command menu. Select option 12, Work with HA policies. Press Enter to open the Work with HA Policies screen. Locate an HA policy name and type 10, Restore and press Enter to open the Restore HA Policy (RSTHAPCY) screen.

  • Entering the WRKHAPCY command that opens the Work with HA Policies screen. Locate an HA policy name and type 10, Restore and press Enter to open the Restore HA Policy (RSTHAPCY) screen.

Restoring all PowerHA Policies from a File

To restore the information of all PowerHA policies, previously saved with SAVHAPCY, enter the following command:

RSTHAPCY PCYFILE('/home/myuser/pcy_backup.csv')

This restores all policies to the cluster from the to restore policies to the cluster from the file pcy_backup.csv.

Restoring Individual Instances of a Specified Policy

Restore an instance of a specified policy by entering the following command:

RSTHAPCY PCYFILE('/home/myuser/pcy_backup.csv') PCY(QCST_CRG_CANCEL_FAILOVER) QUAL('SCOPE(*SITE)')

This example restores instances of the QCST_CRG_CANCEL_FAILOVER PowerHA policy that also have a qualifier SCOPE of *SITE from the file pcy_backup.csv.

Restoring Policies using the Work with HA Policies Screens

Steps 1, 2, and 3 demonstrate how to restore an HA policy from the Work with HA Policies (WRKHAPCY) command menu.

  1. On the WRKHAPCY command screen, locate an HA policy name and type 10, Restore and press Enter. The Restore HA Policy (RSTHAPCY) screen opens with the Policy name, Saved policy domain, and Policy qualifier fields populated with the selected HA policy name and *ALL.

  2. Specify whether the HA policy or policies are restored to the same policy domain in which they were saved or if they will be restored to another policy domain. Enter either:

    • A policy domain name: the name of the policy domain the HA policies will restore to, or,

    • *SAVPCYDMN: to specify that all policies are to be restored in the same policy domain from which they were saved.

  3. In the Policy file field, enter the path and the name of the file that contains the saved HA policy instance to restore and press Enter. The individual instances of that PowerHA policy is restored from the file name provided.

Verify that the entries in the HA policy have been restored correctly using the DSPHAPCY command.

Privacy Policy | Cookie Policy | Impressum
From time to time, this website may contain technical inaccuracies and we do not warrant the accuracy of any posted information.
Copyright © Fortra, LLC and its group of companies. All trademarks and registered trademarks are the property of their respective owners.