nvme0n1p2 does not have a valid v1.2 superblock, not importing!
I've been struggling to solve this issue for several days now. I have two dedicated servers, both with the same disko and hardware config (same CPU, RAM, both with 2x 512GB SSDs). One of them installed perfecting, a new one I just got refuses to boot and refuses to mount the mdadm RAID 1 array. It gets stuck during the boot and goes into emergency mode. I'm using nixos-anywhere to provision the host.
Rebooting into recovery mode and trying to mount using mdadm gets me:
```
nvme0n1p2 does not have a valid v1.2 superblock, not importing!
```
I've tried no LUKS, tried resizing the two partitions to exactly match sizes. I tried using 1.0 metadata. I tried daytime and night-time (maybe the server was sleepy?) I tried partition it myself and skipping disko, but couldn't figure out how to get cryptsetup luksOpen running in the nixos-anywhere installer
It doesn't seem to be with the specific hardware either because I changed physical hardware on my new server at least once. Maybe it's a kernel or nix changed that broke it because it has been ~1 month between the working server install and this one?
```nix
boot.initrd.availableKernelModules = [ "ixgbe" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "ip_tables" ];
boot.extraModulePackages = [ ];
boot.swraid = {
enable = true;
};
disko.devices = {
disk = {
disk1 = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
mdadm = {
size = "100%";
content = {
type = "mdraid";
name = "raid1";
};
};
};
};
};
disk2 = {
type = "disk";
device = "/dev/nvme1n1";
content = {
type = "gpt";
partitions = {
mdadm = {
start = "500M";
end = "-2048";
content = {
type = "mdraid";
name = "raid1";
};
};
};
};
};
};
mdadm = {
raid1 = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions = {
luks = {
size = "100%";
label = "luks";
content = {
type = "luks";
name = "cryptroot";
extraOpenArgs = [
"--allow-discards"
"--perf-no_read_workqueue"
"--perf-no_write_workqueue"
];
content = {
type = "btrfs";
mountpoint = "/";
extraArgs = [ "-f" ];
mountOptions = [ "noatime" ];
subvolumes = {
"@root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
};
"@home" = {
mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
};
"@nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
};
"@persist" = {
mountpoint = "/persist";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
};
};
};
};
};
};
};
};
};
};
```
0 条评论