Networking Forums

Networking Forums > Computer Networking > Linux Networking > Stale NFS mounts

Reply
Thread Tools Display Modes

Stale NFS mounts

 
 
Brian Donovan
Guest
Posts: n/a

 
      01-13-2004, 05:56 PM
Hi all,

I'm using NFS on my laptop to export some of the file system to my
desktop. When I run showmount -a hostname on the desktop I'm getting a
number of stale mounts in addtion to the active ones. How can I get rid of
the stale mounts?

Brian Donovan
 
Reply With Quote
 
 
 
 
Dave {Reply Address in.sig}
Guest
Posts: n/a

 
      01-13-2004, 06:34 PM
In message <(E-Mail Removed)>, Brian Donovan wrote:

> Hi all,
>
> I'm using NFS on my laptop to export some of the file system to my
> desktop. When I run showmount -a hostname on the desktop I'm getting a
> number of stale mounts in addtion to the active ones. How can I get rid of
> the stale mounts?
>

That's because your nfs code was compiled using a non-airtight container
class. If you use an airtight version then they won't go stale.

Sorry, it's been one of those days today...

Dave
--
mail: da (E-Mail Removed) (without the space)
http://www.llondel.org/
So many gadgets, so little time...

 
Reply With Quote
 
Skylar Thompson
Guest
Posts: n/a

 
      01-13-2004, 07:07 PM
On Tue, 13 Jan 2004 13:56:52 -0500, Brian Donovan <(E-Mail Removed)> wrote:
> Hi all,
>
> I'm using NFS on my laptop to export some of the file system to my
> desktop. When I run showmount -a hostname on the desktop I'm getting a
> number of stale mounts in addtion to the active ones. How can I get rid of
> the stale mounts?


Try using "umount -f /path/to/mount" to clear them.

--
-- Skylar Thompson ((E-Mail Removed))
-- http://cs.earlham.edu/~skylar/
 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      01-13-2004, 07:20 PM
Dave {Reply Address in.sig} <noone$$@llondel.org> wrote:
> In message <(E-Mail Removed)>, Brian Donovan wrote:
> > I'm using NFS on my laptop to export some of the file system to my
> > desktop. When I run showmount -a hostname on the desktop I'm getting a
> > number of stale mounts in addtion to the active ones. How can I get rid of
> > the stale mounts?
> >

> That's because your nfs code was compiled using a non-airtight container
> class. If you use an airtight version then they won't go stale.


Yes. He should clear the stale mounts out of the cupboard and make new
ones. ANd next time DO use a proper vacuum to clear up with.

> Sorry, it's been one of those days today...


You're just annoyed at yourself for forgetting to tell him to keep
locking the container class after using it.

Peter
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      01-14-2004, 05:07 AM
Brian Donovan <(E-Mail Removed)> wrote:

> I'm using NFS on my laptop to export some of the file system to my
> desktop. When I run showmount -a hostname on the desktop I'm getting a
> number of stale mounts in addtion to the active ones. How can I get rid of
> the stale mounts?


One thing to keep in mind with NFS is that its always a good idea to
using some time-syncing mechanism, such as NTP, althought I don't know
if that't the cause of stale handles.

You might also try using lsof to see if anything is using that file.

Also, check that you've used exportfs -av on the server.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      01-16-2004, 06:39 PM
Brian Donovan wrote:
> Hi all,
>
> I'm using NFS on my laptop to export some of the file system to my
> desktop. When I run showmount -a hostname on the desktop I'm getting a
> number of stale mounts in addtion to the active ones. How can I get rid of
> the stale mounts?
>
> Brian Donovan


Hosts that have mounted your exports are tracked in rmtab, whose
location varies from distribution to distribution. On my RH machine
it's at /var/lib/nfs/rmtab. The mountd man page says it's supposed to
be at /var/state/nfs/rmtab. YMMV

rmtab is described by the man page as "mostly ornamental" and gives
reasons you may find enlightening (and one of which you've already
discovered).

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Mounts not visible Ignoramus14968 Linux Networking 5 03-10-2008 05:44 PM
Stale filehandles again Damian Menscher Linux Networking 0 09-28-2005 11:53 PM
Duplex problems with NFS mounts Swordsman Linux Networking 9 02-28-2004 02:38 AM
combining mounts into one big drive. /dev/null Linux Networking 2 11-10-2003 10:29 PM
NFS subdirectory mounts John Stolz Linux Networking 1 07-28-2003 01:28 PM



1 2 3 4 5 6 7 8 9 10 11