135
xe pool-emergency-transition-to-master
xe pool-recover-slaves
2. If the commands succeed, restart the VMs.
To restore a pool with all hosts failed
1. Run the command:
xe pool-restore-database file-name=<backup>
Warning:
This command will only succeed if the target machine has an appropriate number of appropriately named
NICs.
2. If the target machine has a different view of the storage (for example, a block-mirror with a different IP
address) than the original machine, modify the storage configuration using the pbd-destroy command
and then the pbd-create command to recreate storage configurations. See the section called “PBD
commands” for documentation of these commands.
3. If you have created a new storage configuration, use pbd-plug or Storage > Repair Storage
Repository menu item in XenCenter to use the new configuration.
4. Restart all VMs.
To restore a VM when VM storage is not available
1. Run the command:
xe vm-import filename=<backup> --metadata
2. If the metadata import fails, run the command:
xe vm-import filename=<backup> --metadata --force
This command will attempt to restore the VM metadata on a 'best effort' basis.
3. Restart all VMs.