Skip to main content
Version: 1.3

Create a tenant sharing

Create a share server and share its volumes using NFS/CIFS with others VM on the same network#

Pre-task:#

  • upload manila-service-image-master.qcow2 to /var/support or usb drive
  • import with cli fs_import
    controller> imagecontroller:image> fs_import1: usb2: localEnter index: 21: manila-service-image-master.qcow2

Create a Share network#

Navigate to Project > Share > Share Networks > + CREATE SHARE NETWORK#

/assets/manila/create-share-network.jpeg

/assets/manila/create-share-network01.jpeg

Create a Share - tenant share type#

Navigate to Project > Share > Shares > + CREATE SHARE#

/assets/manila/create-share01.jpeg

  • Create a share protocol NFS or cifs
  • Share Size = 10GB
  • Share Type = tenant_share_type
  • Share network = share_network

/assets/manila/create-share02.jpeg

Create a Rules#

Click on the dropdown button from Actions and select manage rules#

/assets/manila/create-share-rules-01.jpeg

add rule#

/assets/manila/create-share-rules-02.jpeg

Enter the IP address of VM#

/assets/manila/create-share-rules-04.jpeg

Rule created#

/assets/manila/create-share-rules-05.jpeg

Get the shared link#

Navigate to Project > Share > Shares and click the "Share Name"#

/assets/manila/create-share-rules-06.jpeg

Copy the Links#

/assets/manila/create-share-rules-07.jpeg

Mount the share on VM#

ssh to your instances#

ssh [email protected]Warning: Permanently added '192.168.1.162' (ECDSA) to the list of known hosts.Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-66-generic x86_64)
 * Documentation:  https://help.ubuntu.com * Management:     https://landscape.canonical.com * Support:        https://ubuntu.com/advantage
  System information as of Mon Apr  6 05:59:38 UTC 2020
  System load:  0.0               Processes:           87  Usage of /:   5.1% of 19.21GB   Users logged in:     0  Memory usage: 6%                IP address for ens3: 192.168.10.12  Swap usage:   0%

0 packages can be updated.0 updates are security updates.

Last login: Mon Apr  6 05:59:02 2020 from 192.168.1.54ubuntu@ubuntu18:~$

[optional-ubuntu] install nfs-common#

ubuntu@ubuntu18:~$ sudo apt install nfs-common -y

create a folder#

ubuntu@ubuntu18:~$ mkdir nfs-share

mount up#

ubuntu@ubuntu18:~$ sudo mount -t nfs 192.168.10.23:/shares/share-0ef7a3a4-8ed0-4b88-8ce9-1d2ca8532dc8 nfs-share/

check connectivity#

ubuntu@ubuntu18:~$ ls nfs-sharelost+foundubuntu@ubuntu18:~$ touch nfs-share/testingubuntu@ubuntu18:~$ ls nfs-share/lost+found  testing
Last updated on by Roy Tan