!oNSIfazDqEcwhcOjSL:matrix.org

disko

358 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko91 Servers

Load older messages


SenderMessageTime
27 Dec 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 3538 / EPVPN 2681).07:32:26
@test-user:c.imperishable.namerendakuenthusiast⚡️ left the room.08:42:28
@pinpox:matrix.orgpinpox changed their display name from pinpox to pinpox [DECT: 7170].15:22:44
28 Dec 2024
@joerg:thalheim.ioMic92#ccc-nixos:lassul.us17:52:31
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.org left the room.17:57:45
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan (DECT: 56490).18:41:49
@joerg:thalheim.ioMic92 @cinerealkiara:matrix.org: we are heading out 19:12:07
29 Dec 2024
@xoredg:matrix.orgxored joined the room.01:27:49
@xoredg:matrix.orgxoredcan anyone help me out? this is driving me crazy, i'm building the same config (asides for disk names) on a VM for testing and on a server for deployment, the server is failing as it apparently cant find /dev/mapper/crypted1 which is my first luks partition, I run this on the VM and it doesn't fail at all, what could be happening here?01:28:56
@xoredg:matrix.orgxoredthis is the last from the logs https://pastebin.com/vif4ag0901:30:40
@xoredg:matrix.orgxoredapprently it was some stale zfs stuff on the disks or something, i did a provider install of another distro and apparently that wiped the data or did something that disko didnt by default so when i started nixos-anywhere after that install it worked02:08:39
@xoredg:matrix.orgxoredi saw disko tries to wipefs and dd some initial blocks but i still ended up in some corrupted state it looks like02:09:53
@unsafe_andrew:matrix.desu-infra.ruu:a joined the room.13:03:51
30 Dec 2024
@sylvie:karp.lolSylvie (They/She) 🏳️‍⚧️ changed their display name from Sylvie (she/it) 🏳️‍⚧️ to Sylvie (any) 🏳️‍⚧️.09:02:20
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius (DECT: 3538 / EPVPN 2681) to raitobezarius.16:28:30
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan (DECT: 56490) to matthewcroughan.17:27:43
31 Dec 2024
@brian:bmcgee.ie@brian:bmcgee.ie

I'm experimenting with a new setup, using vmVariantWithDisko to test things out. I've defined a few btrfs subvolumes, one of them being /home. It seems that the user creation script is running before the subvolumes are being mounted, which means my user has no home for example.

Is there something I'm missing / misconfigured?

17:07:21
@brian:bmcgee.ie@brian:bmcgee.ie I'm seeing nixos systemd[1]: home.mount: Directory /home to mount over is not empty, mounting anyway 17:12:39
@brian:bmcgee.ie@brian:bmcgee.ieTrying out some suggestions from here https://github.com/nix-community/disko/issues/19217:49:44
@phaer:matrix.orgphaer changed their display name from phaer (8650 at 38c3) to phaer.19:23:46
@tanja:catgirl.cloudTanja (she/her) changed their display name from Tanja (she/her) [DECT 6929] to Tanja (she/her).20:59:17
@joerg:thalheim.ioMic92Also would go for the neededForBoot21:48:19
@joerg:thalheim.ioMic92 Afaik we are doing zpool destroy, but if that doesn't not help, blkdiscard /dev/nvmen0p1 might 21:50:05
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:06
@brian:bmcgee.ie@brian:bmcgee.ie neededForBoot doesn't seem to help. Been reading through https://github.com/NixOS/nixpkgs/issues/6481 as well. 16:51:55
@brian:bmcgee.ie@brian:bmcgee.ie

Mic92: I adjusted by btrfs volume definitions to more closely match what Lily Foster had, mainly just adding a root mountpoint of /vol/root and removing mountpoint definitions in my subvolumes since their paths matched anyway.

