Configuring PowerHA with Power Virtual Server FlashCopy (7.5)
- 1 Background
- 2 Before you begin
- 3 Procedure
- 4 Results
Background
IBM Power Virtual Server FlashCopy provides the ability to take point-in-time snapshots of independent auxiliary storage pools (IASPs) and bring the snapshots online on another partition that is active in the cluster. Common use cases for FlashCopy include offloading backups to a secondary partition to reduce backup windows (offline backups), and test environments.
Before you begin
This scenario assumes that the following tasks have been completed prior to these steps:
A cluster between the nodes has been created, and the cluster nodes have a status of Active.
The nodes are all in the same device domain. When creating a cluster or adding a node to a cluster with default options, PowerHA automatically adds nodes to a single device domain.
An IASP has been created on the production node.
Procedure
Adding Storage Credentials
Tip: If credentials were already added for technologies such as Global Replication Services or Volume Switching, skip to Adding Copy Descriptions
PowerHA uses the Power Virtual Server API to manage and control resources in IBM Power Virtual Server.
Configuring PowerHA to Accept Digital Certificates from IBM Cloud Services
All communication between PowerHA and the IBM Cloud uses TLS for communication. This communication uses digital certificates to both encrypt and protect the communication.
Create a *SYSTEM certificate store to hold the digital certificates
To create the *SYSTEM certificate store, use the following steps:
Tip: The system certificate store must be created on all nodes in the cluster. Ensure the *SYSTEM certificate store is created on all nodes in the cluster before continuing.
Trusting the IBM Cloud Certificate Authority
There are two options for trusting the IBM Cloud Certificate Authority:
Recommended: Populate digital certificate manager with well known CAs.
Bypassing strict-certificate checking in PowerHA using a PowerHA Policy
Creating an API Key
The API key at a minimum must have the following access levels to the Workspace for Power Virtual Server service:
power-iaas.cloud-instance.read
power-iaas.cloud-instance.modify
PowerHA recommends using Service IDs rather than API keys attached to an IBM cloud user. This ensures that operations are audited as the service ID, not as the user. In addition, it decouples the PowerHA access from being tied to an identity representing a specific person.
In the IBM Cloud console, go to Manage > Access (IAM) and select Service IDs.
If you don’t have a service ID created, create the service ID.
Click the Actions icon > Manage service ID.
Click API keys.
Click create
Add a name and description to easily identify the API key.
Click Create.
Save your API key by copying or downloading it to a secure location.
For security reasons, the API key is only available to be copied or downloaded at the time of creation. If the API key is lost, you must create a new API key.
Add a storage controller configuration description representing the Power Virtual Server Workspace
An HA configuration description of type storage controller (*STGCTL) and subtype (*PVS) is used to represent a Power Virtual Server workspace. It contains the authentication credentials (API Key), as well as the information required to identify and control the workspace.
A PVS Storage Controller configuration description can be created using any of the following methods:
Type the ADDHACFGD command and press F4 to go to the Add HA Configuration Description Screen.
Using the Work with Cluster (WRKCLU) command menu. Selection option 11, Work with HA Configuration Descriptions, and use option 1, Create.
From the command line, enter the ADDHACFGD command and your parameters.
For this example, a configuration description for DAL10 is created using the following command, followed by selecting the appropriate workspace from the list:
ADDHACFGD NAME(PVSWSDAL) TYPE(*STGCTL) SUBTYPE(*PVS) PVSHOST('apikey')
This command specifies to add a storage controller configuration description named PVSWSDAL with the API key ‘apikey’, representing the API key created previously. The PVSHOST parameter has additional elements that by default will prompt to select a workspace from the workspaces the API key has access to in the IBM Cloud infrastructure.
Tip: The name of the configuration description does not need to match the name of the workspace or data center. This name is only known to the PowerHA product.
Note: When using the command in batch mode, a workspace CRN must be specified in the command rather than the *SELECT option. The Power Virtual Server workspace CRN can be found in the IBM Cloud console.
Adding Copy Descriptions
A copy description gives PowerHA the information it needs to describe and manage a single copy of an IASP. With FlashCopy, there are two copies of the IASP: the source of the FlashCopy and the target of the FlashCopy. Therefore, PowerHA requires two copy descriptions for FlashCopy.
Adding the FlashCopy source Copy Description
Follow the section below depending on the current configuration:
Adding the FlashCopy target Copy Description
The target copy description for FlashCopy primarily describes the ASP device, and the cluster node that will be the host for the FlashCopy when mounted.
Prior to adding a copy description, the device description for the IASP device must exist on the FlashCopy target node. If the FlashCopy target node is in an administrative domain, and the IASP device description is in the administrative domain, the device description likely already exists on the FlashCopy target node. If the FlashCopy target node is not in the administrati, use the CRTDEVASPin the administrative domain, the device description likely already exists on the FlashCopy target node. If the FlashCopy target node is not in the administrative domain or the ASP device description is not in the administrative domain, use the CRTDEVASP command on the FlashCopy target node to create the device description, specifying the IASP name and IASP resource name. For example: CRTDEVASP DEVD(MYIASP) RSRCNAME(MYIASP)
.
Once the device description exists, the target copy description can be added. For example:
ADDPVSCPYD ASPCPY(FLASHCPYD)
ASPDEV(MYIASP)
CRG(*NONE) SITE(*NONE) NODE(FLASH)
PVSCFGD(PVSWSDAL)
This command adds a copy description named FLASHCPYD for asp device MYIASP. It describes this copy of the IASP being represented by the node named FLASH. In this instance the CRG and SITE are both *NONE as the target of a FlashCopy is never in a CRG, even if the source copy is. Finally, the Power Virtual Server configuration description parameter gives the copy description the credentials needed to control the Power Virtual Server Workspace previously defined in the configuration description called PVSWSDAL.
Associating the FlashCopy target Copy Description with a Power Virtual Server Instance
As part of mounting a FlashCopy, PowerHA will attach volumes to the Power Virtual Server Instance represented by the FlashCopy target. PowerHA requires information to associate a cluster node name with the Power Virtual Server Instance ID. The CHGPVSCPYD command is used to add a cluster node association with a PVM Instance ID. For example:
CHGPVSCPYD ASPCPY(FLASHCPY) ACTION(*ADDNODE)
This command specifies to add a cluster node and PVM Instance ID association to the copy description named FLASHCPY. By default, the command uses the value *SELECT for the node and instance ID parameters. With the *SELECT option, PowerHA queries the IBM Power Virtual Server workspace for instances that can be added into the copy description. Alternatively, the instance may be specified manually via the command line using the PVMINSTID parameter.
Note: When using the command in batch mode, the NODE and PVMINSTID parameters must be specified in the command rather than the *SELECT option. The PVM Instance IDs for an instance can be found in the IBM Cloud console.
Starting a PowerHA Session
A session in PowerHA describes the relationship between copy descriptions, including the type of replication and is used to manage and control replication. A session can be started in this example using the following command:
STRPVSSSN SSN(FLASHSSN) TYPE(*FLASHCOPY) ASPCPY((DAL10CPY FLASHCPYD))
This command specifies to start a session called FLASHSSN that is of type FlashCopy. PowerHA uses FlashCopy to represent point-in-time snapshots. In addition, the command specifies that this session references a source copy description named DAL10CPY and a target copy description named FLASHCPYD.
Did you know?
With IBM Power Virtual Server FlashCopy, the PowerHA FlashCopy session is designed to always exist, regardless of the status of the underlying FlashCopy or snapshots. No FlashCopy or snapshot is taken at the time of starting the PowerHA FlashCopy session.
Results
PowerHA management of FlashCopy is now configured between the copy descriptions. To verify and monitor the status of FlashCopy, use one of the following:
The Display PVS Session (DSPPVSSSN) command. For example, DSPPVSSSN SSN(FLASHSSN).
The SQL Service table function QHASM.SESSION_INFO.
Once Power Virtual Server FlashCopy is configured see Managing FlashCopy in Power Virtual Server for information on taking, mounting, unmounting, and deleting FlashCopy snapshots.
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.