[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Inconsistent ext3fs after crash (2.2.19/0.0.7a)



On Mon, Jun 18, 2001 at 09:22:22PM +1000, Andrew Morton wrote:
> Florian Lohoff wrote:
> > 
> > It seems its an fsck bug:
> 
> Looks like it.  I've been meaning to get better acquainted
> with e2fsprogs - I'll take a look later in the week.
> 
> Of course, my standalone /var doesn't do it.  grr...
> 
> Is there any chance you could make a copy of the
> partition available on a server so others can grab it?
> 
> 	dd /dev/hda8 | gzip > some_server

Ok - done - I cleaned the /var before and moved to a small 50MB 
device 

dd if=/dev/zero of=/dev/hda11
sync
mke3fs -j /dev/hda11
sync
mount /dev/hda11 /mnt2
( cd /var ; tar --exclude-from /root/var-exclude -cvf - * ) | (cd /mnt2 ; tar -xvf - )
sync
umount /mnt2

Rebooted with the "new" /var - Let the machine crash, rebooted
with init=/bin/sh - dd'ed the hda11 to a file.


I now tried to fsck the file which gives me the inconsistancy:

paradigm:/tmp# ls -la
total 53100
drwxrwxrwt    3 root     root         2048 Jun 18 15:42 .
drwxr-xr-x   20 root     root         1024 Jun 18  2001 ..
-rw-r--r--    1 root     root     54157312 Jun 18 15:42 hda11
drwxr-xr-x    2 root     root         1024 Dec 19  2000 lost+found
paradigm:/tmp# fsck.ext3 hda11
e2fsck 1.21-WIP, 01-Jun-2001 for EXT2 FS 0.5b, 95/08/09
hda11: recovering journal
Clearing orphaned inode 5923 (uid=0, gid=0, mode=020600, size=0)
Illegal block #0 (65025) found in orphaned inode 5923.
hda11 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 5921 has zero dtime.  Fix<y>? yes

Inodes that were part of a corrupted orphan linked list found.  Fix<y>? yes

Inode 5923 was part of the orphaned inode list.  FIXED.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Inode bitmap differences:  -5921 -5923
Fix<y>? yes

Free inodes count wrong for group #3 (1542, counted=1544).
Fix<y>? yes

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


hda11: ***** FILE SYSTEM WAS MODIFIED *****
hda11: 2372/13272 files (0.2% non-contiguous), 19227/52888 blocks


The filesystem dd/bzip2 can be found at

ftp /http://source.rfc822.org/pub/local/hda11.bz2

Its ~3MB.

Flo
-- 
Florian Lohoff                  flo rfc822 org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]