环境介绍
看官方文档 , 什么环境也描述得不清楚,只说要在controller node 和share node 上做配置,也没有画一个架构图。
如果你有share node(上面有sdb, sdc等存储设备可用)的话,就按照文档来。
其实,更常见的一种情景时:
三个控制节点+N个计算节点, 其中控制节点上跑Manila服务, 由另外的一套存储(如Isilon, netapp等)提供NFS资源给Manila使用。
Manila 对接存储设备,其实类似cinder, 其backend driver因设备不同而不同; 但manila有一个通用的driver可以使用,叫generic , generic其实是拿Openstack环境中的cinder volume通过manila提供NFS服务。
下文以generic为例,详细描述配置,网络,以及使用Manila share的方法。
manila.conf配置
如下是我摸索出来的配置, service_instance_XXX是用service_image_name启动的instance时的一些参数,应该很好理解。
其中service_network_cidr 怎么配呢?
[generic]
share_driver = manila.share.drivers.generic.GenericShareDriver
interface_driver = manila.network.linux.interface.OVSInterfaceDriver
driver_handles_share_servers = True
service_instance_password = manila
service_instance_user = manila
service_image_name = manila-service-image
manila_service_keypair_name = default
cinder_volume_type = netapp-iscsi
service_instance_flavor_id = 22
service_network_name = manila-service-network
service_network_cidr = 10.56.60.0/24
service_instance_security_group = default
service_instance_name_template = manila_service_instance_%s
share_backend_name = GENERIC
volume_snapshot_name_template = manila-snapshot-%s
service_instance_smb_config_path = $share_mount_path/smb.conf
share_volume_fstype = ext4
share_helpers = CIFS=manila.share.drivers.helpers.CIFSHelperIPAccess, NFS=manila.share.drivers.helpers.NFSHelper
网络
manila服务启动之后,就会出现manila-service-network 网络,这个是service network, manila service instance运行在该网络中,在该instance中提供nfs server , 这个instance在官方文档中也叫做share server,感觉叫法很混乱,所以文档不好懂。
[root@cloud-02 manila]# openstack network list
+-----------------------------------+-----------------------------------+-------------------------------------+
| ID | Name | Subnets |
+-----------------------------------+-----------------------------------+-------------------------------------+
| 4e7c6d2a-13f0-48e1-b9ce- | private62 | 09396cd6-cceb-4510-94ac- |
| 9f75d72d0f67 | | bb39a68aac9b |
| 5033ac56-a4f5-4d9d- | manila-service-network | |
| 80c0-3139cf74f33d | | |
这个manila-service-network网络如何设置呢?我这里采用一个私网,建议不要跟系统中现有的网络相同,以便区分。
创建share network,所谓share network, 就是nfs client端。
[root@cloud-02 manila]# manila share-network-create --neutron-net-id 4e7c6d2a-13f0-48e1-b9ce-9f75d72d0f67 --neutron-subnet-id 09396cd6-cceb-4510-94ac-bb39a68aac9b --name share-net
+-------------------+--------------------------------------+
| Property | Value |
+-------------------+--------------------------------------+
| network_type | None |
| name | share-net |
| segmentation_id | None |
| created_at | 2017-12-13T09:05:53.564134 |
| neutron_subnet_id | 09396cd6-cceb-4510-94ac-bb39a68aac9b |
| updated_at | None |
| mtu | None |
| gateway | None |
| neutron_net_id | 4e7c6d2a-13f0-48e1-b9ce-9f75d72d0f67 |
| ip_version | None |
| cidr | None |
| project_id | a3c5f0b64a2042beb10929c4ca58c3bf |
| id | 91319f52-b3c8-487a-8638-4ed7b0af7d20 |
| description | None |
+-------------------+--------------------------------------+
service network 和 share network 如何通信呢? service network是在service这个租户之下,而share network 是在其他的租户下面,
- 如果share network是一个租户的私有网络, 则manila要求该网络必须通过router连接到外部网络。
- 如果share network是一个公共的网络, 则由用户去保证share network和service network的互通,还没有测试!!!
借用一张图:
图中的英文术语跟官方文档是一致的。
Manila Pool
[root@cloud-sz-control-b13-01 ~]# manila pool-list
+--------------------------------------------------------------------------+----------------------------------------------+---------+----------------------+
| Name | Host | Backend | Pool |
+--------------------------------------------------------------------------+----------------------------------------------+---------+----------------------+
| cloud-sz-control-b13-01@generic#GENERIC | cloud-sz-control-b13-01 | generic | GENERIC |
| cloud-sz-control-b13-01@isilon#EMC_NAS_Storage | cloud-sz-control-b13-01 | isilon | EMC_NAS_Storage |
| cloud-sz-control-b13-01@netapp#FAS8040_01_aggr1_sas | cloud-sz-control-b13-01 | netapp | FAS8040_01_aggr1_sas |
| cloud-sz-control-b13-02@generic#GENERIC | cloud-sz-control-b13-02 | generic | GENERIC |
| cloud-sz-control-b13-02@isilon#EMC_NAS_Storage | cloud-sz-control-b13-02 | isilon | EMC_NAS_Storage |
| cloud-sz-control-b13-02@netapp#FAS8040_01_aggr1_sas | cloud-sz-control-b13-02 | netapp | FAS8040_01_aggr1_sas |
| cloud-sz-control-b13-03@generic#GENERIC | cloud-sz-control-b13-03 | generic | GENERIC |
| cloud-sz-control-b13-03@isilon#EMC_NAS_Storage | cloud-sz-control-b13-03 | isilon | EMC_NAS_Storage |
| cloud-sz-control-b13-03@netapp#FAS8040_01_aggr1_sas | cloud-sz-control-b13-03 | netapp | FAS8040_01_aggr1_sas |
+--------------------------------------------------------------------------+----------------------------------------------+---------+----------------------+
Manila Type
[root@cloud-02 manila-share]# manila type-create generic yes
yes代表的是driver_handles_share_servers=yes, 我的理解是manila driver是否要创建service instance,Manila backend driver必须明确指定这个参数
参见官方解释
For simplicity, this guide describes configuring the Shared File Systems service to use one of either:
the generic back end with the driver_handles_share_servers mode (DHSS) enabled that uses the Compute service (nova), Image service (glance), Networking service (neutron) and Block storage service (cinder); or,
the LVM back end with driver_handles_share_servers mode (DHSS) disabled.
在对接EMC isilon设备时,通常Openstack环境与存储设备是三层互通,2层不通。
所以这时,就需要设置driver_handles_share_servers 为false.
[root@cloud-sz-control-b13-02 neutron-openvswitch-agent]# manila create --share-type isilon nfs 3
ERROR: Share network must be set when the driver_handles_share_servers is true.
[root@cloud-02 manila-share]# manila type-list
+--------------------------------------+---------+------------+------------+--------------------------------------+----------------------+
| ID | Name | visibility | is_default | required_extra_specs | optional_extra_specs |
+--------------------------------------+---------+------------+------------+--------------------------------------+----------------------+
| edeb96d4-ea2d-4421-8641-edbe61ac0426 | generic | public | - | driver_handles_share_servers : True | |
+--------------------------------------+---------+------------+------------+--------------------------------------+----------------------+
Create Manila share
[root@cloud-02 manila-share]# manila create --share-network share-net --share-type generic nfs
--name share3 1
+---------------------------------------+--------------------------------------+
| Property | Value |
+---------------------------------------+--------------------------------------+
| status | creating |
| share_type_name | generic |
| description | None |
| availability_zone | None |
| share_network_id | 91319f52-b3c8-487a-8638-4ed7b0af7d20 |
| share_server_id | None |
| share_group_id | None |
| host | |
| revert_to_snapshot_support | False |
| access_rules_status | active |
| snapshot_id | None |
| create_share_from_snapshot_support | False |
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | b7298f01-0b25-4444-8963-090318586dd9 |
| size | 1 |
| source_share_group_snapshot_member_id | None |
| user_id | 4fc3ae38619744bf9cccbf0ee7c77274 |
| name | share3 |
| share_type | edeb96d4-ea2d-4421-8641-edbe61ac0426 |
| has_replicas | False |
| replication_type | None |
| created_at | 2017-12-13T09:09:02.000000 |
| share_proto | NFS |
| mount_snapshot_support | False |
| project_id | a3c5f0b64a2042beb10929c4ca58c3bf |
| metadata | {} |
+---------------------------------------+--------------------------------------+
[root@cloud-02 manila-share]# manila list
+--------------------------------------+--------+------+-------------+-----------+-----------+-----------------+--------------------------------------------------------------+-------------------+
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+--------------------------------------+--------+------+-------------+-----------+-----------+-----------------+--------------------------------------------------------------+-------------------+
| b7298f01-0b25-4444-8963-090318586dd9 | share3 | 1 | NFS | available | False | generic | cloud-sz-control-b13-01.sz.cloud.genomics.cn@generic#GENERIC | nova |
+--------------------------------------+--------+------+-------------+-----------+-----------+-----------------+--------------------------------------------------------------+-------------------+
[root@cloud-sz-control-b13-02 manila-share]# openstack server list --all
+------------------------+------------------------+--------+------------------------+----------------------+
| ID | Name | Status | Networks | Image Name |
+------------------------+------------------------+--------+------------------------+----------------------+
| fb6a5295-23a4-491b- | 2583fb50-21bd- | BUILD | manila-service- | manila-service-image |
| a6ce-55f8e9a980fe | 416d-b435-0c5c9b3f48f4 | | network=10.56.60.13 | |
注意416d-b435-0c5c9b3f48f4就是service instance.
[root@cloud-sz-control-b13-02 manila-share]# openstack network show manila-service-network
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2017-12-13T08:49:24Z |
| description | |
| dns_domain | None |
| id | 5033ac56-a4f5-4d9d-80c0-3139cf74f33d |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| mtu | 1450 |
| name | manila-service-network |
| port_security_enabled | False |
| project_id | bb66e61953184400a1a7f75138924a2a |
| provider:network_type | vxlan |
| provider:physical_network | None |
| provider:segmentation_id | 26 |
| qos_policy_id | None |
| revision_number | 4 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | d347b686-8e19-4179-8359-834d92c9a4aa |
| updated_at | 2017-12-13T09:09:03Z |
+---------------------------+--------------------------------------+
[root@cloud-sz-control-b13-02 manila-share]# manila show share3
+---------------------------------------+-----------------------------------------------------------------------+
| Property | Value |
+---------------------------------------+-----------------------------------------------------------------------+
| status | available |
| share_type_name | generic |
| description | None |
| availability_zone | nova |
| share_network_id | 91319f52-b3c8-487a-8638-4ed7b0af7d20 |
| export_locations | |
| | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| | preferred = False |
| | is_admin_only = False |
| | id = 032f859e-86d7-4d6a-9b05-cbaa75136be8 |
| | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| | preferred = False |
| | is_admin_only = True |
| | id = 7901bd37-5d97-4009-b62d-96c72a18a863 |
| | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| share_server_id | 2583fb50-21bd-416d-b435-0c5c9b3f48f4 |
| share_group_id | None |
| host | cloud-sz-control-b13-01.sz.cloud.genomics.cn@generic#GENERIC |
| revert_to_snapshot_support | False |
| access_rules_status | active |
| snapshot_id | None |
| create_share_from_snapshot_support | False |
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | b7298f01-0b25-4444-8963-090318586dd9 |
| size | 1 |
| source_share_group_snapshot_member_id | None |
| user_id | 4fc3ae38619744bf9cccbf0ee7c77274 |
| name | share3 |
| share_type | edeb96d4-ea2d-4421-8641-edbe61ac0426 |
| has_replicas | False |
| replication_type | None |
| created_at | 2017-12-13T09:09:02.000000 |
| share_proto | NFS |
| mount_snapshot_support | False |
| project_id | a3c5f0b64a2042beb10929c4ca58c3bf |
| metadata | {} |
+---------------------------------------+-----------------------------------------------------------------------+
How to use the Nfs?
创建一个vm , 注意,它运行在share network里面。
[root@cloud-02 manila-share]# openstack server create --nic net-id=4e7c6d2a-13f0-48e1-b9ce-9f75d72d0f67 --image CentOS-7 --key-name default manila-user
[root@cloud-02 manila-share]# openstack server list
+----------------------------+------------------------+--------+-----------------------------+------------+
| ID | Name | Status | Networks | Image Name |
+----------------------------+------------------------+--------+-----------------------------+------------+
| 41d688b3-10f3-41bc-b79f- | manila-user | ACTIVE | private62=10.56.62.11, | CentOS-7 |
| d59da89bcd95 | | | 10.225.0.9 | |
\[root@cloud-02 manila-share]# manila access-allow share3 ip 10.56.62.11
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| access_key | None |
| share_id | b7298f01-0b25-4444-8963-090318586dd9 |
| access_type | ip |
| access_to | 10.56.62.11 |
| access_level | rw |
| state | queued_to_apply |
| id | 772580ae-3f65-4048-a30e-960c5294e2bb |
+--------------+--------------------------------------+
[root@cloud-02 manila-share]# ssh 10.225.0.9
root@10.225.0.9's password:
Last login: Wed Dec 13 17:13:21 2017 from 10.225.0.19
[root@manila ~]# mount 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 /mnt
[root@manila ~]#
[root@manila ~]# cd /mnt/
[root@manila mnt]# ls
lost+found
Usual Case
share network 没有上接router
Manila使用geniric driver时, 要求share network的上面必须接到一个router中,为了和service network 打通,如果没有接,则会报如下错误:
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server [req-a323e281-b7cb-458b-bf32-6de113bd123e 4fc3ae38619744bf9cccbf0ee7c77274 a3c5f0b64a2042beb10929c4ca58c3bf - - -] Exception during message handling
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 167, in wrapped
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return f(self, *args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/utils.py", line 519, in wrapper
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return func(self, *args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 1605, in create_share_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server {'status': constants.STATUS_ERROR}
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server self.force_reraise()
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 1595, in create_share_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server share_group=share_group_ref,
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 516, in _provide_share_server_for_share
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return _provide_share_server_for_share()
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return f(*args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 512, in _provide_share_server_for_share
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server metadata=metadata))
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 528, in _create_share_server_in_backend
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server metadata=metadata)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 3238, in _setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server self.force_reraise()
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 3189, in _setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server network_info, metadata=metadata)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/driver.py", line 882, in setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return self._setup_server(*args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/drivers/generic.py", line 877, in _setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server self.admin_context, network_info)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/drivers/service_instance.py", line 413, in set_up_service_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server context, instance_name, network_info)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/drivers/service_instance.py", line 520, in _create_service_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server network_data = self.network_helper.setup_network(network_info)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server return f(*args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/manila/share/drivers/service_instance.py", line 1037, in _get_private_router
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server _('Subnet gateway is not attached to the router.'))
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server ServiceInstanceException: Subnet gateway is not attached to the router.
Share instance是什么?
一个share instance 就是一个nfs share entry.
manila-share.log:82134:2017-12-13 17:09:02.852 21 DEBUG manila.share.manager [req-98882a61-66fe-4d99-9ffd-db73f8926a73 4fc3ae38619744bf9cccbf0ee7c77274 a3c5f0b64a2042beb10929c4ca58c3bf - - -] Using share_server 2583fb50-21bd-416d-b435-0c5c9b3f48f4 for share instance 3b7fc019-18d2-4a7a-9b08-e5b944f610b9 _provide_share_server_for_share /usr/lib/python2.7/site-packages/manila/share/manager.py:498
[root@cloud-sz-control-b13-01 manila]# openstack server list --all
+------------------------+------------------------+--------+------------------------+----------------------+
| ID | Name | Status | Networks | Image Name |
+------------------------+------------------------+--------+------------------------+----------------------+
| fb6a5295-23a4-491b- | 2583fb50-21bd- | ACTIVE | manila-service- | manila-service-image |
| a6ce-55f8e9a980fe | 416d-b435-0c5c9b3f48f4 | | network=10.56.60.13 | |
[root@cloud-sz-control-b13-01 manila]# manila show share3
+---------------------------------------+-----------------------------------------------------------------------+
| Property | Value |
+---------------------------------------+-----------------------------------------------------------------------+
| status | available |
| share_type_name | generic |
| description | None |
| availability_zone | nova |
| share_network_id | 91319f52-b3c8-487a-8638-4ed7b0af7d20 |
| export_locations | |
| | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| | preferred = False |
| | is_admin_only = False |
| | id = 032f859e-86d7-4d6a-9b05-cbaa75136be8 |
| | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| | preferred = False |
| | is_admin_only = True |
| | id = 7901bd37-5d97-4009-b62d-96c72a18a863 |
| | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
| share_server_id | 2583fb50-21bd-416d-b435-0c5c9b3f48f4 |
| share_group_id | None |
| host | cloud-sz-control-b13-01.sz.cloud.genomics.cn@generic#GENERIC |
| revert_to_snapshot_support | False |
| access_rules_status | active |
| snapshot_id | None |
| create_share_from_snapshot_support | False |
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | b7298f01-0b25-4444-8963-090318586dd9 |
| size | 1 |
| source_share_group_snapshot_member_id | None |
| user_id | 4fc3ae38619744bf9cccbf0ee7c77274 |
| name | share3 |
| share_type | edeb96d4-ea2d-4421-8641-edbe61ac0426 |
| has_replicas | False |
| replication_type | None |
| created_at | 2017-12-13T09:09:02.000000 |
| share_proto | NFS |
| mount_snapshot_support | False |
| project_id | a3c5f0b64a2042beb10929c4ca58c3bf |
| metadata | {} |
+---------------------------------------+-----------------------------------------------------------------------+
## service instance 是如何提供nfs 的?
service instance 会挂载一个cinder volume上来,这个instance把/dev/vdb, vdc
```bash
[root@cloud-02 neutron-openvswitch-agent]# openstack volume list --all
+------------------------------+------------------------------+--------+------+-------------------------------+
| ID | Display Name | Status | Size | Attached to |
+------------------------------+------------------------------+--------+------+-------------------------------+
| 909086ba-7002-476b- | manila-share-3b7fc019-18d2 | in-use | 1 | Attached to fb6a5295-23a4 |
| 9b67-b1202d1c052d | -4a7a-9b08-e5b944f610b9 | | | -491b-a6ce-55f8e9a980fe on |
| | | | | /dev/vdb |
+------------------------------+------------------------------+--------+------+-------------------------------+
[root@cloud-sz-control-b13-02 neutron-openvswitch-agent]# manila show share3 |grep share_instance
| | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9