linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.2.18/ext2: special file corruption?
@ 2001-02-26  9:21 Ulrich Windl
  2001-02-26 17:16 ` Walter Hofmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ulrich Windl @ 2001-02-26  9:21 UTC (permalink / raw)
  To: linux-kernel

Hi,

I had an interesting effect: Due to NVdriver I had a lot of system 
freezes, and I had to reboot. Using e2fsck 1.19a (SuSE 7.1) I got the 
message that one specific "Special (device/socket/fifo) inode .. has 
non-zero size. FIXED."

Interestingly I got the message for every reboot. So either the kernel 
corrupts the very same inode every time, or e2fsck does not really fix 
it, or the error simply doesn't exist. I think the kernel doesn't 
temporarily set the size to non-zero, so this seems strange.

Regards,
Ulrich


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.2.18/ext2: special file corruption?
  2001-02-26  9:21 2.2.18/ext2: special file corruption? Ulrich Windl
@ 2001-02-26 17:16 ` Walter Hofmann
  2001-02-26 17:48 ` Andreas Dilger
  2001-02-27  6:53 ` Ulrich Windl
  2 siblings, 0 replies; 4+ messages in thread
From: Walter Hofmann @ 2001-02-26 17:16 UTC (permalink / raw)
  Cc: linux-kernel

Ulrich Windl schrieb am Montag, den 26. Februar 2001:

> I had an interesting effect: Due to NVdriver I had a lot of system 
> freezes, and I had to reboot. Using e2fsck 1.19a (SuSE 7.1) I got the 
> message that one specific "Special (device/socket/fifo) inode .. has 
> non-zero size. FIXED."

I see them too on every fsck (after a crash). I'm using e2fsck 1.19 (but
not from SuSE. The rpm was built on snap.thunk.org, but I can't
remember where I got it from).

Walter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.2.18/ext2: special file corruption?
  2001-02-26  9:21 2.2.18/ext2: special file corruption? Ulrich Windl
  2001-02-26 17:16 ` Walter Hofmann
@ 2001-02-26 17:48 ` Andreas Dilger
  2001-02-27  6:53 ` Ulrich Windl
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2001-02-26 17:48 UTC (permalink / raw)
  To: Ulrich Windl; +Cc: linux-kernel

Ulrich Windl writes:
> I had an interesting effect: Due to NVdriver I had a lot of system 
> freezes, and I had to reboot. Using e2fsck 1.19a (SuSE 7.1) I got the 
> message that one specific "Special (device/socket/fifo) inode .. has 
> non-zero size. FIXED."
> 
> Interestingly I got the message for every reboot. So either the kernel 
> corrupts the very same inode every time, or e2fsck does not really fix 
> it, or the error simply doesn't exist. I think the kernel doesn't 
> temporarily set the size to non-zero, so this seems strange.

It is strange that it thinks ".." is a special inode.  Maybe e2fsck is
fixing the wrong problem (i.e. truncating the directory ".."), and it
later fixes the zero-length directory...  Could you try two things:

1) unmount the filesystem and run e2fsck on the broken filesystem 1 or 2
   times, to see if e2fsck is fixing the problem or not.

2) If it is fixing the problem you need to wait until the next time you have
   a system crash, start in single user mode.  If it is NOT fixing the problem
   you can do this right away.  Run "e2fsck -n" to see which inode number is
   corrupt (the -n option means e2fsck will not fix the filesystem), and then
   run "debugfs /dev/X", type "dump <inode_number>" and "ncheck inode_number"
   at the prompt (note you NEED the <> around the inode number for dump).
   Send the output.

Cheers, Andreas  
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.2.18/ext2: special file corruption?
  2001-02-26  9:21 2.2.18/ext2: special file corruption? Ulrich Windl
  2001-02-26 17:16 ` Walter Hofmann
  2001-02-26 17:48 ` Andreas Dilger
@ 2001-02-27  6:53 ` Ulrich Windl
  2 siblings, 0 replies; 4+ messages in thread
From: Ulrich Windl @ 2001-02-27  6:53 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: linux-kernel

On 26 Feb 2001, at 10:48, Andreas Dilger wrote:

> Ulrich Windl writes:
> > I had an interesting effect: Due to NVdriver I had a lot of system 
> > freezes, and I had to reboot. Using e2fsck 1.19a (SuSE 7.1) I got the 
> > message that one specific "Special (device/socket/fifo) inode .. has 
> > non-zero size. FIXED."
> > 
> > Interestingly I got the message for every reboot. So either the kernel 
> > corrupts the very same inode every time, or e2fsck does not really fix 
> > it, or the error simply doesn't exist. I think the kernel doesn't 
> > temporarily set the size to non-zero, so this seems strange.
> 
> It is strange that it thinks ".." is a special inode.  Maybe e2fsck is

Og course NOT: ``..'' is a meta syntax for ellipsis. I couldn't 
remember the inode number.

> fixing the wrong problem (i.e. truncating the directory ".."), and it
> later fixes the zero-length directory...  Could you try two things:
> 
> 1) unmount the filesystem and run e2fsck on the broken filesystem 1 or 2
>    times, to see if e2fsck is fixing the problem or not.

I did that, and actually it fixed the very same problem again. On a 
second run it was fixed. So either the "-a -t ext2" prevents the 
changes from being written back if the only problem was that special 
file, or there is some corruption undetected by fsck that in turn 
causes the kernel to corrupt the filesystem again and again, or I don't 
know. Here's the log from my tries:

elf:~ # fsck -f /dev/sda6
Parallelizing fsck version 1.19a (13-Jul-2000)
e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Pass 1: Checking inodes, blocks, and sizes
Special (device/socket/fifo) inode 16600 has non-zero size.  Fix<y>? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/sda6: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda6: 35542/86400 files (0.9% non-contiguous), 124965/172690 blocks
elf:~ # fsck -f /dev/sda6
Parallelizing fsck version 1.19a (13-Jul-2000)
e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
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
/dev/sda6: 35542/86400 files (0.9% non-contiguous), 124965/172690 blocks


> 
> 2) If it is fixing the problem you need to wait until the next time you have
>    a system crash, start in single user mode.  If it is NOT fixing the problem
>    you can do this right away.  Run "e2fsck -n" to see which inode number is
>    corrupt (the -n option means e2fsck will not fix the filesystem), and then
>    run "debugfs /dev/X", type "dump <inode_number>" and "ncheck inode_number"
>    at the prompt (note you NEED the <> around the inode number for dump).
>    Send the output.

I'll keep your message. Maybe you hear again from me.

Ulrich


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-27  6:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26  9:21 2.2.18/ext2: special file corruption? Ulrich Windl
2001-02-26 17:16 ` Walter Hofmann
2001-02-26 17:48 ` Andreas Dilger
2001-02-27  6:53 ` Ulrich Windl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).