zfs set sharenfs=on archive_pool/archive failed

Borut

Well-Known Member
May 16, 2018
39
0
46
70
Under PVE 5.1-41 (Debian 9) I created a pool archive_pool and ZFS archive_pool/archive which I want to share over autofs and NFS. When executing share command I get share failed:

# zfs set sharenfs=on archive_pool/archive
cannot share 'archive_pool/archive': share(1M) failed

I tried showmount, which failed as well:

# showmount -e
clnt_create: RPC: Program not registered

Please, be patient, I am coming from Solaris world where this was just working out of the box for decades...
Maybe I am trying something which doesn't fit in PVE concept.

Let me know if this is possible and how to do it.
 
Tried to reproduce the problem: installing "nfs-kernel-server" fixed the error message:
Code:
apt install nfs-kernel-server
 
Yes, a solution is to install "nfs-kernel server":
# apt install nfs-kernel-server

Why was this not already installed?
 
It is not installed by default, because we only install the necessary software to get PVE running, and only software for configurations, which we actually test.

We install our software on top of a debian install, and as customary try to keep the installed packages minimal, if people need additional software they can install it via apt
 
do i have to install samba server packages also in order to have the ability to share windows folder and previous version feature ?
thanks
 
do i have to install samba server packages also in order to have the ability to share windows folder and previous version feature ?
thanks
Yes same procedure on a PVE node, usually you put a samba/nfs server into a VM and not on the bare metal hypervisor.
 
thanks for your help, putting samba into a vm works, but i'm testing to put directly to pve hypervisor and does not work.
I can see .zfs/snaphot shares in windows but the restore previous version feature is blank. Is it a limitation of zfs in proxmox ?
 

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!