Mounting a shared filesystem
Mounting to an instance
Once the SFS has been shared with your instance, you can proceed to mount it.
Create a directory to which you want to mount the SFS:
mkdir -p /mnt/<SFS_NAME>
Mount the shared filesystem:
mount -t nfs -o nconnect=16 nfs.<DC>.datacrunch.io:<PSEUDO> /mnt/<SFS_NAME>
Add filesystem to the
/etc/fstab
, to have it mount on instance startup:
grep -qxF 'nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults,nconnect=16 0 0' /etc/fstab || echo 'nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults,nconnect=16 0 0' | sudo tee -a /etc/fstab
Mounting to every node in a cluster
pdsh -a "sudo mkdir -vp /mnt/<SFS_NAME> && grep -qxF 'nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults,nconnect=16 0 0' /etc/fstab || echo 'nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults,nconnect=16 0 0' | sudo tee -a /etc/fstab && sudo mount /mnt/<SFS_NAME>"
Where to find the pseudopath

Last updated
Was this helpful?