Package: e2fsprogs
Version: 1.37-2
Severity: important

This was running on a system with a ro / fs changed via remount to rw.
(So /etc/mtab was not real, since nothing rewrote it afterward.)
I don't know if this is relevant - since I did the exact same thing in
the same session to another fs, and that worked fine, created a .journal
file.

/dev/md1 was mounted on /boot and I ran tune2fs -O +has_journal /dev/md1

I then ran find /boot - and got zillions of errors flying across the
screen. To fast to read (and I could not pause it) so I can't tell you
what the error was - it seemed to be two lines of error message identically
repeated.

I reset the computer and ran fsck. The log of the fsck session is
attached. (Created via copy/paste so I hope I didn't miss any lines from
the session.)

This is a three part bug:
a: why did tune2fs mess up
b: you'll notice I had to run fsck twice to get a correct fs
c: the kernel should probably have reacted a little more sensibly to the
error - i.e. don't send zillions of identical messages - kick out the
fs, maybe return an error to the process trying to read, but not tons of
useless messages that effectively froze the machine. (I checked and it was
mounted errors=continue, since that's the default.)

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages e2fsprogs depends on:
ii  e2fslibs                    1.37-2       ext2 filesystem libraries
ii  libblkid1                   1.37-2       block device id library
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libcomerr2                  1.37-2       common error description library
ii  libss2                      1.37-2       command-line interface parsing lib
ii  libuuid1                    1.37-2       universally unique id library

-- no debconf information
e2fsck 1.37 (21-Mar-2005)
Backing up journal inode block information.

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry '.journal' in / (2) has deleted/unused inode 18.  Clear<y>? yes

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(6437--7215) -(7237--7486)
Fix<y>? yes

Free blocks count wrong for group #0 (2495, counted=3524).
Fix<y>? yes

Free blocks count wrong (8986, counted=10015).
Fix<y>? yes

Inode bitmap differences:  -18
Fix<y>? yes

Free inodes count wrong for group #0 (4, counted=5).
Fix<y>? yes

Free inodes count wrong (76, counted=77).
Fix<y>? yes


/boot: ***** FILE SYSTEM WAS MODIFIED *****
/boot: 43/120 files (18.6% non-contiguous), 13089/23104 blocks
(none):~# fsck.ext3 -f -C 0 /dev/md1
e2fsck 1.37 (21-Mar-2005)
Superblock has a bad ext3 journal (inode 18).
Clear<y>? yes

*** ext3 journal has been deleted - filesystem is now ext2 only ***

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/boot: ***** FILE SYSTEM WAS MODIFIED *****
/boot: 43/120 files (18.6% non-contiguous), 13089/23104 blocks

===I re-ran tune2fs to add the journal at this point. (On non mounted.)
   Here is dumpe2fs in case you need it.===

Filesystem volume name:   /boot
Last mounted on:          /boot
Filesystem UUID:          14f773d6-397a-4e7e-9ce0-5cac1ab2de20
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              120
Block count:              23104
Reserved block count:     0
Free blocks:              8985
Free inodes:              77
First block:              1
Block size:               1024
Fragment size:            1024
Blocks per group:         7704
Fragments per group:      7704
Inodes per group:         40
Inode blocks per group:   5
Filesystem created:       Mon Jan 24 07:13:06 2005
Last mount time:          Mon Jul 18 21:32:46 2005
Last write time:          Mon Jul 18 21:36:06 2005
Mount count:              0
Maximum mount count:      21
Last checked:             Mon Jul 18 21:36:06 2005
Check interval:           15552000 (6 months)
Next check after:         Sat Jan 14 20:36:06 2006
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      8436d9eb-b935-4ea0-9841-d80fe238e24d
Journal backup:           inode blocks


Group 0: (Blocks 1-7704)
  Primary superblock at 1, Group descriptors at 2-2
  Block bitmap at 6 (+5), Inode bitmap at 7 (+6)
  Inode table at 8-12 (+7)
  2494 free blocks, 5 free inodes, 2 directories
  Free blocks: 1090-2330, 4671-4690, 5290-5296, 6437-7215, 7237-7673, 7695-7704
  Free inodes: 18, 21, 23, 32, 34
Group 1: (Blocks 7705-15408)
  Backup superblock at 7705, Group descriptors at 7706-7706
  Block bitmap at 7718 (+13), Inode bitmap at 7719 (+14)
  Inode table at 7707-7711 (+2)
  3779 free blocks, 40 free inodes, 0 directories
  Free blocks: 7712-7717, 7720-7746, 11663-15408
  Free inodes: 41-80
Group 2: (Blocks 15409-23103)
  Backup superblock at 15409, Group descriptors at 15410-15410
  Block bitmap at 15430 (+21), Inode bitmap at 15431 (+22)
  Inode table at 15411-15415 (+2)
  2712 free blocks, 32 free inodes, 0 directories
  Free blocks: 15416-15429, 15432-15474, 15857-16174, 16176-18493, 21162-21180
  Free inodes: 83, 90-120

Reply via email to