[OT] unable to umount ... device busy

Itai Nahshon (nahshon@actcom.co.il)
Tue, 27 Aug 2002 01:40:04 +0300


Well, sorry for bringing this up here3 but I do not know
of a better forum for this subject...

Working in an environment of multiple Linux systems
(and wildly using NFS and am-utils) I have hit this problem
many times and in some cases I can describe it as "embarrassing".

The problem is that processes that do not really care about their
working directory are standing in the way of umount.
It is most painful when I cannot eject a CD (or other removable
device) and sometimes with NFS mounted directories.

Most guilty programs:
su + the pam patch (as distributed by redhat) there's a process just
waiting for the shell to exit.
Daemons - should cd to "/" except if there is some other preferred
directory.

Related subject and not completely OT: I remember in AIX, umount -f
(forced umount) marked all the open inodes on the device as
STALE and then proceed (and never return EBUSY). Any plans
to implement it also for Linux?

-- Itai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/