Re: moving btrfs subvolumes to new disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I do plan on physically replacing the current drive with the new one
and my fstab/boot comands use device. I never could get UUID or labels
to work, but that's another project.

However, this still leaves me unable to take advantage of btrfs
features for implementing an incremental backup solution to another
disk.
Ryan Erato
C. 414.630.5295
rerato@xxxxxxxxx
http://www.linkedin.com/in/ryanerato


On Sun, Mar 20, 2016 at 1:55 AM, Phantom Guy <no.real.person@xxxxxxxxx> wrote:
> You tried to hard.
>
> Build the new media If you need encryption or meets devices.
>
>
> Then add the new media to the whole filesystem.
>
>
> Then remove the old media from the filesystem.
>
>
> # btrfs device add /dev/sdb1 /mountpoint
>
> # btrfs device del /dev/sda1 /mountpoint
>
> Then sync the filesystem and wait.
>
> Once the old device ID no longer part of the filesystem it's done.
>
> When the sync finishes, the /dev/sda1 device is nill.
>
> If you've designed your fstsb and boot commands correctly the label or UUID
> has migrated so as long as you've prepped the disk with grub of whatever
> then you can move the disks with impunity.
>
> You don't even need to be in any sort of maintenance mode.
>
>
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux