How to fix ZFS corruption?


Go to solution Solved by JorgeB,

Recommended Posts

I recently switched to ZFS for my cache because I thought it would be more reliable than BTTRFS. I'm about a month into it and experienced my first corurption already. I'm seeing: PANIC at range_tree.c:436:range_tree_remove_impl()

I am new to zfs. Are there any good recovery methods for ZFS? 

For extra contedt: I've been using 6.12.6 since it came out

syslog

Edited by rum-z
Link to comment
  • Solution

You can try mounting the pool read-only:

 

zpool import -o readonly=on cache

 

if it works, start the array, it will still show up as unmountable but the data should be under /mnt/cache.

 

P.S. having corruption issues with multiple filesystems suggests there can be an underlying hardware issue, like bad RAM

Link to comment

Thank you. Sadly that did not work, I ended up wiping the drives, and starting fresh, back to bttrfs for the cache drive. Thankfully I had backups. I'll look into the bad RAM. I wonder if bad RAM broke the zfs since it uses RAM.

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.