You are not logged in.

#1 2009-10-16 23:49:25

dgregory46
Member
Registered: 2009-07-30
Posts: 11

[SOLVED] mount.nfs4: access denied by server

Hi folks. I seem to be having a bit of a problem getting nfs4 to work. I am trying to mount a share from alpha (my fileserver) onto charlie (my workstation). Both of these are new Arch systems and I haven't had any nfs working yet, although I have with other distros on the same hardware.

Fileserver (alpha) config:

# /etc/exports
/files 192.164.1.0/24(rw,sync,fsid=0,no_subtree_check)
#
# /etc/hosts.allow
sshd:    192.168.1.0/255.255.255.0
nfsd:    192.168.1.0/255.255.255.0
rpcbind: 192.168.1.0/255.255.255.0
mountd:  192.168.1.0/255.255.255.0
idmapd:  192.168.1.0/255.255.255.0
statd:   192.168.1.0/255.255.255.0
[General]

Verbosity = 3
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]

Method = nsswitch
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda1 /boot ext3 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda5 / ext3 defaults 0 1
/dev/sda6 /var ext3 defaults 0 1
/dev/sda7 /home ext3 defaults 0 1
/dev/sda8 /files ext3 defaults 0 1

rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
nfsd /proc/fs/nfsd nfsd rw,nodev,noexec,nosuid 0 0
DAEMONS=(syslog-ng network netfs rpcbind nfs-common nfs-server hal @alsa @crond @openntpd @sshd)
[root@alpha ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5             19228276    879492  17372036   5% /
none                    507792       140    507652   1% /dev
none                    507792         0    507792   0% /dev/shm
/dev/sda1                93307     15887     72603  18% /boot
/dev/sda6             19228276    372632  17878896   3% /var
/dev/sda7             19228276    176224  18075304   1% /home
/dev/sda8            902688436    204872 856629640   1% /files
[root@alpha ~]#

Workstation (charlie) config:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=437982b2-5c84-4f53-954d-cf43f8b4e707 / ext3 defaults 0 1
UUID=97d79d76-357a-4f4e-8513-f181bff6af62 /boot ext3 defaults 0 1
UUID=d8525095-9b97-4439-932f-8f4e0236cce1 /home ext3 defaults 0 1
UUID=ffba933b-af93-407c-b1b8-69d1cc5be146 swap swap defaults 0 0

rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0

alpha:/ /files nfs4 defaults 0 0
[General]

Verbosity = 3
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]

Method = nsswitch
DAEMONS=(syslog-ng network crond alsa hal fam rpcbind nfs-common netfs)
[root@charlie ~]# mount -a
mount.nfs4: access denied by server while mounting alpha:/
[root@charlie ~]#

This happens even after both systems are rebooted. Can anyone spot what I am missing?

Thanks for looking.

Last edited by dgregory46 (2009-10-21 01:04:09)

Offline

#2 2009-10-20 07:25:51

phaul
Member
From: United Kingdom
Registered: 2009-09-28
Posts: 5
Website

Re: [SOLVED] mount.nfs4: access denied by server

I couldn't get nfs4 working with only 1 `fsid 0' share. I think you have to add more shares to it inside that. Also on the client when you mount a nfs4 share the server path is relative to the fsid 0 share.

Offline

#3 2009-10-21 01:03:25

dgregory46
Member
Registered: 2009-07-30
Posts: 11

Re: [SOLVED] mount.nfs4: access denied by server

Now I really feel stupid. A little proofreading would have saved me a big headache. In /etc/exports I was exporting to 192.164.1.0/24 while my network is the more standard 192.168.1.0/24.

It works fine now, although I did take phaul's suggestion and added my main share "inside" the nfs4 root.

Offline

Board footer

Powered by FluxBB