Migration of VM with HD on NFS share does copy of HD data

markse

New Member
Aug 30, 2024
3
1
3
I have the following in storage.cfg:

Code:
nfs: iso-templates
        path /PVE-NFS
        server 10.0.1.19
        export /data/PVE-NFS
        options vers=3,soft
        content iso,vztmpl

dir: PVE-NFS
    path /PVE-NFS
    content backup,images,iso,rootdir,vztmpl,snippets
    is_mountpoint 1
    nodes gen8-pve,prodesk-pve

When I migrate a VM with HD in the NFS share, instead of disconnecting, moving the VM and reconnecting, the HD is copied. This takes much longer. As it's the same data, just accessed from a different host node, why do the copy? Shouldn't the target host confirm access to the file is okay, then the VM config moved to it?
 
You have the same "path /PVE-NFS" in two stanzas. I have never seen such a configuration. It feels wrong - and I would not be surprised if if behaves wrong.

The second part is used for those VM-images, but its type is "dir:".

"dir" by definition is not shared, please see the table here: https://pve.proxmox.com/pve-docs/chapter-pvesm.html#_storage_types
 
Thanks for the table. I updated the storage.cfg and everything automagically happened on the other node in the cluster. The NFS storage didn't show up until the dir entry was added. If I have just the NFS block like this, it doesn't show up.

Code:
nfs: iso-templates
        path /PVE-NFS
        server 10.0.1.19
        export /data/PVE-NFS
        options vers=3,soft
        # content iso,vztmpl
        content backup,images,iso,rootdir,vztmpl,snippets
        nodes gen8-pve,prodesk-pve
 
it doesn't show up.
No idea, not with digging deeper and debugging NFS in itself.

But: path /PVE-NFS? My own storages got mounted at "path /mnt/pve/sharename", all of them. Automatically, by creating this connection via the WebGui.

So my recommendation is: remove it completely, reboot everything to get rid of still active artefacts and re-establish the connection from the official Gui. Perhaps you get some helpful messages this way. Unfortunaley https://pve.proxmox.com/wiki/Storage:_NFS is not very extensive.

Sorry, no magic wand available...
 
Thanks for the reply! That was the fix :D It needs to use /mnt/pve/ in the path. Tested with:

Code:
nfs: testing
        path /mnt/pve/testing
        server 10.0.1.19
        export /data/testing
        options vers=3,soft
        content backup,images,iso,rootdir,vztmpl,snippets
        nodes gen8-pve,prodesk-pve

Now with all HD on NFS, migration works super fast! :D :D :D
 
Last edited:
  • Like
Reactions: UdoB