...
| Info |
|---|
Pre-requisites:
|
| Table of Contents |
|---|
Create a Share Network
Create a share network using the Manila CLI. The recommended naming convention is <tenant_name>-sfs-server
...
NOT SURE IF NEUTRON NET ID IS NECESSARY. CHECK
Create a File share
File shares can be created using the Manila or OpenStack CLIs. First it is recommended to check what types of SFS are available in your cloud, to do that, run
...
| Code Block |
|---|
openstack share show <share_name_or_id> manila show <share_name_or_id> |
Grant access to the SFS to a VM
By default no VM has direct access to the newly created SFS. In order to give access to a VM with IP <instance_ip> , do
...
| Code Block |
|---|
openstack share access delete <access_id> manila access-deny myshare <access_id> |
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
...
| Code Block |
|---|
sudo mount <share_export_path> <path>/<to>/<local>/<share> |
Resizing an existing file share
The size of SFS is specified at the creation of the file share. However it is possible to change the size at a later time. In order to do that one can use the command
...