disko | 366 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 95 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 May 2024 | ||
| 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 | |
| Interesting, I'm not really sure how that works. How does the mdadm get activated? Is the problem that writes to the virtual device might be concurrent with writes to the underlying devices? | 11:24:34 | |
| not sure when that exactly happens, otherwise I would have reproduced and fixed it :) but I have seen raid devices being activated later, some minutes after booting | 11:26:34 | |
| if this happens after we run the disk-deactivate script, things get wonky | 11:27:05 | |
| but not sure that's even the issue here, I guess you can check if there are any lingering raid devices active | 11:28:02 | |