Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

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.

Steps 3, 4, and 5 show how to save individual instances of a PowerHA policy from the Work with HA Policies (WRKHAPCY) command menu.

3. On the WRKHAPCY command screen, locate an HA policy name and type 12, Work with, and press Enter. The Work with HA Policies screen opens containing a list of all the individual instances of the selected PowerHA policy.

4. Locate the HA policy instance to save and type option 9, Save next to the policy name. 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 the respective domain and specific qualifier values the policy instance controls.

5. In the Policy file field, enter the path and the name of the file to contain the saved HA policy instance and press Enter. The individual instance of that PowerHA policy is 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.

  • No labels