!oNSIfazDqEcwhcOjSL:matrix.org

disko

365 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko94 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
30 May 2024
@waltmck:matrix.orgwaltmck
In reply to @lassulus:lassul.us
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?

fdisk -l gives

GPT PMBR size mismatch (1997844479 != 998922239) will be corrected by write.
Disk /dev/md/raid1: 476.32 GiB, 511448186880 bytes, 998922240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device          Boot Start       End   Sectors   Size Id Type
/dev/md/raid1p1          1 998922239 998922239 476.3G ee GPT
11:14:45
@lassulus:lassul.uslassulushuh dos11:18:08
@lassulus:lassul.uslassulusthat doesn't see right11:18:13
@lassulus:lassul.uslassulusmaybe there was already a partition table which got mixed up somehow and the cleanup script failed to delete it11:18:44
@lassulus:lassul.uslassulushow did you run disko?11:19:24
@waltmck:matrix.orgwaltmckInteresting. That means that disko isn't actually totally reproducible/declarative?11:19:29
@waltmck:matrix.orgwaltmckI am running it through nixos-anywhere11:19:40
@waltmck:matrix.orgwaltmckI have a rescue system booted from a network drive so I have access to the disks11:20:06
@lassulus:lassul.uslassulusit should be, but removing existing partitions is sometimes a bit lagging :)11:20:14
@lassulus:lassul.uslassulussince they can be used in all different sort of ways11:20:29
@lassulus:lassul.uslassulusbut nixos-anywhere usually takes care of that by running a kexec11:20:45
@waltmck:matrix.orgwaltmckwhen you initialize a new partition, you shouldn't be assuming that the disk is zeroed out11:20:47
@waltmck:matrix.orgwaltmckRight, disko runs after a kexec11:21:07
@lassulus:lassul.uslassulusah, we run wipefs before running disko11:22:06
@lassulus:lassul.uslassulushttps://github.com/nix-community/disko/blob/master/disk-deactivate/disk-deactivate.jq#L3311:22:06
@waltmck:matrix.orgwaltmckI'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 reformatting11:22:13
@waltmck:matrix.orgwaltmck
In reply to @waltmck:matrix.org
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
current
11:22:43
@lassulus:lassul.uslassuluswell 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 stuff11:23:28
@waltmck:matrix.orgwaltmckInteresting, 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

Show newer messages


Back to Room ListRoom Version: 10