PowerHA Tools FSFC QuickSetup 51 2
PowerHA Tools FSFC QuickSetup 51 2
Christian Aasland
aasland@[Link]
2
IBM Technology
What the heck is this document for? Expert Labs
o This is a quick-install guide for configuring the Full System Flashcopy Manager for the following storage products:
o DS8K family
o Customers can have it, but it is designed to be performed by a Lab Services consultant
o [Link]
3
IBM Technology
Overview of Full System Flash Copy concepts Expert Labs
3 1 2
Partition returns to Write contents of memory to Flashcopy the disks
production duties disk
6
Copy BRMS data
back to the source
Flashcopy
4
Source
IPL the target partition
Tape
Target
5
Backup the target
partition to tape
Controller
7 LPARs
Deactivate target
LPAR
4
IBM Technology
Flashcopy at DR site Expert Labs
PowerHA Cluster
The toolkit will manage the Replication
hardware replication so that the Controller Controller
DR site can create a flashcopy
for backup purposes.
Hardware
This is supported for: Preferred Replication Preferred
Source Target
• DS8K GMIR
• SVC GMCV and MMIR
Flashcopy
This is not supported for: Target
• PowerVS
• DS8K MMIR
• SVC GMIR
5
IBM Technology
Shared Flash Copy LPAR Expert Labs
Flashcopy
2am
disks, etc).
Preferred
For example, both flashcopies can occur at 2am. Source
Flashcopy
2am
Then the toolkit will attach the target LPAR to the
first flashcopy disks and run it’s backup. When that
finishes, the toolkit will attach the target LPAR to the Target
second flashcopy disks, IPL and run backups from
that.
The number of production LPARs sharing a target
LPAR is limited by how long the backups take.
6
IBM Technology
Multi-Flash Expert Labs
Flashcopy
the data, i.e. the data associated with a specific
2am
application.
Note that a quiesce or memory flush affects the
entire production LPAR, not just one application. Target 1
Target 2
7
IBM Technology
Firewall Access (on-prem) Expert Labs
Workstation access required for
installation and configuration only
(dft=55920)
Toolkit
Ping
Telnet 2300
Ping, ssh port 22
Toolkit
Ping
(dft=55920)
Target
8
IBM Technology
Firewall Access (PowerVS) Workstation access requiredExpert
for Labs
installation and configuration
only
Source
Toolkit (dft=55920)
Ping
55920
Toolkit communications default =
BRMS Xfer port *DFT = 55066
Controllers
Flashcopy
PowerHA ports
5550, 5551 between
controllers
9
IBM Technology
SVC setup prior to our engagement Expert Labs
o Configure the storage unit for Primary, Secondary and Controlling LPAR.
o Firmware level [Link] or newer
o If using FS9100 with GMCV and the change volumes are in a data reduction pool (DRP), the SVC must be at
firmware level [Link] or higher
o Create or select user profile
o Must be assigned to CopyOperator (or better) user group
o If changing host connections, must be Administrator
o LUNs
o For source and target LPARs
o Host connections
o Licenses (Replication, Thin-provision, etc)
o If using replication:
o Partnerships
o We can remotely help you set this up (also ensures you have communication between the SVC’s before we
arrive)
o Start replication
o Replication should be completed before we’re onsite so that won’t have to wait for it to catch up
10
IBM Technology
DS8K setup prior to our engagement Expert Labs
11
IBM Technology
Cloud setup prior to our engagement Expert Labs
12
IBM Technology
HMC Configuration Expert Labs
o Password is required
13
Restoring toolkit library, setup on Production LPARs IBM Technology
Expert Labs
14
IBM Technology
Enter the controller information on the Production Expert Labs
LPARs
o If using multiple controllers, set up the toolkit so STRFSFLASH can be issued on the production LPAR and connect to the first
available controller.
o STRFSFLASH CTLR(*AUTO) will use this information to connect to the first available controller.
15
IBM Technology
Modifying the Startup Program on Production Expert Labs
LPARs
o Modify startup program on each node to prevent QSTRUPPGM from running on the target.
o Not necessary if using CFGSTRPSRC (for Full System Replication)
o This is optional but adds a layer to safety.
o QZRDHASM/RUNLPARCMD SRLN(xxxxxxx) LPAR(xx) CMD(CALL + PGM(QZRDHASM/QZRDENDSBS))
MONMSG MSGID(CPF0000)
o At the very beginning of the startup program
o Specify the target LPAR serial and LPAR numbers
o Review QZRDHASM/QCLSRC QZRDENDSBS for changes
o Include MONMSG CPF0000 after RUNLPARCMD
16
IBM Technology
Creating the cluster on the controllers Expert Labs
o If there is only one controller, you must create a single-node cluster. Perform the following steps on the single node only.
o If multiple controllers are to be configured, issue these messages on all of them:
o STRTCPSVR *INETD
o CHGTCPSVR *INETD AUTOSTART(*YES)
o CHGNETA ALWADDCLU(*ANY)
o On the Master controller
o CRTCLU CLUSTER(FSFC) START(*YES) DEVDMN(*GEN)
o PF4, fill in Primary and Secondary Controlling node names and IP addresses
o On Auxiliary controller:
o WRKCLU, validate cluster is started
17
IBM Technology
Restoring toolkit library, setup on both Controllers Expert Labs
o Modify the startup program (after IP has been started) on each controller to:
o Start the subsystem if any process will be initiated from the production LPAR:
o STRSBS QZRDHASM/QZRDFSR
o Start the cluster if there are multiple nodes using the DDD:
o STRCLUNOD CLUSTER(*) NODE(*ALL)
o This requires *IOSYSCFG so QSTRUPJD should specify a profile like QLPAR so after compiling the
startup program issue this command:
o CHGJOBD JOBD(QSTRUPJD) USER(QLPAR)
19
IBM Technology
Download the Java Secure Channel code (on the Expert Labs
Controllers)
o Not necessary for PowerVS Operations
o Download Java Secure Channel to /QIBM/qzrdhasm/ssh from
o [Link]
o Use the latest version, ensure the file /QIBM/Qzrdhasm/ssh/[Link] links to what you downloaded.
o The Java Secure Channel is an open-source implementation of ssh
o Because it is open-source, IBM Legal requires that you download it yourself (i.e. we can't bundle it with our toolkit)
o Download to desktop, FTP to both IBM i controllers, place it into directory /QIBM/qzrdhasm/ssh/
ftp> bin
200 Representation type is binary IMAGE.
ftp> put [Link] /QIBM/qzrdhasm/ssh/[Link]
local: [Link] remote: /QIBM/qzrdhasm/ssh/[Link]
227 Entering Passive Mode (9,5,168,177,167,46).
150-NAMEFMT set to 1.
150 Sending file to /QIBM/qzrdhasm/ssh/[Link]
226 File transfer completed successfully.
249282 bytes sent in 0.742 secs (336.12 Kbytes/sec)
ftp> 20
IBM Technology
Create the credentials on either controller Expert Labs
o FSFC uses userid/password to log into the HMCs, DS8Ks and SVCs. Use WRKCSECRDL or ADDCSECRDE to manage these
credentials.
o The ‘Role’ should be *USER if the host is not a CSM server
o Enter the IP address, user ID, password and a description of the host for:
o SVCs
o DS8Ks
o HMCs
o This information is encrypted and placed into the device data domain and is kept consistent on both of the controllers.
o WRKCSECRDL uses PowerHA to keep the controllers in sync
o Use option 6 to validate the credentials
22
IBM Technology
Create Service ID API Key Expert Labs
23
IBM Technology
Enter the API Key into WRKCSECRDL Expert Labs
24
IBM Technology
Storage Selector Expert Labs
25
IBM Technology
Create the SVC environments on the controller Expert Labs
o An FSFC Environment describes the storage to the toolkit. Use WRKCSE to manage the environments.
o Option 1 creates a new environment
o Enter *NONE when prompted for ASP Copy Descriptions
o The environments are stored in the device data domain and is kept in sync with both controllers.
o On the SVC, flashcopy consistency groups define background copy rates, full or incremental etc. The toolkit just manages the
consistency groups.
Change a FLASH Environment
Type choices, press Enter.
Comment:
Text . . . . . . . . . . . . . . . Something meaningful to humans
Bottom
F1=Help F3=Exit F6=Validate F12=Cancel 26
IBM Technology
Finding the Flashcopy consistency group Id Expert Labs
27
IBM Technology
Create the DS environments on the controller Expert Labs
o An FSFC Environment describes the storage to the toolkit. Use WRKCSE to manage the environments.
o Option 1 creates a new environment
o The environments are stored in the device data domain and is kept in sync with both controllers.
o Enter the requested information then PAGE DOWN
More . . .
28
IBM Technology
Enter the DS information Expert Labs
Comment:
Text . . . . . . . . . . . . . . .
Press Enter to add DS8K credentials for [Link], press F12 to cancel.
29
IBM Technology
Enter the DS information Expert Labs
30
Enter the DS information – host connections IBM Technology
Expert Labs
o From WRKCSE, use option 16 to manage the target LPAR host connections
o Note the use of F4 to prompt for hosts, and F6 to import LUNs
Number
Opt Host name Volumes
CTCCSM1 1
Bottom
F1=Help F3=Exit F4=Prompt F12=Cancel
31
Enter the Cloud information – PVM Instance IBM Technology
Expert Labs
Information
o From WRKCSE, use option 1 to create a new Cloud environment.
o Enter the API Key name you created in WRKCSECRDL
o On the ‘PVM instance’ parameters press F4 to retrieve a list of the instances associated with the API Key
Cloud information:
API Key name . . . . . . . us-east
Source LPAR PVM instance 47094614-322c-4c90-9006-f833b2676613
Target LPAR PVM instance 1786c35b-715a-475d-8f40-2c947b864c37
Comment:
Text . . . . . . . . . . .
Bottom
F1=Help F3=Exit F4=Prompt F12=Cancel
32
IBM Technology
Create Copy Services Environment (CSE) Data on Expert Labs
either Controller
o The CSE Data describes the non-storage elements of an environment.
o This data is also stored in CRG’s. The toolkit will create the CRG. It will always remain inactive when viewed in WRKCLU opt 9.
o CRTCSEDTA, CHGCSEDTA, DLTCSEDTA and DSPCSEDTA can be used to work with this information.
o Stored in the CRG so the data is synchronized between the controllers
o WRKCSEDTA displays all the data created.
CRG
Opt CSE Data type Text
Physical-Virtual Isolation
FlashCopy . . . . . . . . . *NO *YES, *NO
More...
F1=Help F3=Exit F4=Prompt F6=Query HMC F12=Cancel
34
IBM Technology
Memory flush method on either Controller Expert Labs
More...
F1=Help F3=Exit F4=Prompt F6=Query HMC F12=Cancel
35
IBM Technology
HMC LPAR inforomation on either Controller Expert Labs
o If the source or target LPARs participate in LPM or LUN switches, specify *SEARCH on the HMC Managed System Name parameter.
o If this is a PowerVS Cloud environment specify *CLOUDENV on the Primary HMC IP parameter and leave the rest blank.
o Note that you can prompt on the system, LPAR and Profile names using F6
o Do not specify BRMS integration (yet)
Create Full System FlashCopy CSE Data
More...
F1=Help F3=Exit F4=Prompt F6=Query HMC F12=Cancel 36
IBM Technology
Communications information on either Controller Expert Labs
o If it is available, enter:
o Target LPAR IO Card location code, line description and IP interfaces (include iSCSI interfaces)
o Use *LPAR- to have toolkit resolve type-model-serial-id on the target, i.e. *LPAR-C2-T1
o Routing details
37
IBM Technology
Backup device information on either Controller Expert Labs
o If the Flash Copy (target) LPAR is going to use a VTL via iSCSI it needs to know the new initiators for the target LPAR to use.
o Any existing source initiators are removed when the LPAR/VM UUID changes, i.e. when:
o Flash Copied
o Replicated and switched
o Restored on new hardware
o The IQN information is not saved (not even *SAVCFG)
o The new initiators for the target to use.
o Add the existing tape device description name and the serial number
Client IQN:
39
IBM Technology
Entering backup information on either Controller Expert Labs
40
Save the Copy Services Environment (CSE) Data on IBM Technology
Expert Labs
both Controllers
o The command SAVDDD will put all the DDD and CRG information into an IFS directly.
o SAVDDD *GEN
o Will save to /QIBM/QZRDHASM/QZ_DDDBKU_<timestamp>
o BRMS *LINK will save /QIBM/QZRDHASM
o Consider the following two control group exits prior to *LINK:
o RMVDIR DIR('/QIBM/QZRDHASM/QZ_DDDBKU_*') SUBTREE(*ALL)
o SAVDD
o In the even of a restore, create the directory and issue RSTDDD
o Add the restore command to the end of the recovery report. It should be done after re-establishing the cluster and DDD.
41
IBM Technology
Test the configuration on either Controller Expert Labs
CHKFSFLASH CSEDTA(FSFC9M9P1)
Acquired lock on LPAR CTCIHA9M.
Validating flashcopy consistency group 8
Validating flashcopy mappings
Consistency group 8 validated.
Successfully performed local verifications.
Performing Full System FlashCopy verifications on CTCIHA9M.
Released lock on LPAR CTCIHA9M.
Log file used : /QIBM/Qzrdhasm/fsfc/FSFC9M9P1/[Link].
CHKFSFLASH validation for FSFC9M9P1 completed successfully.
42
IBM Technology
Before you test the Flash Copy Expert Labs
o On the production LPAR, do QCTL and QSYSWRK have prestart or autostart jobs?
o DSPSBSD SBSD(QSYS/QCTL) options 3 and 10
o DSPSBSD SBSD(QSYS/QSYSWRK) options 3 and 10
o If YES then you’ll need to use the exit program QZRDIAFFEX
o Remove them at *QUIESCE and add them back at *POSTFLASH (include MONMSG CPF0000)
o RMVAJE SBSD(QSYS/QCTL) JOB(jobname)
o RMVPJE
o ADDAJE SBSD(QSYS/QCTL) JOB(jobname) JOBD(job description)
o ADDPJE
o Add them to the BRMS Recovery report (we’ll do this later when we edit QO1AUSRRCY)
o Update the CSE Data to call the exit program
o If this is a Cloud environment, ensure the target will IPL in manual mode the first time:
o CHGSYSVAL QIPLTYPE VALUE('1')
o Did you add RUNLPARCMD to the startup program?
o On the target LPAR, do any comm adapters (virtual and physical) have the same slot numbers (Cxx) as the comm adapters on the
source LPAR?
o If yes, move them to other slots
o This will prevent the OS from using them with the existing line descriptions. 43
IBM Technology
Test the configuration on either Controller Expert Labs
45
IBM Technology
Update the backup devices on either Controller Expert Labs
46
IBM Technology
Update the BRMS information on either Controller: Expert Labs
BRMS
o Using CHGCSEDTA, update:
o BRMS Integration = *YES
o Change the defaults if necessary
o Custom SYSBAS Timestamp is recommended if incremental backups are performed on the FlashCopy LPAR
o BRMS Advanced Feature is required to use Custom SYSBAS Timestamp
47
Update the configuration on either Controller: BRMS IBM Technology
Expert Labs
But … it is prompted on the local (controlling) LPAR, not where the command will run (on the source LPAR). Select a default
control group (like *BKUGRP) then change it to the desired control group after pressing enter.
o At 7.5 BRMS changed the functional usage to be more restrictive. As a result, QPGMR does not have the authority to run BRMS
commands. Therefore, one of the following must be done:
o On the source LPAR, issue SETUSRBRM USER(QPGMR) USAGE(*ADMIN)
o Change the ‘Target LPAR backup command’ to:
Text . . . . . . . . . . . .
49
IBM Technology
BRMS Changes on the Source LPAR Expert Labs
o Change the system policy to specify output for joblogs from the backups:
o WRKPCYBRM *SYS, Option 1, Page down
o If no output queue is specified the toolkit will create and use QUSRBRM/QZOUTQ
o Use ENDFSFLASH *TAGJOBLOG on the target in a job to bring back its joblog to the source LPAR
51
IBM Technology
BRMS Changes on the Source LPAR Expert Labs
Group . . . . . . . . . . . . . . . . : TESTEXIT
52
IBM Technology
BRMS Changes on the Source LPAR - Subsystems Expert Labs
Subsystems to Process
Use . . . . . . . . . : *BKU
Control group . . . . : SAVSYSALL
53
IBM Technology
BRMS Changes on the Source LPAR - Attributes Expert Labs
54
IBM Technology
Modify BRMS recovery report user-added steps Expert Labs
o Insert custom message into the recovery reports to change system settings to start IP etc.
o STRSEU SRCFILE(QUSRBRM/QO1AUSRRCY) SRCMBR(STEP014)
o Insert the following text:
If restoring configuration settings from a FSFC backup, run the following commands:
CHGSYSVAL SYSVAL(QSTRUPPGM) VALUE('QSTRUP QSYS ')
CHGLINETH LIND(ETHLINE) ONLINE(*YES)
CHGTCPIFC INTNETADR('[Link]') AUTOSTART(*YES)
CHGIPLA STRTCP(*YES) skip this if also using FSR
Check the job scheduler entries
56
IBM Technology
Test the configuration on either Controller Expert Labs
CHKFSFLASH CSEDTA(FSFC9M9P1)
Acquired lock on LPAR CTCIHA9M.
Validating flashcopy consistency group 8
Validating flashcopy mappings
Consistency group 8 validated.
Successfully performed local verifications.
Performing Full System FlashCopy verifications on CTCIHA9M.
Released lock on LPAR CTCIHA9M.
Log file used : /QIBM/Qzrdhasm/fsfc/FSFC9M9P1/[Link].
CHKFSFLASH validation for FSFC9M9P1 completed successfully.
57
IBM Technology
Test the configuration on either Controller Expert Labs
58
IBM Technology
Schedule Log Cleanup on all Controlling LPARs Expert Labs
Additional Parameters
59
IBM Technology
How to reset after failure Expert Labs
o Failures can happen, you need to know how to set things back to normal.
o To abandon the backups:
o On the target: QZRDHASM/ENDFSFLASH *FAILBKU
o On the source: QZRDHASM/ENDFSFLASH *RSTFCNUSG
o PowerVS Volumes-clones can be displayed, canceled and deleted with these commands:
o DSPCLDCLNL
o CNLCLDCLN
o DLTCLDCLN
o WRKCLDVOL
o The toolkit webpage contains additional recovery steps
60
IBM Technology
Where can I find the logs for troubleshooting? Expert Labs
o Support for the FSFC Toolkit is to customers who meet the following criteria:
o Current System i Software Maintenance Agreement
o Current FSFC Toolkit Software Maintenance Agreement
o For non-urgent issues or questions contact the consultant who installed the Toolkit. To reach a Toolkit developer for non-urgent issues
and questions, or to report a bug, send an email to iessspt@[Link]
62
IBM Technology
Expert Labs
63