!oNSIfazDqEcwhcOjSL:matrix.org

disko

353 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko88 Servers

Load older messages


SenderMessageTime
30 May 2024
@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
@lassulus:lassul.uslassulusnot 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 booting11:26:34
@lassulus:lassul.uslassulusif this happens after we run the disk-deactivate script, things get wonky11:27:05
@lassulus:lassul.uslassulusbut not sure that's even the issue here, I guess you can check if there are any lingering raid devices active11:28:02
@waltmck:matrix.orgwaltmckI could give you access to the server if it's helpful for you to debug this issue with disko11:28:08
@waltmck:matrix.orgwaltmck(independently of my issue, if you are having trouble reproducing)11:28:23
@waltmck:matrix.orgwaltmckthere's nothing on it, I could just wipe it after you're done11:29:51
@lassulus:lassul.uslassulushmm, not sure I have the time to debug that further :) also not sure if the issue would happen if disko is run again?11:31:07
@waltmck:matrix.orgwaltmckI've restarted the server a few times and the issue persists11:31:45
@waltmck:matrix.orgwaltmckI'll restart a few more times and hopefully that will fix the issue. If not, I'll let you know11:33:01
@lassulus:lassul.uslassulushmm, it also fails after the partprobe11:37:56
@lassulus:lassul.uslassulusand the zap should after the partprobe11:38:02
@lassulus:lassul.uslassulusthis could be another issue11:38:08
@waltmck:matrix.orgwaltmckyep, issue just persisted under another full reboot. Reboots wipe all of the rescue system state so the problem is either in my config file or in the disk state11:38:14
@lassulus:lassul.uslassulushttps://github.com/nix-community/disko/pull/65411:40:41
@lassulus:lassul.uslassulusah forgot to rebase11:41:23
@waltmck:matrix.orgwaltmck ahh, I will try running sgdisk --zap-all 11:41:25
@waltmck:matrix.orgwaltmckI think it worked11:43:10
@waltmck:matrix.orgwaltmck

the output for sgdisk --zap-all /dev/md/raid1 was

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: OK
Main partition table: OK
Backup partition table: ERROR

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
11:43:32
@waltmck:matrix.orgwaltmckgreat that fixed everything11:46:36
@lillecarl:matrix.orglillecarl lassulus: Out of curiosity, would changing the size of partitions resolve this? Since /dev/md/raid1 header would be at a different location.... right? 12:37:49
@lassulus:lassul.uslassulusnot sure, probably12:38:46
1 Jun 2024
@relichunter:nitro.chatrelichunter joined the room.21:46:01
2 Jun 2024
@bumperboat:matrix.orgbumperboat changed their display name from bumperboat (UTC+7) to bumperboat (UTC+1).05:28:59
4 Jun 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius (DECT: 7248) to raitobezarius.11:15:39
@tanja:catgirl.cloudTanja (she/her) - ☎️ 4201 changed their display name from Tanja (☎️ 6920 at GPN22, she/her) to Tanja (she/her).18:51:48
@netpleb:matrix.orgnetpleb joined the room.21:52:57
6 Jun 2024
@swendel:curious.bio@swendel:curious.bio joined the room.18:47:34
8 Jun 2024
@wieldable9080:matrix.im🎈 Always joined the room.14:55:35
@wieldable9080:matrix.im🎈 Always

hello to all fellow disko dancers/lovers
the drive is encrypted, and every time i boot it waits for this swap, but it's not there

                content = {
                  type = "btrfs";
                  extraArgs = ["-f"];
                  subvolumes = {
                    "/@SWAP" = {
                      mountpoint = "/.swapvol";
                      swap.swapfile.size = "(people will start asking why so much swap)G";
                    };
                  };
                };
14:58:37

Show newer messages


Back to Room ListRoom Version: 10