NFS
Network File System (NFS) is a networking protocol for distributed file sharing. A file system defines the way data in the form of files is stored and retrieved from storage devices, such as hard disk drives, solid-state drives and tape drives. NFS is a network file sharing protocol that defines the way files are stored and retrieved from storage devices across networks.
Note
NFS is a mandatory feature for all clusters set up by Omnia. Omnia sets up the NFS server and mounts the NFS client when nfs_server value is true.
Prerequisites
NFS is set up on Omnia clusters based on the inputs provided in
input/storage_config.yml.Parameter
Details
nfs_client_params
JSON ListRequired
This JSON list contains all parameters required to set up NFS.
For a bolt-on set up where there is a pre-existing NFS server, set
nfs_servertofalse.When
nfs_serveris set totrue, an NFS share is created on a server IP in the cluster for access by all other cluster nodes.Ensure that the value of
share_pathininput/omnia_config.ymlmatches at least one of theclient_share_pathvalues in the JSON list provided.
The fields listed in
nfs_client_paramsare:server_ip: IP of the intended NFS server. To set up an NFS server on the OIM, use the value
localhost. Use an IP address to configure access anywhere else.server_share_path: Folder on which the NFS server mounted.
client_share_path: Target directory for the NFS mount on the client. If left empty, the respective
server_share_path valuewill be taken forclient_share_path.nfs_server: Indicates whether an external NFS server is available (
false) or an NFS server will need to be created (true).client_mount_options: Indicates the NFS share mount options.
k8s_share: Indicates that the target cluster uses Kubernetes.
Note
To install any benchmarking software like UCX or OpenMPI,
k8s_sharemust be set to true.To configure all cluster nodes to access a single external NFS server export, use the below sample:
- { server_ip: 10.5.0.101, server_share_path: "/mnt/share", client_share_path: "/home", client_mount_options: "nosuid,rw,sync,hard", nfs_server: true, slurm_share: true, k8s_share: true }
To configure the cluster nodes to access a new NFS server on the OIM as well as an external NFS server, use the below example:
- { server_ip: localhost, server_share_path: "/mnt/share1", client_share_path: "/home", client_mount_options: "nosuid,rw,sync,hard", nfs_server: true, slurm_share: true, k8s_share: true } - { server_ip: 198.168.0.1, server_share_path: "/mnt/share2", client_share_path: "/mnt/mount2", client_mount_options: "nosuid,rw,sync,hard", nfs_server: false, slurm_share: true, k8s_share: true }
To configure the cluster nodes to access new NFS server exports on the cluster nodes, use the below sample:
- { server_ip: 198.168.0.1, server_share_path: "/mnt/share1", client_share_path: "/mnt/mount1", client_mount_options: "nosuid,rw,sync,hard", nfs_server: false, slurm_share: true, k8s_share: true } - { server_ip: 198.168.0.2, server_share_path: "/mnt/share2", client_share_path: "/mnt/mount2", client_mount_options: "nosuid,rw,sync,hard", nfs_server: false, slurm_share: true, k8s_share: true }
Ensure that an NFS local repository is created by including
{"name": "nfs"},ininput/software_config.json. For more information, click here.If an external NFS share is used, make sure that
/etc/exportson the NFS server is populated with the same paths listed asserver_share_pathin thenfs_client_paramsininput/storage_config.yml.Omnia supports all NFS mount options. Without user input, the default mount options are
nosuid,rw,sync,hard,intr.
Executing the playbook
Execute the storage.yml playbook:
cd storage
ansible-playbook storage.yml -i inventory
Use the linked inventory file for the above playbook.
Note
To run the storage.yml playbook independently from the omnia.yml playbook on Intel Gaudi nodes, start by executing the performance_profile.yml playbook. Once that’s done, you can run the storage.yml playbook separately.
Post configuration, enable the following services (using this command: firewall-cmd --permanent --add-service=<service name>) and then reload the firewall (using this command: firewall-cmd --reload).
nfs
rpc-bind
mountd
Caution
After an NFS client is configured, if the NFS server is rebooted, the client may not be able to reach the server. In those cases, restart the NFS services on the server using the below command:
systemctl disable nfs-server systemctl enable nfs-server systemctl restart nfs-server
When
nfs_serveris false, enable the following services after configuration using this command:firewall-cmd --permanent --add-service=<service name>) and then reload the firewall (using this command:firewall-cmd --reload).nfs
rpc-bind
mountd
If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.