After a reboot, I noticed several of my LXC containers wouldn't start, after digging in, I noticed that my single ZFS pool wasn't loading. After a lot of forum searching, I've tried to resolve it by adding a few flags (is_mountpoint=1 and mkdir=0 on the items within the mounted zfs pool) in my storage.cfg file, but that's still not fixing the overall issues. It appears that ZFS won't successfully mount due to folders that aren't empty in the mount path. I've had this zfs pool working fine for months... many reboots. No clue what it's so broke now. Here's some Info I hope helps, but please feel free to ask for any other details. I'm really struggling and would appreciate any help.
Code:
root@constellation:/storage/share# journalctl -b | grep zfs
Oct 11 00:22:29 constellation systemd-modules-load[452]: Inserted module 'zfs'
Oct 11 00:22:32 constellation zfs[1167]: cannot mount '/storage/share/iso': directory is not empty
Oct 11 00:22:32 constellation zfs[1167]: cannot mount '/storage/share/downloads': directory is not empty
Oct 11 00:22:32 constellation kernel: zfs[1173]: segfault at 0 ip 00007f78251a0694 sp 00007f78248cb420 error 4 in libc-2.28.so[7f7825146000+148000]
Oct 11 00:22:32 constellation kernel: zfs[1197]: segfault at 0 ip 00007f782527c01c sp 00007f781fff7478 error 4 in libc-2.28.so[7f7825146000+148000]
Oct 11 00:22:32 constellation systemd[1]: zfs-mount.service: Main process exited, code=killed, status=11/SEGV
Oct 11 00:22:32 constellation systemd[1]: zfs-mount.service: Failed with result 'signal'.
Oct 11 00:24:02 constellation CRON[2110]: (root) CMD ([ $(date +%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/scrub ] && /usr/lib/zfs-linux/scrub)
Oct 11 00:24:23 constellation zfs[3694]: cannot mount '/storage/share/iso': directory is not empty
Oct 11 00:24:23 constellation zfs[3694]: cannot mount '/storage/share/downloads': directory is not empty
Oct 11 00:24:23 constellation zfs[3694]: free(): double free detected in tcache 2
Oct 11 00:24:23 constellation systemd[1]: zfs-mount.service: Main process exited, code=killed, status=6/ABRT
Oct 11 00:24:23 constellation systemd[1]: zfs-mount.service: Failed with result 'signal'.
Code:
root@constellation:~# more /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content vztmpl,iso,backup
lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir
dir: iso
path /storage/share/iso
content iso,vztmpl
shared 0
mkdir 0
is_mountpoint 1
zfspool: vmstorage
pool storage/vmstorage
content images,rootdir
mountpoint /storage/vmstorage
sparse 1
mkdir 0
is_mountpoint 1
zfspool: vmstoragelimited
pool storage/vmstorage/limited
content images,rootdir
mountpoint /storage/vmstorage/limited
sparse 1
mkdir 0
is_mountpoint 1
Code:
root@constellation:~# zfs list -r -o name,mountpoint,mounted
NAME MOUNTPOINT MOUNTED
storage /storage yes
storage/share /storage/share yes
storage/share/downloads /storage/share/downloads no
storage/share/iso /storage/share/iso no
storage/vmstorage /storage/vmstorage yes
storage/vmstorage/limited /storage/vmstorage/limited yes
storage/vmstorage/limited/subvol-101-disk-0 /storage/vmstorage/limited/subvol-101-disk-0 no
storage/vmstorage/limited/subvol-102-disk-0 /storage/vmstorage/limited/subvol-102-disk-0 no
storage/vmstorage/limited/subvol-103-disk-0 /storage/vmstorage/limited/subvol-103-disk-0 no
storage/vmstorage/limited/vm-104-disk-0 - -
Code:
root@constellation:~# pveversion -v
proxmox-ve: 6.2-2 (running kernel: 5.4.65-1-pve)
pve-manager: 6.2-12 (running version: 6.2-12/b287dd27)
pve-kernel-5.4: 6.2-7
pve-kernel-helper: 6.2-7
pve-kernel-5.3: 6.1-6
pve-kernel-5.4.65-1-pve: 5.4.65-1
pve-kernel-5.4.60-1-pve: 5.4.60-2
pve-kernel-5.4.44-2-pve: 5.4.44-2
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.18-2-pve: 5.3.18-2
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.5
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.2-2
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.2-8
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
proxmox-backup-client: 0.9.0-2
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.3-1
pve-cluster: 6.2-1
pve-container: 3.2-2
pve-docs: 6.2-6
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.1-3
pve-ha-manager: 3.1-1
pve-i18n: 2.2-1
pve-qemu-kvm: 5.1.0-3
pve-xtermjs: 4.7.0-2
qemu-server: 6.2-15
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.4-pve2
Last edited: