Re: Upon rebooting knfsd server: nfs_revalidate_inode fails.

Steven N. Hirsch (shirsch@adelphia.net)
Tue, 17 Nov 1998 20:10:32 -0500 (EST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---1463799051-1380736999-911351432=:4697
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 17 Nov 1998, David Woodhouse wrote:

> I'm still having problems with knfsd when the server is rebooted.
>
> We use NFS because it's supposed to be stateless - previously (with unfsd) you
> could reboot the server and it would just keep working.
>
> By adding explicit entries for each host on our local net to /etc/exports,
> I've made sure that clients don't get 'permission denied' because of the dodgy
> wildcard handling. Not ideal, but it works.
>
> Unfortunately, we still need to restart most of the NFS clients, as they
> complain of invalid nfs filehandles.

David,

I used to see this all the time, but HJ's patches and utilities have
banished the ill behavior. One thing to try, though. I found it
necessary to export the mount points _after_ all the other knfsd
components are started. When I ran with the rc script as HJ provides it,
the export operation would occur without incident, only to "disappear"
several minutes into system operation! I'm attaching the (slightly
modified) version of rc.nfs which works for me.

Sometimes, the /var/lib/nfs/* files get so out-of-sync that you're better
off blowing them all away and restarting the subsystem. But, again, it's
been quite some time since I've wrestled with such problems.

Steve

---1463799051-1380736999-911351432=:4697
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rc.nfs"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.981117201032.4697D@air.fast.net>
Content-Description:

IyEvYmluL3NoDQojDQojIG5mc2QJCVRoaXMgaXMgYSBzYW1wbGUgcmMgZmls
ZSBmb3Iga25mc2Qgd2hlbiB1c2luZyBzeXN2aW5pdA0KIwkJYXMgZm91bmQg
aW4gUmVkIEhhdC9DYWxkZXJhLg0KIwkJQWRhcHQgYXMgcmVxdWlyZWQgd2hl
biB1c2luZyBhIGRpZmZlcmVudCBpbml0IHByb2dyYW0uDQojCQlUaGlzIHdh
cyBwbGFnaWFyaXplZCBmcm9tIE12UydzIGluaXQgc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WyAkS05GU0QgPSB5ZXMgXTsgdGhlbg0KCQkvdXNyL3NiaW4v
a2V4cG9ydGZzIC1yDQoJZWxzZQ0KCQkvdXNyL3NiaW4vZXhwb3J0ZnMNCglm
aQ0KCXRvdWNoIC92YXIvbG9jay9zdWJzeXMvbmZzDQoJOzsNCiAgcHJvYmUp
DQoJaWYgWyAhIC1mIC92YXIvbG9jay9zdWJzeXMvbmZzIF0gOyB0aGVuDQoJ
ICBlY2hvIHN0YXJ0OyBleGl0IDANCglmaQ0KCS9zYmluL3BpZG9mICRSUENN
T1VOVEQgPi9kZXYvbnVsbCAyPiYxOyBNT1VOVERzPSIkPyINCgkvc2Jpbi9w
aWRvZiAkTkZTRCA+L2Rldi9udWxsIDI+JjE7IE5GU0RzPSIkPyINCglpZiBb
ICRNT1VOVERzID0gMSAtbyAkTkZTRHMgPSAxIF0gOyB0aGVuDQoJICBlY2hv
IHJlc3RhcnQ7IGV4aXQgMA0KCWZpDQoJaWYgWyAvZXRjL2V4cG9ydHMgLW50
IC92YXIvbG9jay9zdWJzeXMvbmZzIF0gOyB0aGVuDQoJICBlY2hvIHJlbG9h
ZDsgZXhpdCAwDQoJZmkNCgk7Ow0KICAqKQ0KCWVjaG8gIlVzYWdlOiBuZnMg
e3N0YXJ0fHN0b3B8c3RhdHVzfHJlc3RhcnR8cmVsb2FkfSINCglleGl0IDEN
CmVzYWMNCg0KZXhpdCAwDQo=
---1463799051-1380736999-911351432=:4697--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/