Add support btrfs multi-device #74

Open
opened 2023-03-30 00:20:42 +02:00 by shirotech · 2 comments
shirotech commented 2023-03-30 00:20:42 +02:00 (Migrated from github.com)

Reading in the comments that it is currently not supported, are there any plans to support this? Thank you.

Reading in the comments that it is currently not supported, are there any plans to support this? Thank you.
asciiprod commented 2023-10-17 15:11:57 +02:00 (Migrated from github.com)

Currently not planned, but thank you for the suggestion

Currently not planned, but thank you for the suggestion
madalinignisca commented 2024-04-26 15:35:26 +02:00 (Migrated from github.com)

If the topic is to support raid 1 for btrfs, u can start the installation with first drive and before reboot, u can change the setup in raid 1. The official docs mention how to: https://btrfs.readthedocs.io/en/latest/btrfs-device.html.

I'd do it like this:

  1. setup all partitions as subvolumes, don't do separate partitions for btrfs.
  2. mount the main partition to /mnt when install is done.
  3. add the second drive
  4. convert to raid 1 triggering balance and conversion.

But you must do yourself the boot part.

That can be easy if u ask to have the server with UEFI.

Create first identical same ESP partition, and copy the contents. It's safe to copy as normal, as that is just fat32 partition.

unmount both, and use mdadm to create a raid 1 setup from them.

Explanation on Arch wiki always worked for me: https://wiki.archlinux.org/title/EFI_system_partition#ESP_on_software_RAID1

I hope it works for you, as it did for me.


Note: I do recommend the normal raid 1 as the installer does, and setup btrfs on top of the raid block. The thing is that it allows you to encrypt the raid block and maintenance in case of drive failure is easier and straightforward in case of encrypted block. With BTRFS + raid 1 + encryption, there are years to follow to be stable.

If the topic is to support raid 1 for btrfs, u can start the installation with first drive and before reboot, u can change the setup in raid 1. The official docs mention how to: https://btrfs.readthedocs.io/en/latest/btrfs-device.html. I'd do it like this: 1. setup all partitions as subvolumes, don't do separate partitions for btrfs. 2. mount the main partition to /mnt when install is done. 3. add the second drive 4. convert to raid 1 triggering balance and conversion. But you must do yourself the boot part. That can be easy if u ask to have the server with UEFI. Create first identical same ESP partition, and copy the contents. It's safe to copy as normal, as that is just fat32 partition. unmount both, and use mdadm to create a raid 1 setup from them. Explanation on Arch wiki always worked for me: https://wiki.archlinux.org/title/EFI_system_partition#ESP_on_software_RAID1 I hope it works for you, as it did for me. --- Note: I do recommend the normal raid 1 as the installer does, and setup btrfs on top of the raid block. The thing is that it allows you to encrypt the raid block and maintenance in case of drive failure is easier and straightforward in case of encrypted block. With BTRFS + raid 1 + encryption, there are years to follow to be stable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DiamantTh/installimage#74
No description provided.