sr-whitelistlists SR UUIDs, drtask-createwill only introduce and connect to an SR which has one of the whitelisted UUIDs

drtask-destroy

drtask-destroy uuid=<dr-task-uuid>

Destroys a disaster recovery task and forgets the introduced SR.

vm-assert-can-be-recovered

vm-assert-can-be-recovered uuid=<vm-uuid>database:vdi-uuid=<vdi-uuid>Tests whether storage is available to recover this VM.

appliance-assert-can-be-recovered

appliance-assert-can-be-recovered uuid=<appliance-uuid>database:vdi-uuid=<vdi-uuid>Checks whether the storage (containing the appliance's/vAPP disk) is visible.

appliance-recover

appliance-recoveruuid=<appliance-uuid>database:vdi-uuid=<vdi-uuid>[force=<truefalse>] Recover an appliance/vAPP from the database contained in the supplied VDI.

vm-recover

vm-recoveruuid=<vm-uuid>database:vdi-uuid=<vdi-uuid>[force=<truefalse>] Recovers a VM from the database contained in the supplied VDI.

sr-enable-database-replication

sr-enable-database-replication uuid=<sr_uuid>

Enables xapi database replication to the specified (shared) SR. For example:

xe sr-enable-database-replication uuid=<sr-uuid>

sr-disable-database-replication

sr-disable-database-replication uuid=<sr_uuid>

Disables xapi database replication to the specified SR. For example:

xe sr-enable-database-replication uuid=<sr-uuid>

Example Usage

The example below shows the DR CLI commands in context:

121

Page 139
Image 139
Citrix Systems 6 Drtask-destroy, Vm-assert-can-be-recovered, Vm-recover, Sr-enable-database-replication, Example Usage