NOTE: the contents of this article only apply to the users of the EUMETSAT part of the EWC.
Setting up SFS in a tenancy can be done only by users with ewcloud-tenant-admin role! |
SFS should be available for tenants created after 28/10/2022, if the tenant is older and you wish to use SFS, please open us a ticket here.
1.1 From Morpheus go to Infrastructure → Storage, select the Servers tab and click +ADD
1.2. Fill the following data:
Once saved this will create the storage server.
Now that you have a storage server for SFS, you can create the File shares,
2.1 From the same page, go to the File Shares tab.
2.2 Click +ADD button to create a file share and select the Openstack SFS share
2.3 Fill the information:
Then click "Save Changes"
This will create the Shared Filesystem in the storage backend. Wait until you have the "Share Path:" defined in Morpheus. This will take some time.
Now that you have created the SFS, you can use it in a VM.
In order to do that, when provisioning a VM in Morpheus, you need to select two networks (private + sfs).
Add private first and then using the + button you will be able to add a second network: sfs network. At the end you will see something as below:
Then continue with normal provisioning.
Once the Shared Filesystem is created, you need to add access rules to allow read-only or read/write operations to one machine or multiple machines.
4.1 Go to Infrastructure → Storage → File Shares, and click on the "Access" tab, then click the "+ ADD" button ...
4.2 Now you can fill the required information:
You will be able to see your private network and sfs network IPs:
Now that everything is configured and permissions have been given for access, you can login into your machine and mount the shared filesystem in a VM using the following commands:
|
Example:
|
MORE ADVANCED: Alternatively, you can add an entry in the /etc/fstab to automatically mount the filesystem.