You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Pre-requisites

Ticket

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.

Security Group for SFS access

A security group for the VM that want to mount the file share is required. In particular ports 111/2049 for TCP/UDP should be allowed for ingress (and egress).

This security group needs to be available and added to the VMs that want to access the SFS.

If you don't have the ssh-nfs security group available in your tenant, you can create it with the following rules:

Rule nameDirectionRule TypeProtocolPort RangeSource TypeSourceDestination Type

egressCustom RuleTCP
All
Instance

egressCustom RuleUDP
All
Instance
22-tcpingressCustom RuleTCP22Network0.0.0.0/0Instance
2049-tcpingressCustom RuleTCP2049Network0.0.0.0/0Instance
2049-udpingressCustom RuleUDP2049Network0.0.0.0/0Instance
111-tcpingressCustom RuleTCP111Network0.0.0.0/0Instance
111-udpingressCustom RuleUDP111Network0.0.0.0/0Instance

Create Server Openstack SFS

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

select TYPE as Openstack SFS and name as <tenant name>-sfs-server, e.g., be-rmib-rss-sfs-server and click save changes

this will create the storage server. Now you can create the File shares, from the same page, go to the File Shares tab.

Create a File share

and click +ADD 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, e.g., be-rmib-rss-sfs-test, set the size, and select 'nova' as the availability zone.  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.

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:

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

... and fill the required information:

Mount file share to VM

To mount the shared filesystem in a VM you can type the following commands:

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

Example:

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


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

  • No labels