run_fop.py
This script is used after JetStream DR software has been installed. It works in conjunction with the failover_plan_auto_gen.yml file generated by cpt.py to automatically failover VMs to the recovery site. It does the following:
- Connects recovery storage (object store) to the recovery site.
- Adds DRVA(s) and configures the replication log at the recovery site (for CFO, the DRVAs and replication logs already exist).
- Scans and imports protected domains from the object storage site.
- Fails over the specified number of CFO domains concurrently; any resulting batches are failed over in order of assigned priority level. Then follows up by failing over non-CFO domains in batches according to assigned priority level.
Syntax
run_FOP.py -f <edited FOP> [-n <concurrent_standard_failover_domains>][-cn <concurrent_CFO_failover_domains>]
[-d <delay_between_CFO_domains_failover>]--vc-user <vc_user> --vc-pwd <vc_passwd> -o <output-dir>
Notes
-f: Denotes the failover protection template (failover_plan_auto_gen.yml) that has been edited by the user with site details.
- This parameter is required.
-n: Denotes the maximum number of non-CFO domains that can be failed over concurrently.
- Increasing this number allows more tasks to run concurrently reducing the amount of time required to fail over.
- This value is optional and will default to 1 if no value is specified. (NOTE: Increasing this value may stretch recovery site primary storage.)
-cn: Denotes the maximum number of CFO domains that can be failed over concurrently.
- Increasing this number allows more tasks to run concurrently reducing the amount of time required to fail over.
- This value is optional and will default to 1 if no value is specified. (NOTE: Increasing this value may stretch recovery site primary storage.)
-d: Denotes the delay in minutes before starting after the previous batch of CFO domain failover tasks has been submitted.
- The default value is 0.
--vc-user: Denotes the vCenter Server username.
--vc-pwd: Denotes the vCenter Server password.
- This is an optional command line input (to be used with scripts).
- If not included, the user will be prompted to enter the password during execution.
-o: Denotes the directory where the output files will be saved.
- This parameter is optional.
Example
- Executes an FOP to failover all protected domains to the recovery site.
- No ānā value is specified, therefore; protected domains will be failed over one at a time.
run_FOP.py -f failover_plan_auto_gen.yml -n 3 -cn 1 --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp