feat: move /home and /opt to cephfs and tweak mounts
This commit is contained in:
@@ -11,26 +11,6 @@ let
|
||||
|
||||
compute = {
|
||||
deployment.tags = [ "compute" "c0" "cluster" ];
|
||||
|
||||
fileSystems = {
|
||||
"/users" = {
|
||||
device = "172.16.239.222:/home";
|
||||
fsType = "nfs4";
|
||||
options = [
|
||||
"soft"
|
||||
"defaults"
|
||||
"noauto"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.automounts = [
|
||||
{
|
||||
where = "/users";
|
||||
wantedBy = [ "default.target" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
mkCompute = host:
|
||||
@@ -46,9 +26,9 @@ let
|
||||
automount.enable = true;
|
||||
users = true;
|
||||
opt = true;
|
||||
work = false;
|
||||
data = false;
|
||||
ceph = false;
|
||||
work = true;
|
||||
data = true;
|
||||
ceph = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ let
|
||||
map (n: (
|
||||
rec {
|
||||
idx = 110 + n;
|
||||
iface = if n < 11 then "enp34s0np0" else "enp33s0np0";
|
||||
iface = if n > 1 && n < 11 then "enp34s0np0" else "enp33s0np0";
|
||||
name = "c0-${toString n}";
|
||||
address = "172.16.239.${toString idx}";
|
||||
ipoib = "10.1.6.${toString idx}";
|
||||
|
||||
Reference in New Issue
Block a user