The creation of Shared File Systems (SFS) can be done directly using the OpenStack Horizon UI. Instruction 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 - How to manage Shared File Systems (SFS) with the OpenStack CLI.

Pre-requisite: setting up SFS in a tenancy can be done only by users with ewcloud-tenant-admin role CONFIRM NAME OF ROLE

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:

1.1 Select Share from the left-hand side menu, and from the drop-down menu, click on Shares.

1.2 Click on Create Share on the right-hand side.

1.3 NO MORE STEPS SO FAR CAUSE HORIZON IS BUGGING OUT

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>