Can't repair cache pool


bonienl

Recommended Posts

This morning I received an email stating the fstrim on my cache failed.

I stopped and restarted the array in maintenance mode to peform a file system check.

It tells there are errors found.

checking extents
incorrect offsets 15700 15647
bad block 7558660112384
ERROR: errors found in extent allocation tree or chunk allocation
checking free space cache
checking fs roots
incorrect offsets 15700 15647
root 5 inode 5639768 errors 400, nbytes wrong
root 5 inode 5671907 errors 2001, no inode item, link count wrong
	unresolved ref dir 257 index 31 namelen 8 name heimdall filetype 2 errors 4, no inode ref
root 5 inode 5688390 errors 2001, no inode item, link count wrong
	unresolved ref dir 7518 index 4935 namelen 46 name f72891df83118db63bb1d2baefe6748e128519.content filetype 1 errors 4, no inode ref
root 5 inode 5691696 errors 2001, no inode item, link count wrong
	unresolved ref dir 7584 index 3125 namelen 46 name ddd6d771f141834a48d34de7040c12cade34d8.content filetype 1 errors 4, no inode ref
root 5 inode 5735288 errors 2001, no inode item, link count wrong
	unresolved ref dir 390 index 40 namelen 21 name 1.12.0.4829-6de959918 filetype 2 errors 4, no inode ref
root 5 inode 5762176 errors 2001, no inode item, link count wrong
	unresolved ref dir 263296 index 17 namelen 32 name 1b021d186d4c5ea6b9bf6522c003fb28 filetype 2 errors 4, no inode ref

Next I run the btrfs --repair option to do a repair, it starts with shifting items but ends with an error (see below)

Shifting item nr 80 by 53 bytes in block 7558660997120
Shifting item nr 81 by 53 bytes in block 7558660997120
Shifting item nr 82 by 53 bytes in block 7558660997120
Shifting item nr 83 by 53 bytes in blocitems overlap, can't fix
check/main.c:3949: fix_item_offset: BUG_ON `ret` triggered, value -5
/sbin/btrfs[0x455e75]
/sbin/btrfs[0x40de1f]
/sbin/btrfs[0x413ca0]
/sbin/btrfs[0x414a62]
/sbin/btrfs[0x415024]
/sbin/btrfs(cmd_check+0x1114)[0x458704]
/sbin/btrfs(main+0x7d)[0x4172ad]
/lib64/libc.so.6(__libc_start_main+0xeb)[0x152cff3e20ab]
/sbin/btrfs(_start+0x2a)[0x4173ba]

I need some expert help to do manual (CLI) repair.

Thanks.

 

Link to comment
  • 1 year later...
2 hours ago, johnnie.black said:

This usually means there's a hardware problem, like bad RAM, you can try xfs, it's more robust, but if there are RAM errors it will still corrupt data.

Think I have a corrypt ram slott. Used 3 sticks. Removed one and are now waiting to see. Will get a new computer when shops are open again.

Cheers

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.