tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unmounting a NFS-exported file system



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@localhost>
> Ernst-Ludwig-Straße 15
> 64625 Bensheim
> Germany


Home | Main Index | Thread Index | Old Index