Skip to contentSkip to conversation

nfs-utils mountd getfh failed: No such file or directory

DISCUSSION Gabor Z. Papp 2 participants 3 messages Dec 16, 2008 – Dec 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I would like to use nfs-utils 1.1.4 (and 1.1.*) in the following environment:

[kernel]
Linux gzp 2.6.27.9-gzp2 #1 Tue Dec 16 15:17:04 CET 2008 i686 GNU/Linux

[glibc]
GNU C Library stable release version 2.3.6, by Roland McGrath et al. Compiled by GNU CC version 4.1.2.
Compiled on a Linux 2.4.34-gzp1 system on 2007-04-04.

But getting this error after trying to mount from remote:

2008 Dec 16 15:48:44 <daemon.info> gzp portmap[1843]: connect from 192.168.1.1 to getport(nfs)
2008 Dec 16 15:48:44 <daemon.info> gzp portmap[1844]: connect from 192.168.1.1 to getport(mountd)
2008 Dec 16 15:48:44 <daemon.notice> gzp mountd[1748]: authenticated mount request from 192.168.1.1:835 for /var/archive/sda1 (/var/archive/sda1) 2008 Dec 16 15:48:44 <daemon.warning> gzp mountd[1748]: getfh failed: No such file or directory

Found the revelant code in the mountd source, but I don't know what is this error.

#1 lore raw
Quoted 12 lines · Gabor Z. Papp

Hello,

I would like to use nfs-utils 1.1.4 (and 1.1.*) in the following environment:

[kernel]
Linux gzp 2.6.27.9-gzp2 #1 Tue Dec 16 15:17:04 CET 2008 i686 GNU/Linux

[glibc]
GNU C Library stable release version 2.3.6, by Roland McGrath et al. Compiled by GNU CC version 4.1.2.
Compiled on a Linux 2.4.34-gzp1 system on 2007-04-04.

Quoted 8 lines

But getting this error after trying to mount from remote:

2008 Dec 16 15:48:44 <daemon.info> gzp portmap[1843]: connect from 192.168.1.1 to getport(nfs)
2008 Dec 16 15:48:44 <daemon.info> gzp portmap[1844]: connect from 192.168.1.1 to getport(mountd)
2008 Dec 16 15:48:44 <daemon.notice> gzp mountd[1748]: authenticated mount request from 192.168.1.1:835 for /var/archive/sda1 (/var/archive/sda1) 2008 Dec 16 15:48:44 <daemon.warning> gzp mountd[1748]: getfh failed: No such file or directory

Found the revelant code in the mountd source, but I don't know what is this error.

This might be due to the fact that the nfsd module is not loaded when mountd is started since it appears mountd is not using the new caching.

Make sure a 'modprobe nfsd' happens before mountd is started...

steved.

#2 lore raw

* Steve Dickson <[email protected]>:

| > 2008 Dec 16 15:48:44 <daemon.warning> gzp mountd[1748]: getfh failed: No such file or directory
| > 
| > Found the revelant code in the mountd source, but I don't know what is this error.

| This might be due to the fact that the nfsd module is not loaded when | mountd is started since it appears mountd is not using the new caching.

| Make sure a 'modprobe nfsd' happens before mountd is started...

Thanks, I have found the problem. The exported filesystem wasn't mounted and the mountpoint is on 2.6 initrd. Read in the manpage that can't be exported via nfs.