disko | 363 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 93 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Jul 2025 | ||
running disko format on a working system is not something that screams "this is safe, don't worry wink wink" to anyone. | 11:03:48 | |
| it shouldn't :D (yet) | 11:05:16 | |
| but if someone has time and motivation to work on it, I can give guidance, or just wait until I'm done with the other things on my questlog :) | 11:06:09 | |
| I have the same issue with ZFS and datasets and so on. What I do is, use Disko to generate the shell scripts to create new datasets and then manually apply them. If I would add another disk, I would do the same steps. | 14:21:40 | |
| So far that worked nicely | 14:21:47 | |
| 17:00:19 | ||
| 7 Jul 2025 | ||
| 09:49:56 | ||
| 11:07:13 | ||
| 17:28:14 | ||
| Does anybody run multiple bcachefs subvolumes with encryption? It bothers me that it asks for a password each time on boot (in my case I have to enter my password 3 times for each subvolume) | 17:31:33 | |
| are there any examples of zfs setup that works with hibernation? as far as I'm aware it only needs to not be used for the swap partition, but the rest of the drives (including nixos) can be zfs, right? | 22:31:26 | |
| No, zfs shouldnt be used for hibernation period | 22:33:15 | |
| 8 Jul 2025 | ||
In reply to @steeringwheelrules:tchncs.demy understanding is that for hibernation, the hiberfile is loaded in initrd. If the zfs pool is also loaded/mounted for any reason during that initrd, then after the memory gets restored zfs will have inconsistent information about the pool. I wouldn't risk it | 02:43:17 | |
| Yeah zfs has no safeguards against this case. So theoretically if you avoid the scenario above it may be safe. But even then its a very untested codepath, though to be honest so is suspend and that seems to be working completely fine | 06:02:53 | |
| 15:54:47 | ||
| 9 Jul 2025 | ||
| 01:17:27 | ||
| 14:04:06 | ||
| 10 Jul 2025 | ||
| 18:20:56 | ||
| This might work for hibernation:
But be aware of zfs#12842 - make Linux hibernation (suspend-to-disk) more robust and nixpkgs#208037 - nixos/zfs: mitigate data loss issues when resuming from hibernate You might also need these to enter the danger territory (make yourself familiar with zpool recovery strategy):
| 21:17:01 | |
| thank you! I will try and play with this | 23:28:11 | |
| 11 Jul 2025 | ||
| 19:53:53 | ||
| 13 Jul 2025 | ||
| 20:11:57 | ||
| 14 Jul 2025 | ||
| Is btrs okay for hibernation? | 23:11:06 | |
| 15 Jul 2025 | ||
| been using it for years now and hadn't had any issues with hibernation | 17:53:55 | |
https://github.com/nix-community/disko/blob/2bf3421f7fed5c84d9392b62dcb9d76ef09796a7/example/luks-btrfs-subvolumes.nix#L57-L60 Is this a swap partition or a swap file? | 19:31:30 | |
| swap file | 20:47:47 | |
| 17 Jul 2025 | ||
| 15:35:11 | ||
| 19:09:10 | ||
swap.swapfile.size = "20M"; Why only 20M? will it grow on itself? | 22:48:14 | |
| 23:58:44 | ||