A network file system (NFS) allows computers on a network to share resources. In cluster scheduling scenarios, environments with NFSs are required to ensure the normal running of training or inference jobs. An NFS can be installed on a server or client as required.
apt install -y nfs-kernel-server
mkdir -p /data/atlas_dls chmod 750 /data/atlas_dls/
/data/atlas_dls service_IP_address (with necessary permissions)
systemctl restart rpcbind.service systemctl enable rpcbind.service
systemctl status rpcbind.service
If the following information is displayed, the service is running properly:
● rpcbind.service - RPC bind portmap service
Loaded: loaded (/lib/systemd/system/rpcbind.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-01-08 16:39:03 CST; 6 days ago
Docs: man:rpcbind(8)
Main PID: 2952 (rpcbind)
Tasks: 1 (limit: 29491)
CGroup: /system.slice/rpcbind.service
└─2952 /sbin/rpcbind -f -w
Jan 08 16:39:03 ubuntu-211 systemd[1]: Starting RPC bind portmap service...
Jan 08 16:39:03 ubuntu-211 systemd[1]: Started RPC bind portmap service.
systemctl restart nfs-server.service systemctl enable nfs-server.service
systemctl status nfs-server.service
If the following information is displayed, the service is running properly: If the NFS service fails to be started, rectify the fault by referring to Failed to Execute df -h and Failed to Start NFS.
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2024-01-08 16:39:03 CST; 6 days ago
Main PID: 3220 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 29491)
CGroup: /system.slice/nfs-server.service
Jan 08 16:39:03 ubuntu-211 systemd[1]: Starting NFS server and services...
Jan 08 16:39:03 ubuntu-211 exportfs[3181]: exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/data/atlas_dls".
Jan 08 16:39:03 ubuntu-211 exportfs[3181]: Assuming default behaviour ('no_subtree_check').
Jan 08 16:39:03 ubuntu-211 exportfs[3181]: NOTE: this default has changed since nfs-utils version 1.0.x
Jan 08 16:39:03 ubuntu-211 systemd[1]: Started NFS server and services.
cat /var/lib/nfs/etab
If the following information is displayed, the service is running properly:
/data/atlas_dls * (rw, ... displays the configured permission.)
apt install -y nfs-common