Re: Connection lost during BTRFS move + resize
From: Phillip Susi <hidden>
Date: 2021-11-29 15:33:56
Borden [off-list ref] writes:
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.
The only tool I know of that can do this is gparted, so I assume you are using that. In this case, it has to umount the filesystem and manually copy data from the old start of the partition to the new start. Being interrupted in the middle leaves part of the filesystem in the wrong place ( and which parts is unknowable ), and so it is toast. This is one area where LVM has a significant advantage as its moves are interruption safe and automatically resumed on the next activation of the volume.