Jump to content

Talk:Btrfs: Difference between revisions

From Official NixOS Wiki
Latest comment: 06:42 by Woile in topic How to BTRFS RAID1?
Woile (talk | contribs)
Woile (talk | contribs)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:


Could we have a section explaining a bit of BTRFS RAID1? and recommendations? I just cannot find anything about it for nixos [[User:Woile|Woile]] ([[User talk:Woile|talk]]) 10:45, 6 September 2026 (UTC)
Could we have a section explaining a bit of BTRFS RAID1? and recommendations? I just cannot find anything about it for nixos [[User:Woile|Woile]] ([[User talk:Woile|talk]]) 10:45, 6 September 2026 (UTC)
:What are you hoping to have answered? The purpose of this page is to show interactions between NixOS and BTRFS, not a comprehensive document on utilizing BTRFS. If you want to know how to create RAID 1 in BTRFS, read the [https://btrfs.readthedocs.io/en/latest/Volume-management.html official documentation]. There is no additional configuration needed in your system nix configuration. `nixos-generate-config` should automatically detect your mounted btrfs raid 1 volume like any other btrfs volume. I'll add a note explaining this on the wiki. [[User:Pigs|Pigs]] ([[User talk:Pigs|talk]]) 01:55, 7 September 2026 (UTC)
::Again, I'm still figuring things out with RAID-1, and I'm looking for someone's verification. But if I understand this comment correctly: https://github.com/nix-community/disko/issues/99#issuecomment-1368275363 for BTRFS RAID1 the disks must exists before creating the raid1.
::So I was thinking we could include a brief explanation of raid1, plus a warning if you are using disko (order alphabetically and do raid-1 on the last one), because I haven't found anything else about this, which could be a footgun.
::What do you think? [[User:Woile|Woile]] ([[User talk:Woile|talk]]) 06:42, 7 September 2026 (UTC)

Latest revision as of 06:42, 7 September 2026

Both my edits and how it was before the edits are broken. My edits fail on boot previous fail on config generation.

2022-09-26 rapenne-s: the whole content worked fine for me. What is the problem with the current information?

How to BTRFS RAID1?

Could we have a section explaining a bit of BTRFS RAID1? and recommendations? I just cannot find anything about it for nixos Woile (talk) 10:45, 6 September 2026 (UTC)Reply

What are you hoping to have answered? The purpose of this page is to show interactions between NixOS and BTRFS, not a comprehensive document on utilizing BTRFS. If you want to know how to create RAID 1 in BTRFS, read the official documentation. There is no additional configuration needed in your system nix configuration. `nixos-generate-config` should automatically detect your mounted btrfs raid 1 volume like any other btrfs volume. I'll add a note explaining this on the wiki. Pigs (talk) 01:55, 7 September 2026 (UTC)Reply
Again, I'm still figuring things out with RAID-1, and I'm looking for someone's verification. But if I understand this comment correctly: https://github.com/nix-community/disko/issues/99#issuecomment-1368275363 for BTRFS RAID1 the disks must exists before creating the raid1.
So I was thinking we could include a brief explanation of raid1, plus a warning if you are using disko (order alphabetically and do raid-1 on the last one), because I haven't found anything else about this, which could be a footgun.
What do you think? Woile (talk) 06:42, 7 September 2026 (UTC)Reply