Closed ltetrel closed 5 years ago
nfs - file server https://help.ubuntu.com/community/SettingUpNFSHowTo maybe compute canada has a more simple way to create a shared volume
reply from CC
There is no magical fileshare service deployed currently (something like AWS EFS, but we might add in OpenStack Manilla backed by cephfs in the near future) so you will have to do your own NFS or similar shares using one instance.
sudo mkdir /shared
modify /etc/exports
by adding /shared IP.0/24(rw,sync,no_root_squash,no_all_squash)
enable nfs server daemon sudo systemctl enable nfs-kernel-server
then restart the nfs server daemon sudo systemctl restart nfs-server
/etc/fstab
by adding HOSTIP:/shared /shared nfs rw,noatime,nolock,hard,tcp 0 0
remount all filesystem sudo mount -a
It is not possible to have one volume attach to more than one instance. In consequence, we have to deal with many different volumes for each instance, which can be really huge. The idea would be to create just one server the would manage the data, and create a share folder to all the instances.