disko | 353 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 88 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 May 2024 | ||
| * It appears as
| 10:31:25 | |
I am getting a warning at the beginning: trace: warning: mdadm: Neither MAILADDR nor PROGRAM has been set. This will cause the mdmon service to crash. | 10:33:15 | |
* I am getting a warning at the beginning: trace: warning: mdadm: Neither MAILADDR nor PROGRAM has been set. This will cause the mdmon service to crash. | 10:33:26 | |
| There is a bug about that, it doesn't look like it should actually cause this issue. But who knows | 10:34:43 | |
| Nah I've got that same thing on my desktop | 10:35:02 | |
| waltmck: https://github.com/Lillecarl/nixos/blob/master/hosts/shitbox/disko.nix You can compare with mine. I don't raid my bootloader though, I mirror with grub. Don't use my thing as a reference for "this is right". What happens if you run the erroring command (as root) yourself? | 10:38:19 | |
In reply to @lillecarl:matrix.orgSame thing happens. I am actually running this entire thing as root (sshing to root@hostname) | 10:57:41 | |
| waltmck: ```bash
| 11:12:16 | |
| Invalid argument during seek for read on /dev/md/raid1 seems like a corrupt partition table. can you try printing it with fdisk -l or parted -l? | 11:12:31 | |
* Invalid argument during seek for read on /dev/md/raid1 seems like a corrupt partition table. can you try printing it with fdisk -l or parted -l? | 11:12:42 | |
*
| 11:12:46 | |
In reply to @lillecarl:matrix.org
| 11:13:04 | |
In reply to @lassulus:lassul.us
| 11:14:45 | |
| huh dos | 11:18:08 | |
| that doesn't see right | 11:18:13 | |
| maybe there was already a partition table which got mixed up somehow and the cleanup script failed to delete it | 11:18:44 | |
| how did you run disko? | 11:19:24 | |
| Interesting. That means that disko isn't actually totally reproducible/declarative? | 11:19:29 | |
| I am running it through nixos-anywhere | 11:19:40 | |
| I have a rescue system booted from a network drive so I have access to the disks | 11:20:06 | |
| it should be, but removing existing partitions is sometimes a bit lagging :) | 11:20:14 | |
| since they can be used in all different sort of ways | 11:20:29 | |
| but nixos-anywhere usually takes care of that by running a kexec | 11:20:45 | |
| when you initialize a new partition, you shouldn't be assuming that the disk is zeroed out | 11:20:47 | |
| Right, disko runs after a kexec | 11:21:07 | |
| ah, we run wipefs before running disko | 11:22:06 | |
| https://github.com/nix-community/disko/blob/master/disk-deactivate/disk-deactivate.jq#L33 | 11:22:06 | |
| I've tried this many times across reboots and it is totally reproducible. I haven't tried manually zeroing out the disks though just because I assumed that semantically the curring contents of a disk shouldn't matter when reformatting | 11:22:13 | |
In reply to @waltmck:matrix.orgcurrent | 11:22:43 | |
| well they shouldn't, but sometimes, if there is already an mdadm it can get activated at random times and that can interfere for example with other stuff | 11:23:28 | |