The creation of Shared File Systems (SFS) can be done directly using the OpenStack Horizon User Interface (UI). Instructions of how to access the UI can be found in EWC Cloud Management UI - Accessing the Horizon portal. In order to manage SFSs via the CLI follow the instructions in EWC OpenStack API access - EUMETSAT - How to manage Shared File Systems (SFS) with the OpenStack CLI.
Create a Share Network
SFS are shared among different users and machines by using a share network. The steps to create such share network using the OS Horizon UI are:
1.1 Select Share from the left-hand side menu, and from the drop-down menu, click on Share Networks.
1.2 Click on Create Share Network on the right-hand side.
1.3 On the prompt window give a name to the share network in the field Name. The recommended format for this is <tenant-name>-sfs-server. Add a description appropriate to the purpose of the share network.
1.4 In the next step, leave both of the subnet options as None. NOT SURE ABOUT THIS ONE. CHECK
Create a File share
File shares can also be created in the OS Horizon UI by following these steps:
2.1 Select Share from the left-hand side menu, and from the drop-down menu, click on Shares.
2.2 Click on Create Share on the right-hand side.
2.3 In the prompt window fill the following fields:
- Share Name: select a name for the file share, the recommendation is to use <tenancy_name>-sfs.
- (Optional) Description: add a description of the file share.
- Share Protocol: select NFS.
- Size: select the required size for the SFS, e.g. 1 GB.
- Share Type: choose a type from those available in the drop-down menu, e.g. SFS.
- Share Network: select the network created in the previous step.
- (Optional) Metadata: Add any metadata that the file share needs in the format
key=value.
Grant access to the SFS to a VM
TODO
Mount file share to a VM
Even if the file share is accessible to the VM, one can not read or write on it until it is mounted to a directory in the VM. In order to do so, first create an appropriate directory on the VM
mkdir <path>/<to>/<local>/<share>
then grab the export path for the file share. This can be found TODO
Then mount the selected export path into the created directory
sudo mount <share_export_path> <path>/<to>/<local>/<share>



