All of lore.kernel.org
 help / color / mirror / Atom feed
* Block corruption
@ 2004-06-08 13:36 Andrew Snare
  2004-06-08 14:12 ` Vladimir Saveliev
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Snare @ 2004-06-08 13:36 UTC (permalink / raw)
  To: reiserfs-list; +Cc: Paul Wagland

Hi,

After a few 2.6.6 oopsen and --rebuild-trees on some filesystems, we've
still got some bad-block errors that are proving troublesome. In
particular, we appear to have 3 bad blocks:

vs-5150: search_by_key: invalid format found in block 5963192. Fsck?
vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to
find stat data of [52570 52653 0x0 SD]
vs-5150: search_by_key: invalid format found in block 5946544. Fsck?
vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to
find stat data of [46770 46771 0x0 SD]
vs-5150: search_by_key: invalid format found in block 10058201. Fsck?
vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to
find stat data of [111684 111687 0x0 SD]

It's a hardware RAID-5 configuration that has no errors, so we know
it's not a hardware problem; this points to corruption in one or more of
our 11 reiserfs filesystems.

Is it possible to:

1) Work out which of the 11 filesystems these errors are referring to?
Preferably while the system is mounted. I see a block number, but
several of our filesystems are large enough to have a block number that
big.
2) Work out which directory/file is corrupted? In the past whenever we
did a --rebuild-tree we ended up with quite a lot of stuff in
lost+found, so we'd like to try and work out where it's coming from if
possible.

Thanks in advance,

 - Andrew Snare

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Block corruption
@ 2004-06-08 14:31 Andrew Snare
  2004-06-08 15:55 ` Vladimir Saveliev
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Snare @ 2004-06-08 14:31 UTC (permalink / raw)
  To: vs; +Cc: Paul Wagland, reiserfs-list

Vladimir Saveliev suggested:
> Well, reiserfs needs to include device name into its warnings
> Until it is not done you might want to do
> 
> find /mountpoint -inum 52653 
> for each of your reiserfs filesystem.

That number comes from the vs-13070 messages. They're of the form:
> vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to
> find stat data of [52570 52653 0x0 SD]

What are these numbers near the end? You've referred to the second as
the inode, but we'd like to understand more clearly what's going on.

Cheers,

 - Andrew

^ permalink raw reply	[flat|nested] 14+ messages in thread
* block corruption
@ 2019-08-31 18:19 Rann Bar-On
  2019-08-31 20:26 ` Rann Bar-On
  0 siblings, 1 reply; 14+ messages in thread
From: Rann Bar-On @ 2019-08-31 18:19 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I have a btrfs filesystem with a corrupt block. After finding errors
such as 

BTRFS critical (device nvme0n1p6): corrupt leaf: root=5
block=154977681408 slot=19 ino=8708079, invalid mode: has 00 expect
valid S_IF* bit(s)

spamming my dmesg, I examined the block with 

btrfs-debug-tree -b 154977681408 /dev/nvme0n1p6

I found the source of the error in this line:

item 19 key (8708079 INODE_ITEM 0) itemoff 14769 itemsize 160   inode 
generation 292430 transid 292449 size 0 block group 0 mode 0 links 1
uid 0 gid 0 rdev 0 flags 0x0

I then ran 

find <mount point> -type f -exec cp {} /dev/null \;

to look for corrupt files. Almost all files that appeared in the list
also appeared in the btrfs-debug-tree command above.

I conclude that this block is corrupt.

Two questions:

1. Given that none of the files in the list are critical, I'd like to
remove the block, or at least the files. Is this possible? How?

2. Is this an indicator of a problem with the drive? smartctl does not
give errors, nor does scrubbing the file system.

More info below:

# uname -a
Linux debian-x1yoga 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21)
x86_64 GNU/Linux

#   btrfs --version
Btrfs v3.17

#   btrfs fi show
Label: none  uuid: 91624ec9-49ef-469e-a949-7699dc681c52
        Total devices 1 FS bytes used 13.27GiB
        devid    1 size 19.26GiB used 16.03GiB path /dev/nvme0n1p2

Label: none  uuid: 4133c951-4327-4040-83ed-9e8a71270cc2
        Total devices 1 FS bytes used 6.85GiB
        devid    1 size 9.93GiB used 9.51GiB path /dev/nvme0n1p3

Label: none  uuid: be5b72e2-5cd1-498e-b38c-d83b10548ef3
        Total devices 1 FS bytes used 174.09GiB
        devid    1 size 182.99GiB used 182.99GiB path /dev/nvme0n1p6

Label: none  uuid: bbba344c-b256-4509-ac49-4b69b1a73607
        Total devices 1 FS bytes used 1.93MiB
        devid    1 size 381.00MiB used 381.00MiB path /dev/nvme0n1p5

Btrfs v3.17

# btrfs fi df /home
Data, single: total=180.98GiB, used=173.41GiB
System, single: total=4.00MiB, used=48.00KiB
Metadata, single: total=2.01GiB, used=698.38MiB
GlobalReserve, single: total=512.00MiB, used=0.00B

The only error in dmesg is the one referred to above.

I appreciate any help! 

Cheers,
Rann


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

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

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 13:36 Block corruption Andrew Snare
2004-06-08 14:12 ` Vladimir Saveliev
  -- strict thread matches above, loose matches on Subject: below --
2004-06-08 14:31 Andrew Snare
2004-06-08 15:55 ` Vladimir Saveliev
2019-08-31 18:19 block corruption Rann Bar-On
2019-08-31 20:26 ` Rann Bar-On
2019-08-31 23:04   ` Chris Murphy
2019-08-31 23:39     ` Rann Bar-On
2019-08-31 23:48       ` Qu Wenruo
2019-09-01 17:39         ` Rann Bar-On
2019-09-01 20:09           ` Chris Murphy
2019-09-01 20:35             ` Rann Bar-On
2019-09-02  5:33               ` Qu Wenruo
2019-09-02  6:27                 ` Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.