Jump to content
XPEnology Community
  • 0

Ways to recover crashed Btrfs volume?


Question

Posted

After a power failure, my main volume went into "crashed" state. This volume contained all the main files, as well as all applications. I have backups of important files, but no backups of applications, and setting them up again is very time-consuming and difficult.

 

My Xpenology is installed in a virtualization environment (ESXi).

 

I would really like to return everything to its original state. I have read many articles and recovery methods, but none of them work for me.

 

image.thumb.png.b48240504e48152b60228056296165a5.pngimage.thumb.png.708b526fdd3c7e5e39388d91802c7576.png

~# btrfs fi show -d
Label: '2023.06.05-19:54:16 v64561'  uuid: 63832383-0407-45db-b727-75fd04f545ed
        Total devices 1 FS bytes used 765.58GiB
        devid    1 size 1.35TiB used 796.02GiB path /dev/mapper/cachedev_1

Label: '2023.06.05-19:54:33 v64561'  uuid: 8db7f514-8914-4a51-9148-fcc2bc05340e
        Total devices 1 FS bytes used 3.36TiB
        devid    1 size 3.62TiB used 3.49TiB path /dev/mapper/cachedev_0

Label: '2023.06.05-19:43:57 v64561'  uuid: cdc33873-8b6c-478f-bff3-02ed855b3b07
        Total devices 1 FS bytes used 814.03GiB
        devid    1 size 1.76TiB used 868.02GiB path /dev/mapper/cachedev_2

 

~# btrfsck /dev/mapper/cachedev_2
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
Ignoring transid failure
Couldn't setup extent tree
Couldn't open file system

 

https://stackoverflow.com/questions/46472439/fix-btrfs-btrfs-parent-transid-verify-failed-on

 

~# mount -t btrfs -o ro,usebackuproot /dev/mapper/cachedev_2 /volume1
mount: /volume1: wrong fs type, bad option, bad superblock on /dev/mapper/cachedev_2, missing codepage or helper program, or other error.

 

https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/XCLAIJ7FUHZUBQIKJPU6VXJAOICKSTOT/

From this article I tried all the steps, not one worked, giving out different errors.

 

btrfs rescue chunk-recover

errors out with "couldn't open RDWR because of unsupported option features".

 

~# btrfs check --clear-space-cache v2 /dev/mapper/cachedev_2
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
parent transid verify failed on 905269411840 wanted 2591264 found 2591272
Ignoring transid failure
Couldn't setup extent tree
Couldn't open file system

 

Maybe someone else will have ideas for how to restore volume? Thank you in advance.

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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

×
×
  • Create New...