disko | 355 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 90 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Mar 2025 | ||
| 19:08:21 | ||
| 21 Mar 2025 | ||
| 15:23:11 | ||
| 20:19:03 | ||
| 22 Mar 2025 | ||
| 19:52:47 | ||
| 24 Mar 2025 | ||
| Hello. I'm currently working on improving disko's support for bcachefs. So far, I have made a PR to add encryption support. Currently, I am working on adding subvolume support. However, I am having trouble getting this to work. This is the output when I run I suspect that a reason that this could happening might be due the order in which mountpoints are mounted. My theory is that descendant mountpoints (e.g., /ancestor/descendant) could be being mounted before ancestor mountpoints (e.g., /ancestor) have been created/mounted. Does disko mount filesystems such that ancestor mountpoints are mounted before descendants, or is this behaviour dependent on how the I have tried to debug my implementation using
In fact, it shows that same Is there another way I can go about debugging this? | 10:47:05 | |
| Hey! I was working on adding advanced options for Bcachefs a few months ago. May want to poke around here: https://github.com/nix-community/disko/pull/961 There are some current gotchas that cause some of the issues you are facing. Using the bcachesfs fs formatter is limited which is why I went the route of creating a custom type similar to mdadm and zfs. There are some systemd bugs that prevent the FS ground getting mounted properly/consistently during reboots | 12:45:51 | |
| I am having (skill) issues resizing my .swapvol after I have mistakenly put it to 20M instead of 16G,
but
Is there a way to get Disko to just resize a subvolume? | 13:19:31 | |
In reply to @projectinitiative:matrix.org Oh cool! Thanks for sharing that, I didn't see it. It's good to see someone else working on this too. Maybe we can work together on this, so that work isn't duplicated? What's your progress so far and what still needs to be done? I can see that you left a comment last month about trying to get encryption to work. Is that still the case? I believe I've got encryption working in my other PR, so if you like, I can try to adapt it to work with yours and submit a PR against yours? | 13:19:56 | |
| * I am having (skill) issues resizing my .swapvol after I have mistakenly put it to 20M instead of 16G,
but
Is there a way to get Disko to just resize a subvolume? | 13:20:56 | |
| * I am having (skill) issues resizing my .swapvol after I have mistakenly put it to 20M instead of 16G,
but
Is there a way to get Disko to just resize a subvolume? | 13:22:47 | |
| I think I did something stupid now
I ctrl+c on the operation, the laptop fan spun up, btop showed the disk usage went bananas, but memory and cpu stayed low | 13:27:00 | |
| Encryption support would be awesome. I was planning on attempting that after I got the basic multi-disk support working (same with sub volumes) Totally up to working together. I've been kind of stuck due to the systems bug that doesn't handle dependent drives very well for multi-disk FS. That is causing my VM tests to fail. I did a proof of concept on actual hardware, but it requires a external systemd mount to be created after the system has fully booted so it finds the drives. Not ideal for being declarative. Curious for input or ideas! | 13:32:25 | |
| Ah nice! For now, I'll have a play around with your branch and see if I can get a better understanding of it and hopefully come up with some ideas. | 13:40:13 | |
| Feel free to ping me if you have questions, I want to see support added one way or another 😎 | 13:46:33 | |
| 16:40:02 | ||
| I figured this out! of course disko doesn't set usage limits on the subvolumes and apparently I can't manually make my own swapfile on btrfs because chattr doesn't work. But btrfs has a subcommand to make swapfiles! This fixed my issue!
| 18:23:19 | |
| 21:34:28 | ||
| 25 Mar 2025 | ||
| Can disko be used to create new additional btrfs subvolumes? Or do I need to manually create them and add them to my disko config? | 09:58:36 | |
The latter, unfortunately. Disko can only alter your disks if you run disko format, which will wipe them as well. | 10:05:28 | |
| Thank you, is there any consideration I have to take when making subvolumes? I'd like it to be consistent with how disko makes it
When I
| 10:08:55 | |
| are you sure? It doesn't do that for zfs from my experience | 11:27:44 | |
| I wiped my disk entire once when I tried to remove a subvolume. I assume the same happens when you add one. | 11:28:39 | |
| * I wiped my disk entire once when I tried to remove a subvolume with disko. I assume the same happens when you add one. | 11:28:51 | |
| but hey, only one way to find out. | 11:29:07 | |
| Thanks, don't want to try this, the explanation of format isn't very clear on if it will destroy anything | 12:40:23 | |
| 17:42:21 | ||
| 17:44:49 | ||
| 26 Mar 2025 | ||
| Was that recently or a while ago? | 09:27:52 | |
| I wouldn't recommend you to try without a backup :) That being said, it shouldn't nowadays. You can also proof-read the generated script by building nix build .#nixosConfigurations.<host>.config.system.build.formatScript and reading the result | 09:32:15 | |
In reply to @phaer:matrix.orgthree months ago | 10:11:48 | |