I keep my LXC container and QM VM disks on a ZFS filesystem. I don't know much about how PVE manages the ZFS snapshots associated with a given container/vm, but I do see in my filesystem that it does have various snapshots which it creates for migrations etc:
I'm looking at using a script I found for managing automated zfs snapshots here: https://github.com/zfsonlinux/zfs-auto-snapshot, which takes daily, weekly, and monthly snapshots automatically. However I do not know if doing so would mess up anything with Proxmox. The scripts snapshots would be kind of mixed in with Proxmox's own snapshots of the volumes, and I don't know if that would throw anything off when Proxmox is trying to manage its own generated snapshots.
Is this a common thing to do? Can I freely create snapshots at the ZFS level without interfering with Proxmox's operation? Or is this something I should avoid?
Code:
root@node1:~# zfs list -r -t snapshot tank/proxmox/lxc-containers |head
NAME USED AVAIL REFER MOUNTPOINT
tank/proxmox/lxc-containers/basevol-130-disk-0@__base__ 0B - 1.10G -
tank/proxmox/lxc-containers/basevol-130-disk-0@__replicate_130-1_1645779656__ 0B - 1.10G -
tank/proxmox/lxc-containers/basevol-130-disk-0@__replicate_130-0_1645781475__ 0B - 1.10G -
tank/proxmox/lxc-containers/basevol-131-disk-0@__base__ 0B - 1.11G -
tank/proxmox/lxc-containers/basevol-131-disk-0@__replicate_131-1_1645779662__ 0B - 1.11G -
tank/proxmox/lxc-containers/basevol-131-disk-0@__replicate_131-2_1645781482__ 0B - 1.11G -
tank/proxmox/lxc-containers/basevol-133-disk-0@__base__ 0B - 1.11G -
tank/proxmox/lxc-containers/basevol-133-disk-0@__replicate_133-1_1645779670__ 0B - 1.11G -
tank/proxmox/lxc-containers/basevol-133-disk-0@__replicate_133-0_1645781490__ 0B - 1.11G -
root@node1:~# zfs list -r -t snapshot tank/proxmox/vm-disks |head
NAME USED AVAIL REFER MOUNTPOINT
tank/proxmox/vm-disks/vm-117-disk-0@__replicate_117-0_1645779637__ 0B - 129G -
tank/proxmox/vm-disks/vm-117-disk-0@__replicate_117-1_1645781451__ 0B - 129G -
tank/proxmox/vm-disks/vm-137-disk-0@__replicate_137-0_1645779682__ 0B - 54.2G -
tank/proxmox/vm-disks/vm-137-disk-0@__replicate_137-1_1645781504__ 0B - 54.2G -
tank/proxmox/vm-disks/vm-154-disk-0@__replicate_154-1_1645779847__ 0B - 42.9G -
tank/proxmox/vm-disks/vm-154-disk-0@__replicate_154-0_1645781402__ 0B - 42.9G -
I'm looking at using a script I found for managing automated zfs snapshots here: https://github.com/zfsonlinux/zfs-auto-snapshot, which takes daily, weekly, and monthly snapshots automatically. However I do not know if doing so would mess up anything with Proxmox. The scripts snapshots would be kind of mixed in with Proxmox's own snapshots of the volumes, and I don't know if that would throw anything off when Proxmox is trying to manage its own generated snapshots.
Is this a common thing to do? Can I freely create snapshots at the ZFS level without interfering with Proxmox's operation? Or is this something I should avoid?