I need to migrate the rockstor_rockstor pool to a different drive.
Currently it is located on an sdcard, because of reliability concerns I want to move it to a harddrive.
I assumed I’d be able to
add the harddrive to the pool
change the raid level to raid 1
rebalance
remove the sdcard from the pool
Unfortunately rockstor does not let me change the rockstor_rockstor pool:
Warning! This Pool is created during install and contains the OS. You can create Shares in it like in any other pool on the system. However, operations like resize, compression and deletion are not allowed.
How should I proceed to migrate the rockstor_rockstor pool to the other drive?
The new drive is already installed but unused so far. With this command it should be possible to do a live/hot migration of the rockstor_rockstor pool while the rockstor system is running without any reboot and downtime. At least that’s what I hope
So this is my plan:
create partitions for /, /boot, swap on the new drive
clone /boot partition with dd to the corresponding partition on the new drive
move the rockstor_rockstor pool with btrfs replace to the corresponding partition on the new drive
update the UUID entries in the /etc/fstab with the values of the new partitions
reinstall grub on the new drive
What do you btrfs experts think? Will this approach work/fail miserably