[opensuse] mount: Stale NFS file handle
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? -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com 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 >
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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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 : rikard.j@rikjoh.com 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 >
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
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,
If it was originally mounted via fstab, I don't understand at the moment how it would report not mounted but also a stale NFS handle. Please could you post the actual command you used and the actual error message followed by the mount command and its output. Oh, and a df. Just cut and paste the sequence from a terminal. FWIW, I use "rsize=8192,wsize=8192,intr,bg,noatime" for the client's fstab options. I find running without one of 'soft' or 'intr' is a pain when problems arise. YMMV.
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...
Perhaps do a full ps and look at each process to see what it's doing? Presumably you know which applications use that filesystem. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Dave Howorth
-
Rikard Johnels