linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs-zero-log fails, can't mount FS
@ 2014-08-14 16:09 Marc MERLIN
  2014-08-14 16:52 ` Austin S Hemmelgarn
  0 siblings, 1 reply; 9+ messages in thread
From: Marc MERLIN @ 2014-08-14 16:09 UTC (permalink / raw)
  To: linux-btrfs, jbacik, clm; +Cc: takeuchi_satoru

Running 3.15.5, laptop hung overnight, I was forced to reboot with sysrq.

After that, it wouldn't mount anymore:
[  689.366125] BTRFS: device label btrfs_pool1 devid 1 transid 237214 /dev/dm-1
[  716.384377] BTRFS info (device dm-1): disk space caching is enabled
[  716.566974] BTRFS: detected SSD devices, enabling SSD mode
[  716.567106] BTRFS: bad tree block start 8622613565695139001 49500766208
[  716.567220] BTRFS: bad tree block start 10955809011958619003 49500766208
[  716.567224] BTRFS: failed to read log tree
[  716.638634] BTRFS: open_ctree failed

Ok, btrfs-zero-log usually helps with this, but not this time:
legolas:~# btrfs-zero-log /dev/mapper/disk1 
Check tree block failed, want=49500766208, have=8622613565695139001
Check tree block failed, want=49500766208, have=8622613565695139001
Check tree block failed, want=49500766208, have=10955809011958619003
Check tree block failed, want=49500766208, have=10955809011958619003
Check tree block failed, want=49500766208, have=10955809011958619003
read block failed check_tree_block
Couldn't setup log root tree
legolas:~# 

It's recent:
legolas:~# btrfs-zero-log 
usage: btrfs-zero-log dev
Btrfs v3.14.1

mount -o ro,recovery /dev/mapper/disk1 /mnt/mnt
does not work either, but that's expected.

I can probably use some recovery tools to get data off it, but I already
have a backup.
I'd much rather not have to destroy and rebuild this partition.

Worst thing is that it happened with 3.15 and I had just changed it to
compress=none (although there was existing data was compresssed).

Do you have any suggestions on how to repair this partition so that it's
mountable again?

This is a good SSD (samsung evo 840), I'm not sure it's to blame for
corrupting data or writing it out of order and lying to the OS about it.
If that is not the case, does it mean btrfs is still getting into states
where it mangles the filesystem in a way that it can't mount it anymore?

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

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

end of thread, other threads:[~2014-08-15  4:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 16:09 btrfs-zero-log fails, can't mount FS Marc MERLIN
2014-08-14 16:52 ` Austin S Hemmelgarn
2014-08-14 17:27   ` Marc MERLIN
2014-08-14 19:10     ` Chris Murphy
2014-08-14 19:14       ` Marc MERLIN
2014-08-14 22:03     ` Chris Mason
2014-08-14 22:28       ` Marc MERLIN
2014-08-15  0:17         ` Chris Mason
2014-08-15  4:11           ` Marc MERLIN

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