linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Wimmer <telefonchris@icloud.com>
To: Hugo Mills <hugo@carfax.org.uk>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: is this the right place for a question on how to repair a broken btrfs file system?
Date: Thu, 5 Dec 2019 17:42:55 -0300	[thread overview]
Message-ID: <61D37CED-8564-49BC-9388-4A8511C3AC50@icloud.com> (raw)
In-Reply-To: <20191205202449.GH4760@savella.carfax.org.uk>

Hi Hugo,

I am so happy to hear your voice!

I would be very happy if you could help me get my filesystem back working.

Here is my setup (little special):

Mac Mini 2018
Inside Mac Mini I run Parallels and inside Parallels I run Suse 15.2
Promise Pegasus R8 with 32TB, divided into a 24TB and 4TB partition formatted under Mac OS.
Inside Promise Pegasus Storage (the 24TB Partition) I have the virtual disc that is attached to the Parallels Linux.
This virtual disc is formatted with btrfs and appears in Linux under:

Disk /dev/sde: 11.7 TiB, 12884901888000 bytes, 25165824000 sectors
Disk model: Linux_raid5_12tb
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 2EFA3FA4-8849-40CE-A065-6CDF3581894B

Device     Start         End     Sectors  Size Type
/dev/sde1   2048 25165821951 25165819904 11.7T Linux filesystem


When I try to mount it this happens:

# mount /dev/sde1 /home/promise/
mount: /home/promise: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.
# 

dmesg says:
[ 2376.180819] BTRFS info (device sde1): disk space caching is enabled
[ 2376.180820] BTRFS info (device sde1): has skinny extents
[ 2376.275469] BTRFS error (device sde1): bad tree block start 14275350892879035392 5349895454720
[ 2376.283339] BTRFS error (device sde1): bad tree block start 14275350892879035392 5349895454720
[ 2376.344799] BTRFS error (device sde1): open_ctree failed


The command btrfs restore tells:

linux-ze6w:/home/chris # btrfs restore -x /dev/sde1 test/
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
bad tree block 5349895454720, bytenr mismatch, want=5349895454720, have=14275350892879035392
Couldn't setup device tree
Could not open root, trying backup super
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
bad tree block 5349895454720, bytenr mismatch, want=5349895454720, have=14275350892879035392
Couldn't setup device tree
Could not open root, trying backup super
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
checksum verify failed on 5349895454720 found B80B9FA8 wanted C61C3C00
bad tree block 5349895454720, bytenr mismatch, want=5349895454720, have=14275350892879035392
Couldn't setup device tree
Could not open root, trying backup super
linux-ze6w:/home/chris # btrfs restore -v /dev/sde1 test/


Now what I did in order for all this to happen was the following:

I was editing a file inside Linux with sublime_text.
Inside this editor I wanted to "replay macro” and the command for it is CTRL-ALT-SHIFT-Q which is the same command for rebooting the MAC.
When I pressed that command it was already too late and my Mac began to reboot, doing a suspend of the virtual machine.
So far so good.
I rebooted the MAC and started Parallels and the suspended Linux woke up again and I entered in the /home/promise directory where /dev/sde1 is mounted and I say only some 
files instead of all 5TB data. Some directories were empty, some had broken links and so on.
So I discovered that something went wrong during reboot and thus I shut down the linux.
When I started linux again, I could not mount any more the promise.

Please help me to get out of this.

I did a backup of the 5,5TB hard disc file of Parallels, so we can play a little.

What would you suggest to do?
Actually I do not need all files of that disc, only some. IS there any chance to mount and copy what I need?

Thanks a lot for your patience and your time for reading this Hugo.

Best regards,

Chris




> On 5. Dec 2019, at 17:24, Hugo Mills <hugo@carfax.org.uk> wrote:
> 
> On Thu, Dec 05, 2019 at 05:00:40PM -0300, Christian Wimmer wrote:
>> Hi, my name is Chris, 
>> 
>> is this the right place for asking on support on how to repair a broken btrfs?
>> 
>> There is no hardware problem, just that the power went out and now I can not mount any more.
> 
>   What does dmesg say when you try to mount the FS?
> 
>> Who is the best specialist that could help here?
>> 
>> Of course I already scanned the WEB some hours and tried all not-destructive commands without success.
> 
>   "Non-destructive" is a fairly limited of things, and most of the
> easily-findable advice on the web about fixing btrfs filesystems is at
> best badly misguided, if not actively wrong. :(
> 
>   Can you also tell us exactly what you ran?
> 
>   Hugo.
> 
> -- 
> Hugo Mills             | Is it true that "last known good" on Windows XP
> hugo@... carfax.org.uk | boots into CP/M?
> http://carfax.org.uk/  |
> PGP: E2AB1DE4          |                                       Adrian Bridgett


  reply	other threads:[~2019-12-05 20:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-05 20:00 is this the right place for a question on how to repair a broken btrfs file system? Christian Wimmer
2019-12-05 20:24 ` Hugo Mills
2019-12-05 20:42   ` Christian Wimmer [this message]
2019-12-06  0:04     ` Qu Wenruo
2019-12-06  1:32       ` Christian Wimmer
     [not found]       ` <BD72A51F-A536-428C-9993-91A43C99EE30@icloud.com>
2019-12-06  2:12         ` Qu Wenruo
2019-12-06  2:13         ` Qu Wenruo
     [not found]       ` <DBA30D34-E186-4359-A8C5-C13C870F1D81@icloud.com>
2019-12-06  3:49         ` Qu Wenruo
2019-12-06 21:28           ` Christian Wimmer
2019-12-05 22:01   ` Christian Wimmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61D37CED-8564-49BC-9388-4A8511C3AC50@icloud.com \
    --to=telefonchris@icloud.com \
    --cc=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).