Mailing List Archive

NFS problems ...
I know NFS is supposed to be so sooooo simple ... but ...

When I start my NFS server I get an error ...

bash-2.05b# /etc/init.d/portmap status
* status: started
bash-2.05b#

bash-2.05b# /etc/init.d/nfs restart
* Stopping NFS
mountd...
[ ok ]
* Stopping NFS
daemon...
[ ok ]
* Stopping NFS
statd...
[ ok ]
* Starting NFS
statd...
[ ok ]
* Exporting NFS directories...
/sbin/runscript.sh: line 534: 7786 Killed $exportfs -r
1>&2
* Error exporting NFS
directories
[ !! ]

* Starting NFS
daemon...
[ ok ]
* Starting NFS
mountd...
[ ok ]
bash-2.05b#

I have tries just about everything including re-emerging nfs-utils. I
have nfs start on bootup, it reports this error on bootup and whenever I
try & restart nfs with the above.

Any ideas anyone ?

Dave




Other system configs are ....

bash-2.05b# cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/home 192.168.0.6(rw,no_root_squash,sync)

bash-2.05b# cat /etc/hosts.allow
portmap:192.168.0.6
lockd:192.168.0.6
mountd:192.168.0.6
rquotad:192.168.0.6
statd:192.168.0.6

bash-2.05b# cat /etc/hosts.deny
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
bash-2.05b#


#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_RPCSEC_GSS_KRB5=y












--
gentoo-user@gentoo.org mailing list
Re: NFS problems ... [ In reply to ]
Luke Albers wrote:

>try exportfs -ra, instead of just -r. I dont know if it will help but
>its what I always do.
>
>On Wed, 2004-09-29 at 13:47, Dave S wrote:
>
>
>>I know NFS is supposed to be so sooooo simple ... but ...
>>
>>When I start my NFS server I get an error ...
>>
>>
>...
>
>
>> * Exporting NFS directories...
>>/sbin/runscript.sh: line 534: 7786 Killed $exportfs -r
>>1>&2
>> * Error exporting NFS
>>directories
>>[ !! ]
>>
>> * Starting NFS
>>daemon...
>>[ ok ]
>>
>>
>...
>
>

The problem is that this is done by a gentoo script, I assume
runscript.sh. If I execute exportfs -r or -ra I do not get an error from
that command.

Dave


--
gentoo-user@gentoo.org mailing list
Re: NFS problems ... [ In reply to ]
try exportfs -ra, instead of just -r. I dont know if it will help but
its what I always do.

On Wed, 2004-09-29 at 13:47, Dave S wrote:
> I know NFS is supposed to be so sooooo simple ... but ...
>
> When I start my NFS server I get an error ...
...
> * Exporting NFS directories...
> /sbin/runscript.sh: line 534: 7786 Killed $exportfs -r
> 1>&2
> * Error exporting NFS
> directories
> [ !! ]
>
> * Starting NFS
> daemon...
> [ ok ]
...
--
Luke Albers
Georgia Institute of Technology, Electrical Engineering
Email: gtg940r@mail.gatech.edu
Web: www.lukealbers.com



--
gentoo-user@gentoo.org mailing list
Re: NFS problems ... [ In reply to ]
Well I ended up doing a

: > /etc/export

Re-booting, it re-booted and started AOK

I then copied back my original /etc/export
did a exportfs -ra as you suggested, it worked

NFS appears to be working.

Maybe rebooting with a blank export file cleared something out ?

Cheers for the -ra tip
Dave

--
gentoo-user@gentoo.org mailing list
Re: NFS problems ... [ In reply to ]
I just had this problem on my system...

The 'cause' of the issue was something in /var/lib/nfs/etab ... I'm
not sure what exactly other than it appears my server had not gone down
clean (it was in storage for a while while I moved). I was getting
that exact same error when trying to start NFS until I deleted etab...
since etab is related to /etc/exports my guess is starting with a blank
/etc/exports cleared out /var/lib/nfs/etab

Bryn

--
~
~
:wq

On Sep 29, 2004, at 3:10 PM, Dave S wrote:

> Well I ended up doing a
>
> : > /etc/export
>
> Re-booting, it re-booted and started AOK
>
> I then copied back my original /etc/export
> did a exportfs -ra as you suggested, it worked
>
> NFS appears to be working.
>
> Maybe rebooting with a blank export file cleared something out ?
>
> Cheers for the -ra tip
> Dave
>
> --
> gentoo-user@gentoo.org mailing list
>


--
gentoo-user@gentoo.org mailing list
Re: NFS problems ... [ In reply to ]
Bryn Hughes wrote:

> I just had this problem on my system...
>
> The 'cause' of the issue was something in /var/lib/nfs/etab ... I'm
> not sure what exactly other than it appears my server had not gone
> down clean (it was in storage for a while while I moved). I was
> getting that exact same error when trying to start NFS until I deleted
> etab... since etab is related to /etc/exports my guess is starting
> with a blank /etc/exports cleared out /var/lib/nfs/etab
>
> Bryn


This may be of use, I just fount it :

http://bugs.gentoo.org/show_bug.cgi?id=4235

Cheers
Dave

--
gentoo-user@gentoo.org mailing list