Skip to content

docs: add btrfs raid on luks devices non-root example #1098

New issue

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

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

Already on GitHub? # to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SolidEva
Copy link

useful for creating and managing a non-root, encrypted data raid on a headless server

the major difference between this and https://github.com/nix-community/disko/blob/master/example/luks-btrfs-raid.nix
is that this configuration is not expected to be decrypted at boot time

because of that, we set options

            initrdUnlock = false; # dont try to unlock this in the initrd
            "noauto" # ensure that systemd doesnt try to mount this at boot
            "nofail" # ensure that systemd failing to mount this doesn't send us to emergency mode

tested using a server board with 4x nvme drives

happy to do additional testing

useful for creating and managing a non-root, encrypted data raid on a headless server

the major difference between this and https://github.com/nix-community/disko/blob/master/example/luks-btrfs-raid.nix
is that this configuration is not expected to be decrypted at boot time

because of that, we set options
```
            initrdUnlock = false; # dont try to unlock this in the initrd
            "noauto" # ensure that systemd doesnt try to mount this at boot
            "nofail" # ensure that systemd failing to mount this doesn't send us to emergency mode
```

additionally, each disk is a raw luks device with no partition table

tested using a server board with 4x nvme drives
@SolidEva
Copy link
Author

testing with checkScripts = false for now, but before this merges, a fix for #1099 will have to be merged.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant