Zfs: Unintuitive error message setting sharenfs=on

Created on 16 Apr 2016  路  12Comments  路  Source: openzfs/zfs

If the NFS server is not installed and you attempt to set sharenfs=on on a filesystem, you get the following unintuitive error message:

cannot share '<filesystem name>': share(1M) failed        
property may be set but unable to reshare filesystem
Stale Documentation

Most helpful comment

You have no installed required system libs:

sudo apt install nfs-kernel-server

All 12 comments

+1

I encountered this problem too.

You have no installed required system libs:

sudo apt install nfs-kernel-server

@KES777 Yes, as I said, this happens "If the NFS server is not installed"

hihihi - what a nonsense - please check before tranfser some TBs - just waiting hours and then boom - lol

@foxpalace What?

@grantwwu I think @foxpalace started a file transfer, didn't realize that an NFS mount point wasn't mounted, and then sync'd a bunch of data to a root volume instead, thus filling it up. Presumably the reason the NFS mount point wasn't mounted was due to sharenfs=on not working.

@jpellman I applaud and appreciate your translation abilities.

It's still irrelevant to this thread though; there _is_ an error message, which still ought to have given pause to the person before they did the transfer. The issue is that the error message is confusing.

yes - i didn't control the settings - therefore is my software - I transfered some TBs of Data and on the end ... b枚hm - your settings are wrong - all data on the second machine deleted after hours of transfer ... its like: hoooouuuu middlefinger

@grantwwu It's reassuring to know that my minor in French wasn't totally useless :)

this worked for me too - sudo apt install nfs-kernel-server

This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings