Details
Description
xe pool-restore-database do not restore the server state compeletely
After installing Xenserver with one VM, creating snapshot for VM, setup autostart for server and VM to "enabled" and setup network configurations and bonding I run
xe pool-dump-database file-name=pool.dump service xapi stop BackUpXenPath "/etc/xensource" BackUpXenPath "/var/lib/xcp"
After restoring the configuration by
rm -rf /var/xapi/networkd.db RestoreXenPath "/etc/xensource" RestoreXenPath "/var/lib/xcp" xe-reset-networking --master=$IP --device=$NIC --mode=static --ip=$IP \ --netmask=$NETMASK --gateway=$GW --dns=$DNS -- the host reboots -- xe pool-restore-database file-name=pool.dump --force
BackupXenPath and RestoreXenPath is shell functions to save/restore files from the folder
I found some problem:
- VM lost all its disks though the disks are still on the storage. I have to restore VM from snapshot to make it working and remove orphan disk images.
- Sometimes network bonding do not restore or existing bonds remove
- Autostart for the host and for VM becomes 'disabled' and I have to enable it by hands.
I use the same save/restore sequence in XenServer 6.5 without any problem