As the Proxmox forum isn't helping with my current ZFS issue, I'm asking here in the hope to go into the right direction.
Updated/-graded the system and rebooted which was followed by the mysterious 'loss' of datasets. The datasets are not really gone, as I can still list them with 'zfs list'.
If someone has a bit of good advice, please let me know. Would be much appreciated.
Thank you in advance.
Regards
Mike
Updated/-graded the system and rebooted which was followed by the mysterious 'loss' of datasets. The datasets are not really gone, as I can still list them with 'zfs list'.
Checking what causes the datasets not to mount at reboot, showed me that the zfs-mount.service is not working anymore:root@pve2:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
storage 129G 7.78T 29.3G /storage
storage/backups 24K 7.78T 24K /storage/backups
storage/iso 24K 7.78T 24K /storage/iso
storage/vm 100G 7.78T 24K /storage/vm
storage/vm/vm-100-disk-0 100G 7.86T 9.72G -
As this is a backup server only, for a quick solution I can run 'zfs mount -O -a', get it into /etc/crontab and run it at@reboot. All datasets will be back. But that's not ok. As I'm not a professional in zfs, I could not find a correct solution. I'm also a little bit confused about why ZOF doesn't act as 'old school Linux', where Linux mounts everything if configured correctly, no matter a dir is empty or not.root@pve2:/var/log/apt# systemctl status zfs-mount.service
● zfs-mount.service - Mount ZFS filesystems
Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-08-07 21:40:43 CEST; 13min ago
Docs: man:zfs(8)
Process: 1629 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
Main PID: 1629 (code=exited, status=1/FAILURE)
Aug 07 21:40:43 pve2 systemd[1]: Starting Mount ZFS filesystems...
Aug 07 21:40:43 pve2 zfs[1629]: cannot mount '/storage': directory is not empty
Aug 07 21:40:43 pve2 systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
Aug 07 21:40:43 pve2 systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
Aug 07 21:40:43 pve2 systemd[1]: Failed to start Mount ZFS filesystems.
If someone has a bit of good advice, please let me know. Would be much appreciated.
Thank you in advance.
Regards
Mike