Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS version #3650

Closed
galindro opened this issue Jul 30, 2015 · 2 comments
Closed

NFS version #3650

galindro opened this issue Jul 30, 2015 · 2 comments

Comments

@galindro
Copy link

Sometimes I have a permission denied problem when I try to mount the share from one allowed node (in this case, 192.168.1.141/32). I don't know why or when this happens (I mean what is the issue's trigger), but I think that is caused by ZoL because the problem is solved only when I set the nfsshare property to off and then to rw=@192.168.1.141/32,insecure.

The NFS server is m01 (192.168.1.113)
The NFS client is servicos (192.168.1.141)

BEFORE RESET nfsshare option
# SERVER
root@m01:~# zfs get sharenfs datastore/moodle_quarentena_videos
NAME                                PROPERTY  VALUE                          SOURCE
datastore/moodle_quarentena_videos  sharenfs  rw=@192.168.1.141/32,insecure  local

root@m01:~# cat /etc/dfs/sharetab
/var/moodle_quarentena_videos   -   nfs rw=@192.168.1.141/32,insecure
#CLIENT
root@servicos:~# grep moodle /etc/fstab
192.168.1.113:/var/moodle_quarentena_videos /var/moodle_quarentena_videos nfs

root@servicos:~# mount -a -v
mount: proc already mounted on /proc
mount: UUID=f8a6cca1-cdf5-401b-babc-e1a218a24d6f already mounted on /boot
mount.nfs4: timeout set for Thu Jul 30 07:04:12 2015
mount.nfs4: trying text-based options 'addr=192.168.1.113,clientaddr=192.168.1.141'
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting 192.168.1.113:/var/moodle_quarentena_videos
AFTER RESET nfsshare option
# SERVER
root@m01:~# zfs set sharenfs=off datastore/moodle_quarentena_videos
root@m01:~# zfs set sharenfs="rw=@192.168.1.141/32,insecure" datastore/moodle_quarentena_videos

root@m01:~# cat /etc/dfs/sharetab
/var/moodle_quarentena_videos   -   nfs rw=@192.168.1.141/32,insecure
#CLIENT
root@servicos:~# mount -a -v
mount: proc already mounted on /proc
mount: UUID=f8a6cca1-cdf5-401b-babc-e1a218a24d6f already mounted on /boot
mount.nfs4: timeout set for Thu Jul 30 07:16:44 2015
mount.nfs4: trying text-based options 'addr=192.168.1.113,clientaddr=192.168.1.141'

root@servicos:~# df -h /var/moodle_quarentena_videos
Filesystem                                   Size  Used Avail Use% Mounted on
192.168.1.113:/var/moodle_quarentena_videos  119G   48M  119G   1% /var/moodle_quarentena_videos

One configuration that I have changed, before reset the nfsshare option in nfs server, was the nfs protocol version from nfs to nfs4 on /etc/fstab of nfs client, but I don't know if it will solve the issue definitely...

#CLIENT
root@servicos:~# grep moodle /etc/fstab
192.168.1.113:/var/moodle_quarentena_videos /var/moodle_quarentena_videos nfs4
@FransUrbo
Copy link
Contributor

What do the server say when you try to do the mount? Is this the only share you have?

Could this be related to #1442?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@behlendorf @FransUrbo @galindro and others