-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
top-level option for btrfs multi-device volume #261
Comments
No this is not implemented just now, but feel free to implement it. |
Pretty much the same feature is also supported for zfs user space tools, but Disko doesn't implement it for zfs neither so far. |
Well, you can great raids with zfs: Line 58 in 5d9f362
|
Yes, that's what I am talking about here. But with standard zfs tools you can i.e. create a mirror (or raidz) on N disks and add a cache on a faster SSD, all in the same command. I.e.
I believe this isn't supported by disko at the moment and seems similar to the btrfs feature in terms of nixos module code? Pretty sure there's a thread where @Lassulus and me've talked about this already but i can't find that atm. |
@Lassulus, after the holidays may I please have guidelines for this? Assuming ignore or deny raid 5/6. Currently I think it may already be possible to do this by using extraArgs and mountOptions to achieve something like |
It is since #723. I would say an implementation for btrfs should follow a similar structure. |
Context
I am looking to implement a layout composed of two NVMe devices, similar to the following example:
https://github.com/tfc/nixos-anywhere-example/blob/fd710be5255931a64a9efb9c15c9b36e6011e7b4/two-raids-on-two-disks.nix
In contrast to that example, I would like to use BTRFS' native support for multi-device volumes instead of using mdadm:
Problem
I would expect to be able to configure subvolumes for a multi-device BTRFS volume at
disko.devices.btrfs
(or some more-fitting name) in the same way that other volume-like domains e.g.mdadm
,zpool
do:disko/lib/default.nix
Lines 306 to 334 in 5d9f362
While similar to #99, this problem pertains more to first-class BTRFS support with a top-level option. Such an option was suggested in #99 (comment) but the issue was closed shortly thereafter.
Question
Is it currently possible to configure multi-device BTRFS subvolumes using Disko?
The text was updated successfully, but these errors were encountered: