ZFS partition empty on Linux pve

fulco

New Member
Mar 6, 2025
2
1
1
Hello

I'm with Proxmox VE 8.3.4
My ZFS storage was working fine, but I'd liked to reduce it because it took all the disks space, and I wanted a new partition
I copied files/vms, destroyed it, then created a new one with the same name
Now the new ZFS storage works fine (VMs run), but in cli on the server, the mounted partition is empty
I tried to destroy it again and create it with a different name, but there's the same issue
On this forum, I read that it's working for someone who had desactivated the automount at boot, and then mount it "manually" (by cron). But it doesn't work for me

root@chatnoir:~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
ZFS1 4.36T 22.0G 4.34T - - 0% 0% 1.00x ONLINE -
root@chatnoir:~# zfs list -r -t filesystem
NAME USED AVAIL REFER MOUNTPOINT
ZFS1 20.2G 2.48T 170K /ZFS1
root@chatnoir:~# zfs get mountpoint ZFS1
NAME PROPERTY VALUE SOURCE
ZFS1 mountpoint /ZFS1 default
root@chatnoir:~# zfs get canmount ZFS1
NAME PROPERTY VALUE SOURCE
ZFS1 canmount on default
root@chatnoir:~# zfs get overlay ZFS1
NAME PROPERTY VALUE SOURCE
ZFS1 overlay on default
root@chatnoir:~# zpool list -v
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
ZFS1 4.36T 22.0G 4.34T - - 0% 0% 1.00x ONLINE -
raidz2-0 4.36T 22.0G 4.34T - - 0% 0.49% - ONLINE
ata-VK000960GXAWL_21082D4A3B91 894G - - - - - - - ONLINE
ata-VK000960GXAWL_21162ED773DC 894G - - - - - - - ONLINE
ata-VK000960GXAWL_21162ED77446 894G - - - - - - - ONLINE
ata-VK000960GXAWL_21082D4A9291 894G - - - - - - - ONLINE
ata-VK000960GXAWL_21082D4A9249 894G - - - - - - - ONLINE

root@chatnoir:~# df -h /ZFS1
ZFS1 2.5T 256K 2.5T 1% /ZFS1
root@chatnoir:~# mount |grep ZFS
ZFS1 on /ZFS1 type zfs (rw,relatime,xattr,noacl,casesensitive)
root@chatnoir:~# ls /ZFS1


Thank you in advance.
Patrick
 
  • Like
Reactions: alex3025
Hi
As I didn't found any solution, I've reintalled my server pve
But I get the same issue :(
I'm quite sure that ls+df was working before on the zfs partition on my server pve
 
Same problem here. All ZFS datastores work properly but all!!! their mounting points are empty and also show incorrect sizes and free bytes
Have also no idea why. I think this is a BUG in Proxmox VE ?
 
A `zfs list` would be interesting to know more. Please paste it in a code block (tools of the editor) to be readable.
 
Code:
root@pve:~# zfs list
NAME                                USED  AVAIL  REFER  MOUNTPOINT
M2SATA-2TB-ZFS                     60.9G  1.70T   192K  /M2SATA-2TB-ZFS
M2SATA-2TB-ZFS/vm-106-disk-0       60.9G  1.72T  40.1G  -
NVME-2TB-ZFS                       1.16T   606G   192K  /NVME-2TB-ZFS
NVME-2TB-ZFS/vm-105-disk-0          122G   633G  94.1G  -
NVME-2TB-ZFS/vm-108-disk-0          157G   611G   152G  -
NVME-2TB-ZFS/vm-112-disk-0         59.3G   642G  20.5G  -
NVME-2TB-ZFS/vm-112-disk-1         4.76G   610G   701M  -
NVME-2TB-ZFS/vm-119-disk-0         65.0G   632G  38.6G  -
NVME-2TB-ZFS/vm-121-disk-0          784G  1005G   378G  -
ST4000-Transfer-ZFS                1.56T  1.95T    96K  /ST4000-Transfer-ZFS
ST4000-Transfer-ZFS/vm-103-disk-0  1.11T  2.49T   563G  -
ST4000-Transfer-ZFS/vm-106-disk-0  60.9G  1.97T  37.3G  -
ST4000-Transfer-ZFS/vm-121-disk-0   406G  2.35T    56K  -
WD-RED-4TB-ZFS                     3.42T  92.5G    96K  /WD-RED-4TB-ZFS
WD-RED-4TB-ZFS/vm-111-disk-0       2.58T   451G  2.23T  -
WD-RED-4TB-ZFS/vm-113-disk-0        508G   448G   153G  -
WD-RED-4TB-ZFS/vm-115-disk-0        355G   268G   180G  -
 
All those sub-datasets are disk images for VMs right? Those are volume datasets (aka zvol). They are block devices and show up in /dev/zvol/{pool}/... as they are not regular files.

So from what I can tell, the output of zfs list looks as expected.
 
  • Like
Reactions: Johannes S