2008-12-16 16:00:06

by Gabor Z. Papp

[permalink] [raw]
Subject: nfs-utils mountd getfh failed: No such file or directory

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.


2008-12-17 22:43:59

by Steve Dickson

[permalink] [raw]
Subject: Re: nfs-utils mountd getfh failed: No such file or directory



Gabor Z. Papp wrote:
> 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.
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.


2008-12-18 14:37:01

by Gabor Z. Papp

[permalink] [raw]
Subject: Re: nfs-utils mountd getfh failed: No such file or directory

* 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.