[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-kern
Subject:    Re: unmounting a NFS-exported file system
From:       Adrian Steinmann <ast () NetBSD ! org>
Date:       2013-10-20 8:03:00
Message-ID: 20131020080300.GA4420 () webgroup ! ch
[Download RAW message or body]

kill -STOP mountd-pid && kill -STOP nfsd-pid \
&& fsck NFS-exported-mountpoint && \
kill -START nfsd-pid && kill -START mountd-pid

just a crazy idea, never tried it myself...
I'd hate to be on an NFS client though ;-)

Ast

On Sat, Oct 19, 2013 at 06:33:59PM +0200, Hauke Fath wrote:
> On Sat, 19 Oct 2013 17:56:02 +0200, Edgar Fuß wrote:
> >> Removing the share from /etc/exports and HUPing mountd(8) only helps for 
> >> new mount requests, not existing mounts.
> >
> > What would happen to NFS clients in case I stop nfsd, remove the partition 
> > from /etc/exports and unmount it, then reload mountd and restart nfsd?
> 
> There's probably people on this list more qualified to answer this than 
> I... ;)
> 
> To my understanding (and educated guessing), the client has a valid NFS 
> file handle in this situation. So, from its POV, it looks like the 
> server has gone away away, and comes back. Why would it need to 
> re-claim its mount from mountd(8)?
> 
> hauke
> 
> -- 
> Hauke Fath                        <hauke@Espresso.Rhein-Neckar.DE>
> Ernst-Ludwig-Straße 15
> 64625 Bensheim
> Germany
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic