Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support btrfs multi-device #74

Open
shirotech opened this issue Mar 29, 2023 · 2 comments
Open

Add support btrfs multi-device #74

shirotech opened this issue Mar 29, 2023 · 2 comments

Comments

@shirotech
Copy link

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

@asciiprod
Copy link
Collaborator

Currently not planned, but thank you for the suggestion

@asciiprod asciiprod changed the title Please support btrfs multi-device Add support btrfs multi-device Mar 4, 2024
@madalinignisca
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants