Proxmox and zfs(onlinux) issue

jinjer

Renowned Member
Oct 4, 2010
204
7
83
I've been experimenting with zfs onlinux in the last few days.

ZFS is running fast and stable and all looks great.

There is however a small issue with proxmox and the shares mounted from zfs.

The preconditions are:
By default, zfs will not mount a zfs dataset in a directory if the directory is not empty.
By defaults, proxmox will create directories in it's datastore, if it finds it empty.

You see the race:
Sometimes you dismount a zfs filesystem containting something (images/iso... whatever) and proxmox will create a new empty directory called "images" in the mount point. Some other times, zfs will just have a problem and not mount, leading to the same issue above.

ZFS will refuse to mount the dataset until you delete the empty directories.

The fix.... is not easy. I know.
 
Ouch... same issue indeed. I still think its unfortunate as a FS can fail to mount for any reasons. Initializing an empty directory with default data shall not be allowed to happen at any other time than at setup (i.e. when adding the storage via the gui, or when explicitly forcing a storage to be initialized).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!