Wrong free inodes count in kernels 2.0 and 2.2

Wrong free inodes count in kernels 2.0 and 2.2

Post by Ville Herv » Fri, 10 Aug 2001 07:10:10



On Wed, May 02, 2001 at 07:46:21PM +0300, [Samuli K?rkk?inen] claimed:

Quote:> I get repeatably both in 2.0 and 2.2 serieses of kernels the following kind
> of errors:

> 2.2 kernels (several, including 2.2.18):
>   EXT2-fs error (device ide1(22,6)): ext2_check_inodes_bitmap: Wrong free inodes count in group 768, stored = 984, counted = 717
>   EXT2-fs error (device ide1(22,6)): ext2_check_inodes_bitmap: Wrong free inodes count in group 769, stored = 1005, counted = 717
>   EXT2-fs error (device ide1(22,6)): ext2_check_inodes_bitmap: Wrong free inodes count in group 777, stored = 998, counted = 901
>   [ many similar lines deleted ]

> and sometimes with 2.2 kernel, soon after the errors above:
>   EXT2-fs error (device ide1(22,1)): ext2_new_inode: Free inodes count corrupted in group 414
>   last message repeated 795 times

I get these messages as well on 2.2.18pre19:

EXT2-fs error (device md(9,0)): ext2_new_inode: Free inodes count
corrupted in group 501                                                                  
EXT2-fs error (device md(9,0)): ext2_new_inode: Free inodes count
corrupted in group 501                                                                  

I've applied ide, raid and ext2compr patches. While they sound like strong
suspects for they cause of the problem (the fs in question is on ide,
softraid 1 and is ext2compr'ed), I understand Samuli sees these messages on
a stock kernel (ide and scsi), which makes me suspect this is a core kernel
issue.

I've been running fairly heavy rsync backups onto the fs in question for
more than a year, and only now I have begun to get these errors.

Quote:> problem always comes back. The backup script is essentially like this:

> following night second differential:
>   cp -al /backup/backup2 /backup/backup3
>   rsync --archive --hard-links --whole-file --sparse --one-file-system --delete --force / /backup/backup3

My backup script is a tad different, but the principle is the same: do an
initial snapshot, then cp -al it as the next day's snapshot and rsync the new
snapshot up to date. This of course introduces huge number of dir entries
and lots of inodes with big hard link counts.

BTW: What happens if the hard link count for an inode overflows?

-- v --


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Wrong free inodes count in kernels 2.0 and 2.2

Post by Ville Herv » Fri, 10 Aug 2001 16:40:09


On Thu, Aug 09, 2001 at 01:06:01AM +0300, you [Ville Herva] claimed:

Quote:> On Wed, May 02, 2001 at 07:46:21PM +0300, [Samuli K?rkk?inen] claimed:
> > I get repeatably both in 2.0 and 2.2 serieses of kernels the following kind
> > of errors:

> > 2.2 kernels (several, including 2.2.18):
> >   EXT2-fs error (device ide1(22,6)): ext2_check_inodes_bitmap: Wrong free inodes count in group 768, stored = 984, counted = 717
> >   EXT2-fs error (device ide1(22,6)): ext2_check_inodes_bitmap: Wrong free inodes count in group 769, stored = 1005, counted = 717
> >   EXT2-fs error (device ide1(22,6)): ext2_check_inodes_bitmap: Wrong free inodes count in group 777, stored = 998, counted = 901
> >   [ many similar lines deleted ]

> > and sometimes with 2.2 kernel, soon after the errors above:
> >   EXT2-fs error (device ide1(22,1)): ext2_new_inode: Free inodes count corrupted in group 414
> >   last message repeated 795 times

> I get these messages as well on 2.2.18pre19:

> EXT2-fs error (device md(9,0)): ext2_new_inode: Free inodes count
> corrupted in group 501                                                                  
> EXT2-fs error (device md(9,0)): ext2_new_inode: Free inodes count
> corrupted in group 501                                                                  

I was just wondering, could this be the same bug Daniel Phillips described
in thread "[PATCH] Re: 2.4.0-test11 ext2 fs corruption":

http://groups.google.com/groups?q=2.4.0-test11+ext2+fs+corruption+gro...
http://groups.google.com/groups?hl=en&safe=off&th=cbe5e86866187b4,4&r...

and that was fixed in 2.4.0-test time?

A google search shows a number of people are seeing this error so it would be
nice to get the fix for 2.2 (and even 2.0), too...

http://www.google.com/search?q=ext2_new_inode%3A+Free+inodes+count+co...

-- v --


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. RH5.0 Wrong free inodes count (Help!)

running Redhat 5.0 installation software using RH v5.0 CD-ROM
(and yes, I have contacted thier TS via email, but...)

(LDLINUX 1.30 96/11/04)
(Redhat install version 1.2 built Nov 9 1997)

I appear to get through the file system initialization, but...

displayed in the installation dialog (Alt-F1):
Kernel panic: VFS: Unable to mount root fs on 08:05

The system log (Alt-F4) shows a whole series of errors such as:
...
<2> EXT2-fs error (device 03:01: ext_check_inodes_bitmap: in group 12,
stored = 1984, counted = 1725

the last part of the install log (Alt-F3):
...
* creating directory /mntswap
* creating directory /mntswap rcd = 0
* creating directory /mntswap
* opened /mnt/tmp/install.log
* reading /usr/lib/rpmrc
*       done
* opened rpn database    

other messages (Alt-F5)ends with:
...
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

System description:

Pentium 100MHz
Award Modular BIOS v4.50PG
Pentium PCI/ISA System BIOS Rev:B01
Award Plug'n'Play BIOS Extension v1.0A
64Mb RAM

Disks:
Floppy 3.5" 1.44M
hda: 1.2G (620/64/63/512) LBA
hdb: 1.2G (621/64/63/512) LBA
hdc: Teac (12x?) ATAPI CD-ROM

Partitions (created with fdisk):
hda1    100M    /
hda2    500M    /usr
hda3    64M     swap
hdax    558M    (as yet unallocated)
hdb1    400M    /home
hdb2    64M     swap
hdb3    300M    /tmp
hdb4    450M    /var            

Any pointers gratefully accepted.
- Roger Neyman

2. Non-Exec Stacks in Solaris 2.6 Question

3. free inode count wrong in superblk

4. Can I tell if it is hardware related?

5. for 2.2.x i386 Linux kernel DoS - Affects 2.2.x and probably 2.0.x

6. Joystick-Port for Input ?

7. Wrong fre inodes count. Help!!!

8. HP PPA printer language, Liunux supported???

9. Can you use the NTFS module from 2.2 kernel to 2.0 kernel?

10. upgrade kernel 2.2 from kernel 2.0.x without install redhat 6.0

11. modify driver of kernel 2.2.x to kernel 2.0.x

12. Free blocks count wrong

13. Repeated EXT2 errors: wrong free block count