autofs/ext2fs race?

From: Romano Giannetti (romano@dea.icai.upco.es)
Date: Wed Feb 02 2000 - 10:39:16 EST


This is a RH 6.0 system with all the updates applied. Linux automount
version 3.1.3, kernel version 2.2.13 self-compiled with pc speaker
support added. And sometime I run VMware, but keep reading, I think
it's unrelated.

I use autofs with three mountpoints: opne of it is /mov, for a mobile
IDE HDD. The relavant entries are:

/etc/auto.master:
/mov /etc/auto.mov --timeout 600

/etc/auto.mov:
win -fstype=vfat,user,uid=333 :/dev/hdb1
lin -fstype=ext2 :/dev/hdb2

Sometime, the startup of automount fails with error "/mov busy or
already mounted". In this situation:

# ls -li /
total 111
  24097 drwxr-xr-x 2 root root 2048 Sep 1 13:37 bin
  26105 drwxr-xr-x 2 root root 1024 Nov 8 17:49 boot
   6025 drwxr-xr-x 5 root root 34816 Feb 2 09:25 dev
      1 drwxr-xr-x 8 romano romano 16384 Jan 1 1970 dos
   8033 drwxr-xr-x 31 root root 4096 Feb 2 09:29 etc
     12 -rw-r--r-- 1 root root 2 Nov 17 16:09 fonts.dir
      2 drwxr-xr-x 11 root root 1024 Jan 24 10:21 home
  30121 drwxr-xr-x 4 root root 3072 Sep 1 13:37 lib
     11 drwxr-xr-x 2 root root 12288 Oct 21 1998 lost+found
  28114 drwxr-xr-x 2 root root 1024 Apr 10 1999 misc
  34137 drwxr-xr-x 5 root root 1024 Oct 9 1998 mnt
      1 drwxr-xr-x 2 root root 0 Feb 2 09:23 mov
  54251 dr-xr-xr-x 2 root root 1024 Jul 22 1999 net
  16067 drwxr-xr-x 4 root root 1024 Nov 17 16:04 opt
      1 dr-xr-xr-x 19 root root 0 Feb 2 09:27 proc
  54250 dr-xr-xr-x 2 root root 1024 Jul 22 1999 rem
  54271 drwxr-xr-x 2 root root 1024 Jan 25 18:40 remold
  40161 drwxr-x--- 17 root root 2048 Feb 2 09:29 root
  42169 drwxr-xr-x 3 root root 2048 Sep 1 13:38 sbin
  10041 drwxrwxrwt 14 root root 8192 Feb 2 09:23 tmp
      2 drwxr-xr-x 21 root root 1024 Apr 4 1999 usr
  12049 drwxr-xr-x 15 root root 1024 Sep 21 17:14 var

# rmdir /mov
rmdir: /mov: No such file or directory

# mkdir /mov
mkdir: cannot make directory `/mov': File exists

(Note: the other autofs mountpoints are /rem and /net). Now, fuser
give no user of the /mov directory, and switching to single user and
umounting all but / doesn't change the situation. Nor reboot. I have
to force a fsck on the root partition (that, BTW, goes away without
errors nor warnings) and then the autofs works again.

What kinf of information should I recollect when it will happen again?
To help track down this?

                               Romano.
                               

-- 
Romano Giannetti             -  Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416  fax +34 915 596 569

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



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:08 EST