1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Migrating VM on shared disk when primary server down

Discussion in 'Proxmox VE: Installation and configuration' started by timmy, May 2, 2012.

  1. timmy

    timmy New Member

    Joined:
    Dec 15, 2010
    Messages:
    25
    Likes Received:
    0
    Hi,

    I have a 2 node cluster. DRDB replicating a VM between 2 machines.

    When bother servers are up, I can live migrate the VM no problem.

    When the server the VM is on goes down, I want to be able to bring up the server on the other running server. How can I do this?

    Thanks
    Tim
     
  2. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    10,828
    Likes Received:
    35
  3. timmy

    timmy New Member

    Joined:
    Dec 15, 2010
    Messages:
    25
    Likes Received:
    0
    Thanks, Im working on getting Fencing setup for our servers but may not be possible for all.

    Are there any options for manually failing over a server if you dont have the technology for fencing?

    It sounds simple in my head, but I appreciate things are usually not as simple as they seem.

    Thanks
     
  4. e100

    e100 Active Member
    Proxmox VE Subscriber

    Joined:
    Nov 6, 2010
    Messages:
    1,154
    Likes Received:
    8
    With only two nodes you loose quorum and can not manage anything. There are workarounds mentioned in many threads.

    Once you have that fixed I *think* you can do offline migration in the gui.
    You can also move the vm config file to the proper folder in /etc/pve/ so you can start it on the other node.
     
  5. timmy

    timmy New Member

    Joined:
    Dec 15, 2010
    Messages:
    25
    Likes Received:
    0
    Hi Thanks,

    I dont have quorum issues and I have done the howto on setting the cluster to only expect 1 vote (as described http://pve.proxmox.com/wiki/Two-Node_High_Availability_Cluster).

    I can access the cluster but just cant offline transfer that machine, which for my purpose makes it no use having replicated.

    I have worked out a work around via your suggestion but it would be nice to be able to do this in the GUI.. possibly it could warn "The host your moving from appears to be offline but could still be running, are you sure you want to migrate this VM" or similar. Obviously this would only be applicable "offline" and only to a host which shared the storage for that server.

    I haven't tried this yet but will do so (inc shutting a host down)

    (moved VM 201 from host11 to host12 .. where both shared the VMs disk via DRBD)
    mv /etc/pve/nodes/host11/qemu-server/201.conf /etc/pve/nodes/host12/qemu-server/201.conf

    BTW, Im a big fan and v2 is looking great. I plan to get some form of subscription to support the project
     

Share This Page