Snapshots: how to exclude external mounts?

Andre_x

Member
Feb 15, 2021
33
3
13
41
I have a VM with a NFS share mounted that will be about a couple of TB, how can I exclude it from snapshots?
If I will create a Proxmox HA (I still haven't had a look at it, so I don't know how it works), will it transfer the NFS share mounted with all the data?
Thanks!
 
if you mount the NFS share inside the VM, PVE doesn't "see" it - anything happening on the PVE level does not touch that mount.
 
if you mount the NFS share inside the VM, PVE doesn't "see" it - anything happening on the PVE level does not touch that mount.
Sorry, but I'm not following you.
I've mounted the NFS inside the VM, I've created a snapshot, added 4GB, created another snapshot and this last one is 4GB bigger.
Do you mean that I need to mount the NFS from Proxmox and not inside the VM? How do I do that?
 
please explain in more detail what you mean about "added 4GB" ;) I think you are misunderstanding something..
 
please explain in more detail what you mean about "added 4GB" ;) I think you are misunderstanding something..
It could definitely be!
I've created a snapshot and I saw that it occupied about 600MB
I've copied 4 GB to the NFS mount
I've created a new snapshot and while it was taking it I saw that it occupied about 4GB.
Thanks for your patience!
 
are you talking about a snapshot with RAM and the vmstate volume? because that would explain it.. otherwise the only explanations I could come up with are that the VM is not mounting, but exporting the NFS share, or you are not copying to the NFS mount but to the virtual disk of the VM..
 
are you talking about a snapshot with RAM and the vmstate volume? because that would explain it.. otherwise the only explanations I could come up with are that the VM is not mounting, but exporting the NFS share, or you are not copying to the NFS mount but to the virtual disk of the VM..
I'm talking about the snapshot that I can take from the web UI.
I've tried to do it excluding RAM (I can't see how to exclude the vmstate volume) and it didn't show any size while taking it.
Is this the right way to exclude external mounts?

Edit: So, in this way it just split the disc and start to write into a new files like the snapshots of Hyper-V?
 
Last edited:
I've tried to do it excluding RAM (I can't see how to exclude the vmstate volume) and it didn't show any size while taking it.

the vmstate volume contains the RAM of the VM (+ some other state) at the time of the snapshot - the size you see for this depends on the configured RAM of the VM. the volumes managed by PVE are snapshotted on the storage level. together, these allow rolling back to the *running state*.

whether you include RAM or not has nothing to do with the fact that mounts done in the VM are not relevant for storage level snapshots in PVE. if you want to include the RAM state, then you need more space - it doesn't matter if the VM does any mounts of network shares or not..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!