Now neededForBoot seems to have the desired effect and /home is being mounted before the user activation script is trying to do anything.

    mdadm = {
      raid0 = {
        type = "mdadm";
        level = 0;
        content = {
          type = "luks";
          name = "crypted-root";
          settings = {
            allowDiscards = true;
          };
          content = {
            type = "btrfs";
            mountpoint = "/vol/root";
            subvolumes = {
              "/root" = {
                mountpoint = "/";
              };
              "/home" = {
                mountOptions = [
                  "compress=zstd"
                ];
              };
              "/nix" = {
                mountOptions = [
                  "compress=zstd"
                  "noatime"
                ];
              };
              "/var/log" = {
                mountOptions = [
                  "compress=zstd"
                  "nodatacow"
                ];
              };
            };
          };
        };
      };
      raid5 = {
        type = "mdadm";
        level = 5;
        content = {
          type = "luks";
          name = "crypted-archive";
          content = {
            type = "btrfs";
            mountpoint = "/vol/archive";
            subvolumes = {
              "/archive/media" = {
                mountOptions = [
                  "compress=zstd"
                ];
              };
              "/archive/backups" = {
                mountOptions = [
                  "compress=zstd"
                ];
              };
            };
          };
        };
      };
    };
  };

  # ensure /home is mounted before home directories are created
  fileSystems."/home".neededForBoot = true;
17:26:54
@brian:bmcgee.ie@brian:bmcgee.ieI do not confess to understanding the why, just that my VM is now working as expected17:27:25
@brian:bmcgee.ie@brian:bmcgee.ie

This is what it looked like before

    mdadm = {
      raid0 = {
        type = "mdadm";
        level = 0;
        content = {
          type = "luks";
          name = "crypted-root";
          settings = {
            allowDiscards = true;
          };
          content = {
            type = "btrfs";
            extraArgs = [ "-f" ];
            subvolumes = {
              "/root" = {
                mountpoint = "/";
              };
              "/home" = {
                mountpoint = "/home";
                mountOptions = [
                  "compress=zstd"
                ];
              };
              "/nix" = {
                mountpoint = "/nix";
                mountOptions = [
                  "compress=zstd"
                  "noatime"
                ];
              };
              "/var/log" = {
                mountpoint = "/var/log";
                mountOptions = [
                  "compress=zstd"
                  "nodatacow"
                ];
              };
            };
          };
        };
      };
      raid5 = {
        type = "mdadm";
        level = 5;
        content = {
          type = "luks";
          name = "crypted-archive";
          content = {
            type = "btrfs";
            extraArgs = [ "-f" ];
            subvolumes = {
              "/archive" = {
                mountpoint = "/archive";
                mountOptions = [
                  "compress=zstd"
                  "noatime"
                ];
              };
              "/archive/media" = {
                mountpoint = "/archive/media";
                mountOptions = [
                  "compress=zstd"
                  "noatime"
                ];
              };
              "/archive/backups" = {
                mountpoint = "/archive/backups";
                mountOptions = [
                  "compress=zstd"
                  "noatime"
                ];
              };
            };
          };
        };
      };
    };
  };

17:28:27
@brian:bmcgee.ie@brian:bmcgee.ie *

Mic92: I adjusted my btrfs volume definitions to more closely match what Lily Foster had, mainly just adding a root mountpoint of /vol/root and removing mountpoint definitions in my subvolumes since their paths matched anyway.

Now neededForBoot seems to have the desired effect and /home is being mounted before the user activation script is trying to do anything.

    mdadm = {
      raid0 = {
        type = "mdadm";
        level = 0;
        content = {
          type = "luks";
          name = "crypted-root";
          settings = {
            allowDiscards = true;
          };
          content = {
            type = "btrfs";
            mountpoint = "/vol/root";
            subvolumes = {
              "/root" = {
                mountpoint = "/";
              };
              "/home" = {
                mountOptions = [
                  "compress=zstd"
                ];
              };
              "/nix" = {
                mountOptions = [
                  "compress=zstd"
                  "noatime"
                ];
              };
              "/var/log" = {
                mountOptions = [
                  "compress=zstd"
                  "nodatacow"
                ];
              };
            };
          };
        };
      };
      raid5 = {
        type = "mdadm";
        level = 5;
        content = {
          type = "luks";
          name = "crypted-archive";
          content = {
            type = "btrfs";
            mountpoint = "/vol/archive";
            subvolumes = {
              "/archive/media" = {
                mountOptions = [
                  "compress=zstd"
                ];
              };
              "/archive/backups" = {
                mountOptions = [
                  "compress=zstd"
                ];
              };
            };
          };
        };
      };
    };
  };

  # ensure /home is mounted before home directories are created
  fileSystems."/home".neededForBoot = true;
17:28:48
@pinpox:matrix.orgpinpox changed their display name from pinpox [DECT: 7170] to pinpox.18:20:02

Show newer messages


Back to Room ListRoom Version: 10