Hello
I've been having a problem with a thin-provisioned filesystem on ZFS. Right now I'm not really sure if its a problem with proxmox or the guest. Right now my setup is:
ZFS:
Guest:
- Running Debian 8.10
- Over provisioned disk (10035G, shows as 9.8TiB)
- Disk is mounted as scsi-virtio with discard option marked on proxmox.
- Free space on disk:
- Output of fstrim
You can see there is a pretty huge difference between free space on the guest and what ZFS is showing. I have a small reservation on rpool/ROOT/pve-1 to make sure it doesn't completely fills root.
Is there any way to correctly reclaim the free space on the guest?
I've been having a problem with a thin-provisioned filesystem on ZFS. Right now I'm not really sure if its a problem with proxmox or the guest. Right now my setup is:
ZFS:
Code:
NAME USED AVAIL REFER MOUNTPOINT
rpool 10.2T 47.1G 140K /rpool
rpool/ROOT 45.0G 47.1G 140K /rpool/ROOT
rpool/ROOT/pve-1 35.0G 57.0G 35.0G /
rpool/data 10.1T 47.1G 140K /rpool/data
rpool/data/vm-100-disk-2 10.1T 47.1G 10.1T -
rpool/swap 8.50G 53.4G 2.19G -
Guest:
- Running Debian 8.10
- Over provisioned disk (10035G, shows as 9.8TiB)
- Disk is mounted as scsi-virtio with discard option marked on proxmox.
- Free space on disk:
Code:
# df -h /u
S.ficheros Tamaño Usados Disp Uso% Montado en
/dev/sda 9,8T 6,9T 2,4T 75% /u
Code:
# fstrim -v /u
/u: 27,6 GiB (29595009024 bytes) trimmed
You can see there is a pretty huge difference between free space on the guest and what ZFS is showing. I have a small reservation on rpool/ROOT/pve-1 to make sure it doesn't completely fills root.
Is there any way to correctly reclaim the free space on the guest?