Mount the GlusterFS server on the compute nodes
We now need to make the compute nodes mount the PFS server.
To do this, we will also disable the firewall and create a new mounting point (/data
in our case):
node = { pkgs, ... }:
{
# add needed package
environment.systemPackages = with pkgs; [ openmpi ior glusterfs ];
# Disable the firewall
networking.firewall.enable = false;
# Mount the PFS
fileSystems."/data" = {
device = "server:/gv0";
fsType = "glusterfs";
};
};
The gv0
represents the GlusterFS volume (not yet created!).