Page 1 of 1

Cannot Create NFS Shares

Posted: 05 Nov 2016 19:49
by joebobfrank
I am not able to create NFS shares.
I am formated the drives an ZFS storage pool. Then I created a virtual device. Then added a pool. After that I created two datasets.
After enabling NFS, in the Shares section, I click the browse button to see the datasets but I only see the pool that was created earlier.
I do not see the full path to the datasets I created.
I have set up NFS on version 10.2 without a problem. I have a new box with version that I am trying to set up.

I am not able to delete the datasets. I get this error message:

Code: Select all

root: zfs destroy -f 'mypool/storage'
root: cannot open 'mypool/storage': dataset does not exist
root: Error: Failed to destroy dataset mypool/storage
Seems like the datasets did not get created. I should try to create it manually in the cli.
Anybody know how to fix this?

Re: Cannot Create NFS Shares

Posted: 05 Nov 2016 20:16
by ernie

Did you synchronize the pool after dataset creation ?

It is in disk/zfs/configuration (button synchronize).

Re: Cannot Create NFS Shares

Posted: 05 Nov 2016 20:35
by joebobfrank

Oops, I did not synchronize anything.

A used the cli logged in as root and ran the following commands to get it to work.

Code: Select all

zfs list

zfs list mypool

zfs create mypool/storage
Then I had to create the datasets in the GUI because they were not visible after refreshing the page.
Then I ran these commands.

Code: Select all

zfs get sharenfs mypool/storage

zfs set sharenfs=on mypool/storage
Then I was able to create the NFS shares. I was able to see the full path in the GUI.
I have mounted them and I am now copying data.

It was cool that I learned some ZFS command line commands. I would rather not use the GUI anyway. Thank you for your help.