linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to fix/remove "csum failed ino" error
@ 2013-11-07 14:42 Anatol Pomozov
  2013-11-07 16:41 ` Frank Holton
  0 siblings, 1 reply; 13+ messages in thread
From: Anatol Pomozov @ 2013-11-07 14:42 UTC (permalink / raw)
  To: linux-btrfs

Hi

I use Linux Arch, kernel 3.11.6.

Recently I had a disk crash and number of my files got corrupted. To
avoid this situation again I added more disks I trying to convert the
data to raid1:

# btrfs balance start -dconvert=raid1 -mconvert=raid1 /

But unfortunately it fails with IO erro. In dmesg I see

[ 5374.216320] BTRFS info (device sda3): csum failed ino 362 off
4993024 csum 1283121890 private 3720296651
[ 5374.219656] BTRFS info (device sda3): csum failed ino 362 off
5242880 csum 857237386 private 2562492866
[ 5374.222628] BTRFS info (device sda3): csum failed ino 362 off
5767168 csum 645194099 private 3149624654
[ 5374.223068] BTRFS info (device sda3): csum failed ino 362 off
4993024 csum 1283121890 private 3720296651

I looks like some files are corrupted. I would like either
fix/regenerate those files (e.g. reinstall from packages) or remove
them (as they corrupted anyway).

But I need to know what are these files. "ino 362" mentioned in the
message does not exist on the file system:

# find / -mount -inum 362
finds nothing.

So I assume this ino is some internal identifier. I checked function
btrfs_ino() from btrfs_inode.h and the output value can be either
BTRFS_I(inode)->location.objectid
or
inode->i_ino

I believe 362 is BTRFS_I(inode)->location.objectid

So my question is how to find a file that has this id corresponding?
How to remove this object and finally make the raid1 conversion? Also
is it possible to improve the error message so users can find failing
objects (e.g. include the real inode number)?

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

end of thread, other threads:[~2013-11-16 22:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07 14:42 How to fix/remove "csum failed ino" error Anatol Pomozov
2013-11-07 16:41 ` Frank Holton
2013-11-08  4:07   ` Anatol Pomozov
2013-11-08  4:55     ` Anatol Pomozov
2013-11-08  5:27       ` Frank Holton
2013-11-08  5:56         ` Chris Murphy
2013-11-08  8:13           ` Hugo Mills
2013-11-08 17:22             ` Chris Murphy
2013-11-09  2:50         ` Anatol Pomozov
2013-11-16 12:06           ` Anatol Pomozov
2013-11-16 12:23             ` Hugo Mills
2013-11-16 20:54               ` Duncan
2013-11-16 22:17                 ` Chris Murphy

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).