HA with PVE cluster and shared storage

galphanet

Active Member
Jun 18, 2009
33
0
26
Hello,
I've a PVE cluster of two servers with DRBD and I want to have High Availability between them.

For example I want to pull out the power cord of one server and virtual machines that were running on it starts automatically on the other node.
Is it possible ?

If not, how to start manually a virtual machine that were on the failing node on the other node ?
Now, if I disconnect the slave, the master try to contact the slave to start the VM and as it doesn't respond, it's not possible to start the VM nor to migrate it on the master...

And another question : how to convert a debian running physical server to a KVM VM ?
The wiki explain only for windows..

Thanks you for you help and sorry for my mistakes...
 
Hello,
I've a PVE cluster of two servers with DRBD and I want to have High Availability between them.

For example I want to pull out the power cord of one server and virtual machines that were running on it starts automatically on the other node.
Is it possible ?
Hmm perhaps. HA came with pve 2.0... before you must do your own ha.
If not, how to start manually a virtual machine that were on the failing node on the other node ?
Now, if I disconnect the slave, the master try to contact the slave to start the VM and as it doesn't respond, it's not possible to start the VM nor to migrate it on the master...
you must copy (before your node died) your configs of the VMs to the other node ( e.g. scp /etc/qemu-server/*.conf node2:/backup/ ). If a node died, mv the configs from /backup to /etc/qemu-server/ and start the VM again.
I copy my configs once a day with cron.
And another question : how to convert a debian running physical server to a KVM VM ?
The wiki explain only for windows..
Boot a live-cd like grml, and copy the whole disk with dd (on an external disk, or via network).
On the proxmox-node you can
a) copy the dd-image (e.g. VM 133) to /var/lib/vz/images/vm-133-disk-1.raw - go at the gui and add the existing harddisk (local storage)
b) create a harddisk on a shared storage which is a little bit bigger than your original harddisk.
copy the content: dd if=/mnt/debian.dd of=/dev/shared-storage/vm-133-disk-1 bs=1024k

change the boot order, and looks what happens.

Udo
 
Hello,

Thanks for all your answers, now I have one more questions :
- Will it be possible to migrate from PVE 1.X to 2 without formatting ?

The idea to sync config file is good, I'll try this solution.
 
we plan to offer the upgrade as smooth as possible, also we will have a public beta to collect experiences.