PROBLEM: umountfs and shutting down linux 2.3.99-pre5

From: Hadmut Danisch (hadmut@danisch.de)
Date: Sun Apr 23 2000 - 10:42:50 EST


1. Local filesystems not properly unmounted when halting a 2.3.99-pre5

2. I found a problem when testing a 2.3.99-pre5 on two machines
   (1: Pentium II/350, 2: Compaq Armada M700 Notebook, Pentium II).

   When halting the machine (from within a X session, this procedure
   worked well with all 1.x, 2.0, 2.1, 2.2 and early 2.3), some of
   the local e2fs file systems are not unmounted properly. This
   results in long file system checks and it twice happend to cause
   serious damage of the file system.

   I have a debian distribution (woody). The file systems are
   unmounted by /etc/rc0.d/S40umountfs:

        #! /bin/sh
        #
        # umountfs Turn off swap and unmount all file systems.
        #
        # Version: @(#)umountfs 2.78 13-Nov-1999 miquels@cistron.nl
        #
        
        PATH=/sbin:/bin:/usr/sbin:/usr/bin
        
        case "`uname -r`" in
          1.*|2.[01].*) FORCE="" ;;
          *) FORCE="-f" ;;
        esac
        
        # Write a reboot record to /var/log/wtmp before unmounting
        halt -w
        
        echo -n "Deactivating swap... "
        swapoff -a
        echo "done."
        
        echo -n "Unmounting file systems... "
        umount $FORCE -a -r
        echo "done."
        
        mount -n -o remount,ro /

  The umount $FORCE -a -r command sometimes can't unmount/remount
  filesytems. An error message says, that these filesystems are still
  in use. When the system is in this state, I can't check whether
  there are still processes running.

3. umount, filesystem, inconsistency

4. 2.3.99-pre5

5. -

6. -

7.1.

        -- Versions installed: (if some fields are empty or look
        -- unusual then possibly you have very old versions)
        Linux ganymed 2.3.99-pre5 #5 Sam Apr 22 21:18:51 CEST 2000 i686 unknown
        Kernel modules 2.3.10
        Gnu C 2.95.2
        Binutils 2.9.5.0.31
        Linux C Library 2.1.3
        Dynamic linker ldd: version 1.9.11
        Procps .
        Mount 2.10f
        Net-tools 2.05
        Kbd 0.99
        Sh-utils 2.0
        Modules Loaded nfs lockd sunrpc autofs pcnet_cs 8390
                               ds i82365 pcmcia_core ipchains uhci usbcore
    

7.2.

      processor : 0
      vendor_id : GenuineIntel
      cpu family : 6
      model : 6
      model name : Mobile Pentium II
      stepping : 10
      cpu MHz : 365.864200
      cache size : 256 KB
      fdiv_bug : no
      hlt_bug : no
      sep_bug : no
      f00f_bug : no
      coma_bug : no
      fpu : yes
      fpu_exception : yes
      cpuid level : 2
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr
                      pge mca cmov pat pse36 mmx fxsr
      bogomips : 730.73

7.3

        nfs 49524 1 (autoclean)
        lockd 41396 1 (autoclean) [nfs]
        sunrpc 60772 1 (autoclean) [nfs lockd]
        autofs 11668 2 (autoclean)
        pcnet_cs 8648 1
        8390 6236 0 [pcnet_cs]
        ds 6728 2 [pcnet_cs]
        i82365 11952 2
        pcmcia_core 40992 0 [pcnet_cs ds i82365]
        ipchains 32140 0 (unused)
        uhci 17876 0 (unused)
        usbcore 46464 1 [uhci]

7.4 -

regards
Hadmut

-
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 : Sun Apr 23 2000 - 21:00:22 EST