Knowledge Base

Bitte , um Beiträge und Themen zu erstellen.

Mountpoints in LXC binden, Snapshot möglich (bind mount prevent snapshot)

https://forum.proxmox.com/threads/why-do-bind-mounts-prevent-snapshots.85495/

A work-around is to not use bind mount points but add lxc.mount.entry: /directory/on/host directory/in/container none bind,rw 0 0 to the container configuration file. Then you can do snapshots and the mounted directory is exempt and ignored.
Container config can be found under: /etc/pve/lxc/LXC-ID.conf

lxc.mount.entry: /directory/on/host directory/in/container none bind,rw 0 0

Example:
lxc.mount.entry: /mnt/pve/NFS-ProxShare/100-NFS-nextcloud_DATA mnt/nextcloud_DATA none bind 0 0