devices.srv1.node1: fix nfs

This commit is contained in:
陈浩南 2024-09-17 10:06:56 +08:00
parent 9fff0e1b4b
commit 91db634820
4 changed files with 12 additions and 3 deletions

View File

@ -13,6 +13,7 @@ inputs:
eno2 = { ip = "192.168.178.2"; mask = 24; gateway = "192.168.178.1"; };
};
cluster.nodeType = "worker";
initrd.sshd.enable = true;
};
services.beesd.instances.root = { device = "/"; hashTableSizeMB = 256; threads = 4; };
packages =
@ -48,6 +49,13 @@ inputs:
};
};
boot.initrd.network.enable = true;
boot.initrd.systemd.network.networks."10-eno2" = inputs.config.systemd.network.networks."10-eno2";
boot.initrd.systemd.extraBin =
{
"ifconfig" = "${inputs.pkgs.nettools}/bin/ifconfig";
"mount.nfs" = "${inputs.pkgs.nfs-utils}/bin/mount.nfs";
"mount.nfs4" = "${inputs.pkgs.nfs-utils}/bin/mount.nfs4";
};
services.rpcbind.enable = true;
};
}

View File

@ -14,7 +14,7 @@ inputs:
time.timeZone = "Asia/Shanghai";
boot =
{
supportedFilesystems = [ "ntfs" "nfs" ];
supportedFilesystems = [ "ntfs" "nfs" "nfsv4" ];
# consoleLogLevel = 7;
};
hardware.enableAllFirmware = true;

View File

@ -34,7 +34,8 @@ inputs:
services.resolved.enable = false;
};
# ip=dhcp only attain ipv4
kernelParams = [ "ip=on" ];
# ip=on will reset systemd-networkd configs
# kernelParams = [ "ip=on" ];
};
}
)

View File

@ -34,7 +34,7 @@ inputs:
# disk for srv1
"megaraid_sas"
# disks for cluster
"nfs"
"nfs" "nfsv4"
# netowrk for srv1
"bnx2x" "tg3"
]