All of lore.kernel.org
 help / color / mirror / Atom feed
* BTRFS disaster (of my own making). Is this recoverable?
@ 2015-08-02 17:13 Sonic
  2015-08-03  5:17 ` Duncan
  2015-08-03  5:42 ` Chris Murphy
  0 siblings, 2 replies; 23+ messages in thread
From: Sonic @ 2015-08-02 17:13 UTC (permalink / raw)
  To: linux-btrfs

I have had bad dreams about this particular fat finger but after a few
years it has finally happened.

Scenario: 2 drives in a raw btrfs array (no previous partitions and
non-redundant) with various subvols as well. One was sdc the other was
sde, although sde never displays with mount command and blkid is the
same for both.

Thinking I was writing to a flash drive I sent 32MB via dd
===========================
dd if=file of=/dev/sde
===========================
to sde (instead of what I wanted - sdf) and now the volume nor any of
it's subvol's can mount (of course that seems entirely reasonable,
although you can imagine how unhappy I am).

With:
===========================
mount -t btrfs /mnt/butter/
===========================
I get:
===========================
[ 3421.193103] BTRFS info (device sde): disk space caching is enabled
[ 3421.193734] BTRFS (device sde): bad tree block start
8330001001141004672 20971520
[ 3421.193738] BTRFS: failed to read chunk root on sde
[ 3421.203221] BTRFS: open_ctree failed
===========================

If I specify /dev/sdc instead of relying on fstab I get:
===========================
mount -t btrfs -o degraded /dev/sdc /mnt/butter/
===========================
[ 3839.506766] BTRFS info (device sde): allowing degraded mounts
[ 3839.506769] BTRFS info (device sde): disk space caching is enabled
[ 3839.507154] BTRFS (device sde): bad tree block start
8330001001141004672 20971520
[ 3839.507159] BTRFS: failed to read chunk root on sde
[ 3839.515023] BTRFS: open_ctree failed
===========================

Obligatory details:
===========================
uname -a
Linux sartre 4.1.3-gentoo #1 SMP Sat Jul 25 22:34:14 EDT 2015 x86_64
Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz GenuineIntel GNU/Linux
===========================
btrfs --version
btrfs-progs v4.1.2
===========================
btrfs fi show
Label: 'garage'  uuid: 896f615e-6437-41c6-8f2a-25f73ff1af7a
        Total devices 1 FS bytes used 89.33GiB
        devid    1 size 200.00GiB used 92.02GiB path /dev/sdb3

warning, device 2 is missing
bytenr mismatch, want=20971520, have=0
Couldn't read chunk root
Label: 'terrafirm'  uuid: 09024c28-7932-4ddb-960d-becc1ea839e5
        Total devices 2 FS bytes used 6.40TiB
        devid    1 size 3.64TiB used 3.21TiB path /dev/sdc
        *** Some devices missing

btrfs-progs v4.1.2
===========================
btrfs fi df /mnt/butter
ERROR: couldn't get space info - Inappropriate ioctl for device
ERROR: get_df failed Inappropriate ioctl for device
===========================

Please advise.

Thank you,

Chris

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

end of thread, other threads:[~2015-08-06 11:13 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-02 17:13 BTRFS disaster (of my own making). Is this recoverable? Sonic
2015-08-03  5:17 ` Duncan
2015-08-03 14:43   ` Sonic
2015-08-03 15:05     ` Sonic
2015-08-03 15:28       ` Hugo Mills
2015-08-03 16:03         ` Sonic
2015-08-03 16:14           ` Sonic
2015-08-03 16:22             ` Sonic
2015-08-03 16:32               ` Sonic
2015-08-03 19:26                 ` Duncan
2015-08-04  2:20                 ` Sonic
2015-08-04  2:45                   ` Sonic
2015-08-04  5:10                   ` Duncan
2015-08-04 20:23                     ` Sonic
2015-08-05 12:31                       ` Sonic
2015-08-05 12:39                         ` Sonic
2015-08-05 16:53                         ` Chris Murphy
2015-08-06  0:45                           ` Paul Jones
2015-08-06  2:13                             ` Chris Murphy
2015-08-06 11:13                               ` Austin S Hemmelgarn
2015-08-03  5:42 ` Chris Murphy
2015-08-03  8:18   ` Hugo Mills
2015-08-03 13:12   ` Sonic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.