Can't take snapshots on GUI on ZFS

Yanwoo

Active Member
Oct 27, 2017
21
0
41
65
My option to take a snapshot of any of my containers in the GUI is greyed out. They are all hosted on a local ZFS drive (but not the proxmox boot drive) which I believe means they should be suitable for snapshots?

Incidentally, snapshots run as scheduled backups fine.

Is there something I've configured wrong? Or have I misunderstood something?

I am running proxmox 5.1.
 
Hi,

do you use the zfspool plugin for the guest?
 
Hi,

do you use the zfspool plugin for the guest?

Hi!

I'm not sure - what would that involve? Apart from creating the pool and then adding it to proxmox I don't recall doing anything else.

Is that what's listed on the ZFS tips and tricks page (which I've just found):

Code:
zfs create -o mountpoint=/mnt/vztmp rpool/vztmp
zfs set acltype=posixacl rpool/vztmp
 
Do you create an new zfs pool so you have to add it as a new storage in the datacenter.
What storage type do you use?
 
So I created the zpool at the CLI with the command:
zpool create -f -o ashift=12 zstorage /dev/sda


and then set compression:
zfs set compression=lz4 zstorage

...and then I added the 'zstorage' pool to the datacenter via the GUI.
 
Looking in the GUI, the only difference I see between the local storage, and this one that I added, is that the local has 'thin provision' enabled? Is that necessary for snapshots?
 
please post the VM/container config as well!
 
Here's a container I use for plex that I can't snapshot in the GUI:

Code:
arch: amd64
cores: 4
hostname: plex
memory: 12448
mp0: /mnt/pve/remote-stagnum-media/private,mp=/media
mp1: /var/lib/plexmediaserver/logs,mp=/var/lib/plexmediaserver/Library/Application Support/Plex/Logs
net0: name=eth0,bridge=vmbr0,hwaddr=0e:87:a1:e9:01:1f,ip=dhcp,tag=20,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-zfs-storage:subvol-230-disk-1,size=40G
startup: order=3
swap: 512
unprivileged: 1

I've just noticed that I can take snapshots with a VM that's on that same storage, so I guess that points towards container configuration vs the storage config?
 
...and now I've taken a snapshot on that VM, the snapshot button is now active (and working) for one of the containers (I can't be sure it wasn't before but I thought I checked them all several times) - interestingly, this is the only one without mountpoints (the sole VM also doesn't have mount points either).

Are mount points the issue?