roadlabs / alt-f

Automatically exported from code.google.com/p/alt-f
0 stars 1 forks source link

Enter a button to remove nfs stale mounts #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.

Connect with a computer over nfs to alt-f and forget to umount

2.

Got a nfs connect hangup by desktop filemanager like nautilus

What is the expected output? What do you see instead?

Expected: nfs should remove stale mounts

Real: stale mounts stay forever and survive reboots, they are listet in the 
statuspage

What Alt-F version are you using? Have you flashed it?

Flashed 0.1RC2

What is the box hardware revision level? A1, B1 or C1? (look at the label
at the box bottom)

B1D

What is your disk configuration? Standard, RAID (what level)...

Raid-1

What operating system are you using on your computer? Using what browser?

Ubuntu 12.04, Firefox 13

Please provide any additional information below.

Original issue reported on code.google.com by thinkha...@googlemail.com on 10 Jun 2012 at 6:59

GoogleCodeExporter commented 9 years ago
Stale entries can't be removed from /var/lib/nfs/rmtab because it is not 
possible to know if the client has crashed while NFS was in use (mounted), and 
will want to reuse the same NFS handle again after powerup.

Personal notes:

/var/lib/nfs/rmtab has a lock on it while NFS is up (use 'ls -la /var/lib/nfs' 
to see it).

There seems to exists an issue with nfs-utils-1.2.5 (or the 2.6.35.14 kernel) 
that avoids the removal of some nfs kernel modules when nfs is stopped.
Editing rmtab seems to make it unalterable by the nfs daemons.

I have verified that the issue is still present in nfs-utils-1.2.6.

Adding a button to remove *all* entries is possible, but the currently active 
clients should unmount NFS and the NFS server should be stopped first (which is 
currently impossible because of the impossibility to remove all NFS kernel 
modules).

Possibly the NFS initscript can clean rmtab at powerup, if signaled to do it by 
a NFS webgui button (the same as it is done with the 'Delay NFS at startup' 
button.)

Original comment by whoami.j...@gmail.com on 5 Nov 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Closed by svn commit 2091

This is not however a cure, as /var/lib/nfs/rmtab is not reliable, and current 
nfs-utils-1.2.7 does not seems to update it even when the client umounts the 
export!

Original comment by whoami.j...@gmail.com on 18 Feb 2013 at 4:36