Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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. Create Server Openstack SFS

1.1 From Morpheus go to Infrastructure → Storage, select the Servers tab and click +ADD

select

1.2. Fill the following data:

  • Select TYPE as Openstack SFS

...

  • Add a NAME as <tenant name>-sfs-

...

  • server, e.g., be-rmib-rss-sfs-server

...

  • Select the CLOUD from the list (usually

Once saved this will create the storage server.

2. Create a File share

Now that you have a storage server for SFS, you can create the File shares,

2.1  From from the same page, go to the File Shares tab.

Create a File share

and click 2.2 Click +ADD button to create a file share and select the Openstack SFS share

select the Storage server as the one you created in the previous step, give it a name

2.3 Fill the information:

  • Give it a NAME, e.g., be-rmib-rss-sfs-test

...

  • Select the STORAGE SERVICE you create in the previous step;
  • Select 'nova' as the AVAILABILITY ZONE;
  • Set the SIZE,.

Then the availability zone.  Then click "Save Changes"

Image RemovedImage Added

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.

3. Network configuration required for the VMs that need to access the SFS

The VMs that are going to use the SFS must be in the network of the SFS server, example:

Image Removed

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).

Image Added

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:

Image Added

Then continue with normal provisioning.

4. Adding permissions to use the Shared Filesystem

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 To do that, you can select the share in question in "Infrastructure → Storage → File Shares", once there,   and click on the "Access" tab and , then click the "+ ADD" button ...

... and 4.2 Now you can fill the required information:

  • NAME: e.g. share-router
  • ROUTER: private-router
  • AUTHORIZATION TYPE: IP
  • PERMISSION: Read Only or Read/Write access
  • ACCESS CONSTRAINT: Access IP of the local machine on the shared file system network (e.g. 10.84.??.??/32) or the range of IPs for all machines on the SFS network (10.84.??.0/24). In order to get the IP of your VM on the SFS network. Go to Provisioning > Instances > find your VM and click on it. Then go to network section as described below:

Image Added

You will be able to see your private network and sfs network IPs:

Image Added


5. Mount file share to VM

To Now that everything is configured, you can login into your machine and mount the shared filesystem in a VM you can type using the following commands:

sudo mkdir /sfs-test # create the directory to mount the filesystem
sudo mount <PUT_YOUR_SFS_URL_HERE> /sfs-test

...

sudo mkdir /sfs-test # create the directory to mount the filesystem
sudo mount 10.83.81.227:/share_d161509e_2ea9_43f2_a472_b263ede7628f /sfs-test


MORE ADVANCED: Alternatively, you can add an entry in the /etc/fstab to automatically mount the filesystem.