2004-10-11 22:55:17

by Michael Richardson

[permalink] [raw]
Subject: Re: force unmount not working 2.4.22

-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "Goutham" == Goutham Kurra <[email protected]> writes:
Goutham> I can see that '-f' tries to stop all active rpc tasks to
Goutham> the server, but I guess the reference counts on the mount
Goutham> are not dropped. What would be cool is a 'brute-force'
Goutham> option that kills any process that still holds a reference
Goutham> to the filesystem and then also unmounts it.

A good idea, but there are still things that "kill -9" won't kill, and
people who don't understand why we need it. "Fix the application" they say.

A better idea is that -f goes into the file table, and makes all of
the references duds. When the applications writes, they get an I/O
error, and when they read, they get EOF or I/O error.

Goutham> The problem with using something like fuser is that it will
Goutham> promptly hang on an unreachable server making it useless on
Goutham> nfs filesystems.

Goutham> Any ideas on what to do in this case (i.e, unreachable NFS
Goutham> server, plus a bunch of processes hung on the mount)?

Yes, a shame. Perhaps we can fix fuser as well?

Goutham> I'm uncomfortable using lazy unmounts as I don't have a way
Goutham> of knowing if the filesystem has finally been dropped or
Goutham> not.

For critical stuff, using lazy or soft mounts is not a good idea.

- --
] "Elmo went to the wrong fundraiser" - The Simpson | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] [email protected] http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys

iQCVAwUBQWsPRIqHRg3pndX9AQH7XgP/Xx3uhOmjXZ/lVijYGSPxnldnYMo6s9Gp
0sc8IQepyaMZ9JSl/TnayvNTBjO2YXaBBliugDTqPp+RRV3lYXa0EXbTHtHRiBD0
KaGu98Z0k5iDhFrUcAcgUfU55AKDC2FtQ69YG5DhXt10EOIDtmvfcamy9ssiCRsj
No/K5Fv2IJ0=
=pzfz
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs