VM Migration - skip local disk?

Discussion in 'Proxmox VE: Installation and configuration' started by Jospeh Huber, Feb 14, 2019.

  1. Jospeh Huber

    Jospeh Huber Member

    Joined:
    Apr 18, 2016
    Messages:
    76
    Likes Received:
    3
    Hi,

    we want to setup a qemu vm with 2 disks on Proxmox 5.
    Disk 1 CEPH
    Disk 2 local-lvm (big disk with temporary data)
    We want to speed up the migration, the temporary data can be lost after the migration.

    Is there a possibilty in Proxmox to skip the local disk 2 during migration?

    I thought in the advanced properties "no backup" or "skip replication" does the trick... but the disk 2 is always copied during the migration.

    I understand that the disk must exists on the target host and must be created once manually on the target host.

    A possible solution would be NFS but we do not want to use a network filesystem for the temporary data...
     
  2. dlimbeck

    dlimbeck Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2018
    Messages:
    137
    Likes Received:
    9
    You can create a directory storage and mark it shared and use that for your 2nd disk. But you'll have to make sure it exists, has the same size and everything on all nodes you want to migrate between. And if you live migrate make sure your VM handles the changing data well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Jospeh Huber

    Jospeh Huber Member

    Joined:
    Apr 18, 2016
    Messages:
    76
    Likes Received:
    3
    Thanks for your answer.

    Just to understand it:
    On the shared directory storage I have to put the disk image (on all target nodes). During migration all Disks on shared storages are skipped.

    Right?
     
  4. Jospeh Huber

    Jospeh Huber Member

    Joined:
    Apr 18, 2016
    Messages:
    76
    Likes Received:
    3
  5. dlimbeck

    dlimbeck Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2018
    Messages:
    137
    Likes Received:
    9
    It's possible to set it in the GUI. Which version are you running?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Jospeh Huber

    Jospeh Huber Member

    Joined:
    Apr 18, 2016
    Messages:
    76
    Likes Received:
    3
    Version 5.3.8.
    I tried it on the local directory storage, I can select "shared" but OK is not active.
    Because I have no free space at the moment and I have learned it is not possible to reduce my lvm-thin storage :-((
    So the only way for me is to add some physical disks.
     
  7. dlimbeck

    dlimbeck Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2018
    Messages:
    137
    Likes Received:
    9
    It should work, there must be something else missing. But you should not mark 'local' as shared but rather create a different directory storage for your disks. If you migrate with an ISO that's on local (marked 'shared') and not available on the other node it will be problematic for example.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Jospeh Huber

    Jospeh Huber Member

    Joined:
    Apr 18, 2016
    Messages:
    76
    Likes Received:
    3
    OK, I will test it with dedicated additional physical disks ...
     
  9. Jospeh Huber

    Jospeh Huber Member

    Joined:
    Apr 18, 2016
    Messages:
    76
    Likes Received:
    3
    Hi,

    I have tested and verified it with additional phyiscal disks for the transient storage.
    The solution with a local directory storage marked as shared works for me.
    The only thing to keep in mind, you have to create the disk for the transient storage once manually for all migration targets.
    Since I have used qcow2 files on ext4, it was a simple "scp diskfile targetnode:diskfile"...
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice