Chyby na filesystemu ext2

Jakub Dadak dadman na brainsys.cz
Čtvrtek Prosinec 9 11:07:30 CET 1999


Zdravim,

 podleni dobou se mi velice casto hrouti filesystem na jednom
stroji, jehoz jednou z cinnosti je schranovat informace pomoci
mrtg. Tento stroj je skutecne 100% vytizen, nebo dokonce
pretizen vypoctem stovek gifu (asi 1000) kazdych 5 minut a
spousto dalsi uloh. Pri vypoctu tech gifu-grafu mrtg dochazi
jednou za par dni k chybam ext2, ktere pro ls -al vypadaji
asi takto:

....
rw-r--r--   1 web      web          3151 Dec  9 10:52 c137-day.gif
c---rw---- 13873 2608     13364     52,  57 Feb 11  1987 c137-month.gif
-rw-r--r--   1 web      web          2144 Dec  9 10:38 c137-week.gif
?--Srw---T 12338 13369    13360    909128756 Jun  2  1975 c137-year.gif
-rw-r--r--   1 web      web          6975 Dec  9 10:52 c137.html
-rw-r--r--   1 web      web         45662 Dec  9 10:52 c137.log
-rw-r--r--   1 web      web         45662 Dec  9 10:47 c137.old
-rw-r--r--   1 web      web          3151 Dec  9 10:52 c138-day.gif
?r--rwSr-- 8240 12344    8240     540028976 Apr 15  1998 c138-month.gif
-rw-r--r--   1 web      web          2144 Dec  9 10:38 c138-week.gif
?r--rwSrwt 8240 12345    8240     540024880 May 10  1999 c138-year.gif
-rw-r--r--   1 web      web          6975 Dec  9 10:52 c138.html
-rw-r--r--   1 web      web         45662 Dec  9 10:52 c138.log
-rw-r--r--   1 web      web         45662 Dec  9 10:47 c138.old
-rw-r--r--   1 web      web          3151 Dec  9 10:52 c139-day.gif
c---rw---- 2608 8240     8240      32,  48 Feb 11  1987 c139-month.gif
-rw-r--r--   1 web      web          2144 Dec  9 10:38 c139-week.gif
c---rw---- 13369 8240     2608      32,  48 Feb 11  1987 c139-year.gif
-rw-r--r--   1 web      web          6975 Dec  9 10:52 c139.html
-rw-r--r--   1 web      web         45662 Dec  9 10:52 c139.log
...

Nevylucuji, ze nemuze nastat pripad, ze by dva procesy psaly do stejneho
souboru, ale to by snad melo ostarit jadro ne ?

fsck mi psal, ze chyba muze byt zpusobena starym jadrem, ktere tam skutecne
bylo 2.0.0, tak jsem provedl upgrade na 2.0.38 a probelmy pretrvaly.
Ted uz pracuje fsck bez zbytecnych reci asi takto:

Pass 1: Checking inodes, blocks, and sizes

Deleted inode detected with non-zero link count.
This is probably due to old ext2fs kernel code.
Fix inode(s)<y>? yes

Inode 199761 is deleted w/ non-zero link_count.  CLEARED
Inode 199762 is deleted w/ non-zero link_count.  CLEARED
Inode 199763 is deleted w/ non-zero link_count.  CLEARED
Inode 199764 is deleted w/ non-zero link_count.  CLEARED
Inode 199765 is deleted w/ non-zero link_count.  CLEARED
Inode 199766 is deleted w/ non-zero link_count.  CLEARED
Inode 199767 is deleted w/ non-zero link_count.  CLEARED
Inode 199768 is deleted w/ non-zero link_count.  CLEARED
Inode 199769 is deleted w/ non-zero link_count.  CLEARED
Inode 199770 is deleted w/ non-zero link_count.  CLEARED
Inode 199771 is deleted w/ non-zero link_count.  CLEARED
Inode 199772 is deleted w/ non-zero link_count.  CLEARED
Inode 199773 is deleted w/ non-zero link_count.  CLEARED
Inode 199774 is deleted w/ non-zero link_count.  CLEARED
Inode 199775 is deleted w/ non-zero link_count.  CLEARED
Inode 199776 is deleted w/ non-zero link_count.  CLEARED
Pass 2: Checking directory structure
Entry 'c137-month.gif' in /two/www/docs/mrtgx (198675) has deleted/unused
inode 199767.
Clear<y>? yes

Entry 'c137-year.gif' in /two/www/docs/mrtgx (198675) has deleted/unused
inode 199768.
Clear<y>? yes

Entry 'c138-month.gif' in /two/www/docs/mrtgx (198675) has deleted/unused
inode 199770.
Clear<y>? yes

Entry 'c138-year.gif' in /two/www/docs/mrtgx (198675) has deleted/unused
inode 199771.
Clear<y>? yes

Entry 'c139-month.gif' in /two/www/docs/mrtgx (198675) has deleted/unused
inode 199773.
Clear<y>? yes

Entry 'c139-year.gif' in /two/www/docs/mrtgx (198675) has deleted/unused
inode 199774.
Clear<y>? yes

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Fix summary information<y>? yes

Block bitmap
differences: -796172 -796174 -796175 -796176 -796179 -796180 -796181 -796365
 -796366 -796367 -796439 -796440 -796578 -797374 -797376 -797377 -797409 -79
7416.  FIXED
Free blocks count wrong for group 97 (0, counted=18).  FIXED
Free blocks count wrong (428662, counted=428680).  FIXED
Inode bitmap differences: -199767 -199768 -199770 -199771 -199773 -199774.
FIXED
Free inodes count wrong for group #97 (1049, counted=1055).  FIXED
Free inodes count wrong (345962, counted=345968).  FIXED

/dev/hda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/hda1: 32912/378880 files (5.6% non-contiguous), 1083288/1511968 blocks
===============================

Kde tedy muze byt problem ?

            Diky
                    Jd

--
  ,{(~)~(},       Dadak Jakub             Brain Systems s.r.o.
,( ((~) ){){}     dadman na brainsys.cz      Rybkova 1, Brno 602 00
())~{)}{{}~()}    http://www.dadak.cz     http://www.brainsys.cz
`~^    ^~{()}     Tel. +420 5 41148704    Fax. +420 5 41148852
           ~~     Motto:                  Things are different !









Další informace o konferenci Linux