My root partition is running out of space and I have no other SATA slots. I have a BTRFS raid0 and I would like to shrink one of the partitions I used for the BTRFS-raid0 and add it to the root partition (make it raid0). How can I do that?
The layout is as follows:
- /dev/sda
- sda1 - 500M - EFI - /boot
- sda2 - 10G - Root - /
- sda3 - 455.3G - btrfs-raid0-disk0 - /data
- /dev/sdb - 465.8G - btrfs-raid0-disk1 - /data
- /dev/sdc - 931.5G - btrfs-raid0-disk2 - /data
- /dev/sdd
- sdd1 - 465.8G - btrfs-raid0-disk3 - /data
Now, I want to shrink /dev/sdd1 from 465.8G to 410G, create /dev/sdd2, combine /dev/sda2 and /dev/sdd2 using btrfs raid0 and use it as root.
In Short: How can I shrink one of the partitions in a btrfs multi device (raid0) filesystem.