On Monday 22 January 2007 14:42, Dave Howorth wrote: > Rikard Johnels wrote: > > I had my fileserver on a reboot, and the clients mounting extra areas via > > NFS lost track of the mounts. > > > > As i try to remount i get: > > > > mount /mnt/network/server/sda > > mount: Stale NFS file handle > > > > Where can i see the handles, and how can i reset them? > > The simplest answer is to reboot any clients where this has occurred. > > If you don't want to do that, you'll need to unmount each stale handle > before you can remount it: > > umount /mnt/network/server/sda > mount /mnt/network/server/sda > > Sometimes the umount doesn't work because something is using the NFS > filesystem. In that case you need to stop whatever processes are using > the mounts. You can usually find running programs that are using files > easily enough (lsof etc). It's easy to overlook a terminal shell window > that happens to have its current directory inside the filesystem (so > type cd / in any questionable shells). > > If you have active processes using the filesystem and you don't want to > kill them, things are more complicated. I've sometimes managed by using > the force and lazy options to umount, but I don't remember the exact > incantations, and it will depend on exactly what the processes are doing. > > I'm sure there are more professional ways to do it, but that's how I do > it :) > > Cheers, Dave
I have a "standard" NFS server with /mnt/local/sda/ *(rw,sync,no_root_squash) /mnt/local/sdb/ *(rw,sync,no_root_squash) and the client has in the fstab: 192.168.1.10:/mnt/local/sda /mnt/network/server/sda nfs defaults 0 0 192.168.1.10:/mnt/local/sdb /mnt/network/server/sdb nfs defaults 0 0 I did "umount /mnt/network/server/sda" and i complained about not bein mounted, and then as i try to mount "/mnt/network/server/sda" it again, i get the stale error. "lsof" doesnt show anything except an error about stale NFS... So i cant kill something that i dont know what it is... -- /Rikard ----------------------------------------------------------------------------- email : [EMAIL PROTECTED] web : http://www.rikjoh.com mob: : +46 (0)763 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
pgpNYcJs0foGL.pgp
Description: PGP signature
