Saving PowerHA Policies

Saving PowerHA policies

Use the Save HA Policy (SAVHAPCY) command to save instances of a PowerHA policy

The Save High Availability (HA) Policy (SAVHAPCY) command is used to save HA policies. Users can save all HA policies or specific policy groups and instances.

Policy information is saved in comma-separated value (CSV) format in an integrated file system (IFS) file on the local cluster node.

The Save HA Policy command screen can be accessed by:

  • Typing the SAVHAPCY command and pressing F4 to open the Save HA Policy (SAVHAPCY) 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 9, Save and press Enter to open the Save HA Policy (SAVHAPCY) screen.

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

Saving all PowerHA Policies to a File

To save the information of all PowerHA policies using a command, enter the following command:

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

This saves the defined values for all PowerHA policies in the cluster to a file called test.csv.

Saving Individual Instances of a Specified Policy

Save individual instances of specified policies to a file by entering the following command:

SAVHAPCY PCYFILE('/home/myuser/pcy_backup2.csv') PCY(QCST_CRG_CANCEL_FAILOVER) QUAL('SCOPE(*SITE)')

This saves all instances of the QCST_CRG_CANCEL_FAILOVER policy with the qualifier scope of *SITE to a file called test1.csv.

Saving Policies using the Work with HA Policies Screens

Steps 1 and 2 demonstrate how to save 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 9, Save, and press Enter. The Save HA Policy (SAVHAPCY) screen opens with the Policy name, Policy domain, and Policy qualifier fields populated with the selected HA policy name and *ALL.

  2. In the Policy file field, enter the path and the name of the file to contain the saved HA policy and press Enter. All instances of that PowerHA policy are saved to the file name provided.

Tip: The CSV formatted file can be used with the Restore HA Policy (RSTHAPCY) command to restore saved policies to a cluster.

For details about the SAVHAPCY command or specific fields, consult the F1 Help or visit the SAVHAPCY page.

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.