All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS client got stale NFS handle after server reboot
@ 2005-09-20 15:17 Reuti
  2005-09-21 16:49 ` Reuti
  0 siblings, 1 reply; 9+ messages in thread
From: Reuti @ 2005-09-20 15:17 UTC (permalink / raw)
  To: nfs

Hi all,

I set up a NFS server using kernel NFS in kernel 2.6.11.4-21.9 from
SuSE. I defined three directories to be exported using netgroups and all
is working fine, as they can be mounted as intended by all the nodes in
the cluster.

Up to now I was used to have the NFS feature, that a "hard" mount on the
nodes will survive a reboot of the NFS server. This is now no longer the
case. If I reboot the server, all the nodes get a stale NFS handle. I
can achieve the same effect by simple stopping and starting the nfsd -
same result.

As we use a RAID card for the disks in the server, I got the idea of
changed major-minor numbers and also tried to give in the "exports"
file a chosen "fsid=" for each of the three exports. (Although
starting/stopping the nfsd won't change the major-minor numbers I
think.) No change.

Now the funny part: login to a node. Choose any of the three imported
directories. Make an "umount" and "mount" on this dir - and also the
other two dirs reappear and are accessible again.

Does anyone has an explanation and/or solution for this setup, to get
the surviving feature back?

CU - Reuti

(BTW: all partitions are ext2 on Linux x86 machines, mounted with NFSv3)



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [CIRCUMVENTED] NFS client got stale NFS handle after server reboot
@ 2005-09-26  8:31 Reuti
  0 siblings, 0 replies; 9+ messages in thread
From: Reuti @ 2005-09-26  8:31 UTC (permalink / raw)
  To: nfs

Here one mail, which didn't got to the list by pressing the wrong=20
button. As I just found another fact, first this mail to the list...


Hi Vincent,

one additonal observation:

I looked at /var/lib/nfs/rmtab and was confused by the entries. Seems
under the new mode they weren't properly maintained, and also after an
unmount some entries stayed there (not all). And there was an additonal
line just for the netgroup for each client.

In the legacy mode there is just one entry for each mount, and the
machines from netgroups appear there with their nodename. After an
unmount the lines are proper removed.

I'm not sure, whether this is important (is rmtab still used in the new
mode?) or at least a hint for the source of this behavior - just to let
you know.

Best Greetings - Reuti

PS: Yes, in the summary I missed it: it was all under NFSv3.


Vincent Roqueta wrote:
> Le jeudi 22 Septembre 2005 16:52, Reuti a =E9crit :
>=20
>>Finally I could track down the odd behavior (this time in top posting):
>>
>>If you have this combination:
>>
>>+ Linux kernel 2.6 nfsd on server
>>+ 64 bit i386, i.e. x86_64 server
>>+ using netgroups in /etc/exports
>>+ operate mountd/exportfs in new mode
>>
>>you will face the problem of stale NFS handle after a stop/start of of
>>the NFS service. As we want to use 64 bit of course, and enjoy netgroup=
s
>>for easier administration, I got a working setup by *not* mounting
>>/proc/fs/nfsd and forcing this way mountd/exportfs into legacy mode als=
o
>>on a 2.6 kernel.
>>
>>Cheers - Reuti
>=20
>=20
>=20
> There are several problems using x86_64 linux NFS (v4) machines as serv=
er, and=20
> it seems to have several problems on 64 bits architectures in general (=
at=20
> least with x86_64 and ppc64. Surely other architectures)
> =20
> For now there are this issue yet known (linux 2.6.13+CITI, Linux 2.6.14=
-rc*=20
> +CITI)
> -> Socket error -11 closing a big file (server : x86_64, clients: x86, =
ppc64)
> -> wrong lock behaviours  (Client PPC64, servers: ppc64, x86)
> ->  Input/output error closing a big file (server: ppc64, client x86_64=
)
> -> Oops (Client x86_64, server x86_64) - Linux 2.6.13+CITI
>=20
> However, this issues concern NFSv4. I am going to try to reproduce your=
=20
> problem with NFSv3 and NFSv4.
>=20
>=20
> Vincent
>=20
>=20
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.=20
> Download it for free - -and be entered to win a 42" plasma tv or your v=
ery
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.p=
hp
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-09-26  8:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-20 15:17 NFS client got stale NFS handle after server reboot Reuti
2005-09-21 16:49 ` Reuti
2005-09-22  9:24   ` Reuti
2005-09-22 14:52     ` [CIRCUMVENTED] " Reuti
2005-09-22 15:20       ` Vincent Roqueta
2005-09-22 16:08         ` Chris Penney
2005-09-22 16:27         ` Chris Penney
2005-09-26  8:32         ` Reuti
  -- strict thread matches above, loose matches on Subject: below --
2005-09-26  8:31 Reuti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.