All of lore.kernel.org
 help / color / mirror / Atom feed
* Connection lost during BTRFS move + resize
@ 2021-11-29  8:48 Borden
  2021-11-29 15:26 ` Phillip Susi
  0 siblings, 1 reply; 9+ messages in thread
From: Borden @ 2021-11-29  8:48 UTC (permalink / raw)
  To: linux-btrfs

Good morning,

I couldn't find any definitive guidance on the list archives or Internet, so I want to double-check before giving up.

I tried to left-move and resize a btrfs partition on a USB-attached hard drive. My intention was to expand the partition from 2 TB to 3 TB on a 4TB drive. During the move, the USB cable came loose and the process failed.

From what I can tell, the partition was "moved" to its new location and correctly shows the usage, but the partition is not expanded to its new 3 TB limit. As one would expect, sudo mount -o ro /dev/sdb3 /mnt yields:
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb3, missing codepage or helper program, or other error.

Although I know it's extremely dangerous, I nevertheless ran btrfs check --repair /dev/sdb3 and received:
Starting repair.
Opening filesystem to check...
checksum verify failed on 2160397959168 wanted 0x2d75ada8 found 0x55dc86b3
checksum verify failed on 2160397959168 wanted 0x5c57dcfd found 0xe722d853
checksum verify failed on 2160397959168 wanted 0x5c57dcfd found 0xe722d853
bad tree block 2160397959168, bytenr mismatch, want=2160397959168, have=8937084726424501725
Couldn't read tree root
ERROR: cannot open file system

As requested:
uname -a: Linux debian 5.15.0-1-amd64 #1 SMP Debian 5.15.3-1 (2021-11-18) x86_64 GNU/Linux
btrfs --version: btrfs-progs v5.15
sudo btrfs fi show: Label: 'Backup'  uuid: <drive UUID, still good>
  Total devices 1 FS bytes used 1.71TiB
  devid    1 size 1.82TiB used 1.73TiB path /dev/sdb3
dmesg: output at http://paste.debian.net/1221191/, valid until 2021-12-02

From other discussions, it seems like the partition's contents are gone for good, which is OK because it's a backup and I can start over. However, if I can recover the data, that would be nice, too, since I might have to dig up something from a while back.

With many thanks,

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

end of thread, other threads:[~2021-12-03 18:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29  8:48 Connection lost during BTRFS move + resize Borden
2021-11-29 15:26 ` Phillip Susi
2021-11-29 15:50   ` Borden
2021-11-29 16:12     ` Graham Cobb
2021-12-01 18:42       ` Matthew Warren
2021-11-29 16:20     ` Phillip Susi
2021-11-29 17:20       ` Borden
2021-12-03 18:47     ` Chris Murphy
2021-12-03 18:31   ` Chris Murphy

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.