Change filesystem hetzner

This commit is contained in:
jopejoe1 2024-02-08 10:49:20 +00:00
parent f297813359
commit fe180e34f5

View file

@ -39,49 +39,41 @@
disko.devices = { disko.devices = {
disk = { disk = {
one = { vdb = {
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
boot = { boot = {
size = "500M"; size = "1M";
type = "EF00"; type = "EF02"; # for grub MBR
content = {
type = "mdraid";
name = "boot";
};
}; };
primary = { mdadm = {
size = "100%"; size = "100%";
content = { content = {
type = "lvm_pv"; type = "mdraid";
vg = "pool"; name = "raid0";
}; };
}; };
}; };
}; };
}; };
two = { vdc = {
type = "disk"; type = "disk";
device = "/dev/nvme1n1"; device = "/dev/nvme1n1";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
boot = { boot = {
size = "500M"; size = "1M";
type = "EF00"; type = "EF02"; # for grub MBR
content = {
type = "mdraid";
name = "boot";
};
}; };
primary = { mdadm = {
size = "100%"; size = "100%";
content = { content = {
type = "lvm_pv"; type = "mdraid";
vg = "pool"; name = "raid0";
}; };
}; };
}; };
@ -89,35 +81,19 @@
}; };
}; };
mdadm = { mdadm = {
boot = { raid0 = {
type = "mdadm"; type = "mdadm";
level = 1; level = 0;
metadata = "1.0";
content = { content = {
type = "filesystem"; type = "gpt";
format = "vfat"; partitions = {
mountpoint = "/boot"; primary = {
}; size = "100%";
}; content = {
}; type = "filesystem";
lvm_vg = { format = "ext4";
pool = { mountpoint = "/";
type = "lvm_vg"; };
lvs = {
root = {
size = "95%FREE";
lvm_type = "raid1";
extraArgs = [
# "--raidintegrity"
# "y"
];
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
}; };
}; };
}; };