Skip to contentSkip to conversation

Unfixable XFS defect - fatal error -- can't read block 16777216

DISCUSSION Martin Steigerwald 1 participant 2 messages Jul 17, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

today I got a "E: Bus error" on my workstation and KDE went down as well as no files were accessible anymore. Like trying to run "bash" gives "Input/Output error". I have no idea what this was, why it happened and found no mention of it in the syslog.

I booted into Knoppix 5 and did an XFS check on the partition just to make sure it is okay. Well the root partition has some problems:

root@1[~]# xfs_check /dev/sda6
agi unlinked bucket 1 is 100033 in ag 0 (inode=100033)
[... some more of these ...]
bad free block nused 3 should be 8 for dir ino 58973313 block 16777216
[... I thought things like this shouldn't happen anymore)
missing free index for data block 0 in dir ino 100884318
missing free index for data block 1 in dir ino 100884318
missing free index for data block 2 in dir ino 100884318
missing free index for data block 3 in dir ino 100884318
missing free index for data block 4 in dir ino 100884318
missing free index for data block 5 in dir ino 100884318
missing free index for data block 6 in dir ino 100884318
missing free index for data block 7 in dir ino 100884318
missing free index for data block 8 in dir ino 100884318
missing free index for data block 9 in dir ino 100884318
missing free index for data block 10 in dir ino 100884318
missing free index for data block 11 in dir ino 100884318
missing free index for data block 12 in dir ino 100884318
missing free index for data block 13 in dir ino 100884318
missing free index for data block 14 in dir ino 100884318
missing free index for data block 32 in dir ino 100884318
agi unlinked bucket 2 is 964930 in ag 13 (inode=110016834)
allocated inode 207228 has 0 link count
[... some more of these ...]

Does not seem to be a big problem, but xfs_repair cannot repair it:

Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- ensuring existence of lost+found directory
- traversing filesystem starting at / ...

fatal error -- can't read block 16777216 for directory inode 100884318

I darkly recall having read about this problem here before, but I do not find the relevant mail anymore. Can anyone give me a pointer on where to look?

I am using kernel:

mango:~# uname -a
Linux mango 2.6.17.3-workstation-sws2-2.2.6-xfs-fix #1 PREEMPT Thu Jul 6 
12:50:38 CEST 2006 i686 GNU/Linux

which has the fix from
http://bugzilla.kernel.org/show_bug.cgi?id=6757

on a Dell Dimension 5100 with SATA controller:

mango:/home_lokal/ms# lspci
0000:00:00.0 Host bridge: Intel Corporation 945G/P Memory Controller Hub (rev 
02)
0000:00:01.0 PCI bridge: Intel Corporation 945G/P PCI Express Graphics Port 
(rev 02)
0000:00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High 
Definition Audio Controller (rev 01)
0000:00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express 
Port 1 (rev 01)
0000:00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
#1 (rev 01)
[... some more of these ...]
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
0000:00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC 
Interface Bridge (rev 01)
0000:00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE 
Controller (rev 01)
0000:00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) 
Serial ATA Storage Controllers cc=IDE (rev 01)
0000:00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller 
(rev 01)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 
[Radeon X300 (PCIE)]
0000:01:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]
0000:03:08.0 Ethernet controller: Intel Corporation 82801G (ICH7 Family) LAN 
Controller (rev 01)

Regards,

Signature · 2 lines
Martin Steigerwald - team(ix) GmbH - http://www.teamix.de
gpg: 19E3 8D42 896F D004 08AC A0CA 1E10 C593 0399 AE90
#1 lore raw

Am Montag, 17. Juli 2006 11:05 schrieben Sie:

Quoted 3 lines

I darkly recall having read about this problem here before, but I do not find the relevant mail anymore. Can anyone give me a pointer on where to look?

Hello,

I found it:
http://oss.sgi.com/bugzilla/show_bug.cgi?id=631

Mailing list thread:
XFS crashed twice, once in 2.6.16.20, next in 2.6.17, reproducable

I read that using xfs_repair 2.7.18 might help. I didnt found this in the ftp area thus I compiled xfsprogs 2.8.4 under Knoppix 5 and tried with that. Unfortunately it isn't able to fix the defect. It shows the same error message as the older xfs_repair in Knoppix 5.

The partition in question is 20 gigs. I can create a backup of it, but only with partimage which can compress, as I have no 20gig in one place free on that harddisk. Tell me when you are interested.

I like to know how I can fix this in place however - the manual way of fixing it which is described in the mailing list thread I mentioned above did not work according to what I read there.

If nothing else helps I will replay a backup.

Regards,

Signature · 2 lines
Martin Steigerwald - team(ix) GmbH - http://www.teamix.de
gpg: 19E3 8D42 896F D004 08AC A0CA 1E10 C593 0399 AE90