disko | 357 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 89 Servers |
| Sender | Message | Time |
|---|---|---|
| 4 Mar 2025 | ||
| * I was also looking to do the same thing! Unfortunately in the current form, only simple single disk formatting via the mkfs bindings are supported. I created a branch to explore the more advanced use cases, and it does work (ish) for a more advanced setup. However there are some caveats that will prevent the code from being merged into disko at this time because of the reliance on some external configurations, and a newer kernel implementation, and some testing inconsistencies. If you are interested, I can write up some basic instructions. If you are feeling like exploring yourself in the meantime, here is how I am using it to provision one of my servers: https://github.com/ProjectInitiative/dotfiles/blob/main/systems/x86_64-linux/capstan2/default.nix and my fork of disko: https://github.com/ProjectInitiative/disko/blob/master/example/bcachefs-multi-disk.nix | 16:34:45 | |
| * I was also looking to do the same thing! Unfortunately in the current form, only simple single disk formatting via the mkfs bindings are supported. I created a branch to explore the more advanced use cases, and it does work (ish) for a more advanced setup. However there are some caveats that will prevent the code from being merged into disko at this time because of the reliance on some external configurations, and a newer kernel implementation, and some testing inconsistencies, as well as a bug in systemd and bcachefs that doesn't properly mount UUID multi-disk filesystems on boot, so a custom systemd mount is needed (can't be used for root at the moment). If you are interested, I can write up some basic instructions. If you are feeling like exploring yourself in the meantime, here is how I am using it to provision one of my servers: https://github.com/ProjectInitiative/dotfiles/blob/main/systems/x86_64-linux/capstan2/default.nix and my fork of disko: https://github.com/ProjectInitiative/disko/blob/master/example/bcachefs-multi-disk.nix | 16:36:37 | |
| 17:48:30 | ||
| 9 Mar 2025 | ||
| 19:39:44 | ||
| I'm having a bear of a time getting KDE logging in after making a live disk with disko-install. The issue seems to be that I am also using impermanence. I have tried:
Any ideas? | 22:04:00 | |
| 10 Mar 2025 | ||
| 15:22:37 | ||
| Hello, I want to add a new zfs dataset to my existing config, can I just re-rerun the disko format script, or will it destroy old stuff? I think that should be safe, but I'm not 100% sure from looking at the generated script. | 15:24:53 | |
| 11 Mar 2025 | ||
| 15:45:57 | ||
| 17:04:57 | ||
| I'm looking for a code example to make `extraConfig` pass a `secret.key` file into `vmWithDisko`. So I can test my encrypted ZFS partitioning scheme | 17:10:40 | |
| @brian:bmcgee.ie have you been able to solve this? | 18:16:56 | |
| Afraid not | 18:19:26 | |
| @joerg:thalheim.io as of commit 6c1b834 produces a syntax error during each ``` ++ dirname /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate + jq -r --arg disk_to_clear /dev/nvme0n1 -f /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate.jq jq: error: syntax error, unexpected ']' (Unix shell quoting issues?) at , line 49: ] jq: 1 compile error ``` commit 8d6dd03 works correctly. | 19:59:40 | |
| * @joerg:thalheim.io as of commit 6c1b834 produces a syntax error during each ++ dirname /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate + jq -r --arg disk_to_clear /dev/nvme0n1 -f /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate.jq jq: error: syntax error, unexpected ']' (Unix shell quoting issues?) at <top-level>, line 49: ] jq: 1 compile error commit 8d6dd03 works correctly. | 19:59:51 | |
| havent been able to spot the syntax error | 20:00:48 | |
Anyone have a btrfs/disko/impermanence config I can peep? Having trouble getting conflicting definitions for filesystems."/foobar" or having stage1 failures due to mounts not working. | 21:47:38 | |
| 21:54:13 | ||
| 21:54:53 | ||
| 12 Mar 2025 | ||
| 01:00:21 | ||
| @dantefromhell:matrix.org: is this where I added the change for swap? | 04:25:45 | |
| 05:25:10 | ||
In reply to @joerg:thalheim.ioyes. sorry for the mangled message, editor on the phone displays the code highlights properly, but f*** it up once I hit save/ send | 12:52:57 | |
| 13 Mar 2025 | ||
I have a ZFS mirror running as root that was formatted with disko. If I replaced both drives one at a time (i.e. with zpool offline and zpool replace), would the initramfs know where to look to mount the root partition next time I boot? | 15:58:40 | |
in my disko config the drives are referred to as /dev/disk/by-id identifies, so I want to make sure that there is no hard-coded fstab entry or anything that uses those | 15:59:56 | |
* in my disko config the drives are referred to as /dev/disk/by-id identifiers, so I want to make sure that there is no hard-coded fstab entry or anything that uses those | 16:00:27 | |
| 17:48:08 | ||
| 14 Mar 2025 | ||
| In a typical zfs setup, fstab doesn't reference the underlying devices but only the datasets (i.e. rpool/root, not /dev/disk/by-id/...) here. the initrd pretty much does a zpool import on boot, so you should be good after zpool replace. (but no warranty and all ;)) | 15:46:25 | |
| * In a typical zfs setup, fstab doesn't reference the underlying devices but only the datasets (i.e. rpool/root, not /dev/disk/by-id/...) here. the initrd pretty much does a zpool import on boot, so you should be good after zpool replace. (but no warranty as usual ;)) | 15:46:32 | |
| I see. So I understand that it works roughly like: ZFS scans all storage devices for zfs disks, and then makes the pools it finds available which can be referred to by name in the legacy mount scripts? | 15:48:01 | |
| Yes, exactly | 15:48:34 | |