Test the GlusterFS server
Building
nxc build -f g5k-nfs-store
Deploying
Reserving the resources
This time two nodes.
export $(oarsub --project lab-2025-compas-nxc -l nodes=2,walltime=1:0:0 "$(nxc helper g5k_script) 1h" | grep OAR_JOB_ID)
Starting the nodes
nxc start -m OAR.$OAR_JOB_ID.stdout -W
Connect
nxc connect
You should now have a tmux
session with 2 panes: one for the server
and one for the node
.
Setting up the GlusterFS volume
We need to create the GlusterFS volume and start it.
From the server
node, run the following commands:
mkdir -p /srv/gv0
gluster volume create gv0 server:/srv/gv0
gluster volume start gv0
Mounting the volume from the compute node
As we already define the mount in the composition, we can simply restart the systemd service:
systemctl restart data.mount
Testing the GlusterFS server
Go on the node
and change directory to the mounted volume:
cd /data
A quick ls
shows that this is empty.
Create a file in it:
touch glusterfs_works
Now go on the server
node and check the directory of the GlusterFS server.
ls /srv/gv0
If the glusterfs_works
file exists, everything worked fine!
Release the nodes
oardel $OAR_JOB_ID