Citrix Systems 6 User Manual

Page of 207
122
On the primary site, enable database replication:
xe sr-database-replication uuid=
<sr=uuid>
                   
In the event of disaster, on the secondary site, connect to the SR:(note device-config has the same fields as sr-
probe
).
xe drtask-create type=lvmoiscsi \
   device-config:target=
<target ip address>
 \         
   device-config:targetIQN=
<target-iqn>
 \
   device-config:SCSIid=
<scsi-id>
 \
   sr-whitelist=
<sr-uuid>
                 
                 
Look for database VDIs on the SR:
xe vdi-list sr-uuid=
<sr-uuid>
 type=Metadata
Query a database VDI for VMs present:
xe vm-list database:vdi-uuid=
<vdi-uuid>
Recover a VM:
xe vm-recover uuid=
<vm-uuid>
 database:vdi-uuid=
<vdi-uuid>
Destroy the DR task; any SRs introduced by the DR task and not required by VMs are destroyed:
xe drtask-destroy uuid=
<drtask-uuid>
Event Commands
Commands for working with events.
Event Classes
Event classes are listed in the following table:
Class name
Description
pool
A pool of physical hosts
vm
A Virtual Machine
host
A physical host
network
A virtual network
vif
A virtual network interface
pif
A physical network interface (separate VLANs are represented as several PIFs)
sr
A storage repository
vdi
A virtual disk image
vbd
A virtual block device