Multi-storage configuration

Multi-storage configuration

Shared File Systems service can provide access to multiple file storage back ends. In general, workflow with multiple back ends look very similar to Block Storage service one, see Configure multiple-storage back ends in Openstack Block Storage service.

Using manila.conf you can spawn multiple share services. To do it, you must set the enabled_share_backends flag in the manila.conf file. This flag defines the names (separated by a comma) of the configuration stanzas for the different back ends: one name is associated to one configuration group for a back end.

The following example runs three configured share services:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 [DEFAULT]
 enabled_share_backends=backendEMC1,backendEMC2,backendGeneric1,backendGeneric2,backendNetApp

 [backendGeneric1]
 share_driver=manila.share.drivers.generic.GenericShareDriver
 share_backend_name=one_name_for_two_backends
 service_instance_user=ubuntu_user
 service_instance_password=ubuntu_user_password
 service_image_name=ubuntu_image_name
 path_to_private_key=/home/foouser/.ssh/id_rsa
 path_to_public_key=/home/foouser/.ssh/id_rsa.pub

 [backendEMC2]
 share_driver=manila.share.drivers.emc.driver.EMCShareDriver
 share_backend_name=backendEMC2
 emc_share_backend=vnx
 emc_nas_server=1.1.1.1
 emc_nas_password=password
 emc_nas_login=user
 emc_nas_server_container=server_3
 emc_nas_pool_name="Pool 2"

 [backendNetApp]
 share_driver = manila.share.drivers.netapp.common.NetAppDriver
 driver_handles_share_servers = True
 share_backend_name=backendNetApp
 netapp_login=user
 netapp_password=password
 netapp_server_hostname=1.1.1.1
 netapp_root_volume_aggregate=aggr01

To spawn separate groups of share services you can use separate configuration files. If it is necessary to control each back end in separate way, you should provide a single configuration file per each back end.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License http://creativecommons.org/licenses/by/3.0/legalcode.

See All Legal Notices