Manila實戰總結
環境介紹
看官方文件 , 什麼環境也描述得不清楚,只說要在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
相關文章
- React hooks實戰總結ReactHook
- Git實戰命令總結Git
- Apk瘦身實戰總結APK
- MySQL專案實戰總結MySql
- Elasticsearch 實戰經驗總結Elasticsearch
- vue-cli 實戰總結Vue
- XGFS Manila 驅動釋出!XGFS 實現與 OpenStack 的全面結合
- node實戰前端快取總結前端快取
- Android最新面試實戰總結Android面試
- 1.22-wes實戰-總結
- 【jQuery實戰知識點總結】jQuery
- SQL總結(七)查詢實戰SQL
- stylelint 接入實戰踩坑總結
- 實戰專案後對 React Hooks 總結ReactHook
- Canal詳細入門實戰(使用總結)
- 前端自動化釋出實戰總結前端
- MYSQL實戰-MHA搭建及問題總結MySql
- 響應性web設計實戰總結Web
- 響應式Web設計實戰總結Web
- Kubernetes實戰總結 - DevOps實現(轉載)dev
- Java併發程式設計實戰總結 (一)Java程式設計
- 伺服器專案實戰與總結(五)伺服器
- EasyUI實戰經驗總結,給有需要的人UI
- 響應性web設計實戰總結(二)Web
- Enum列舉型別實戰總結,保證有用!型別
- Flutter 入門與實戰(三十六):Dio 篇章總結Flutter
- 《Linux核心技術實戰課》總結一:PageCacheLinux
- 微信SEO是什麼?微信SEO實戰方法總結
- 介面最佳化的常見方案實戰總結
- RabbitMQ實戰:擴充套件介紹與系列總結MQ套件
- 我的 Android 開發實戰經驗總結Android
- 億級大表分庫分表實戰總結(萬字乾貨,實戰覆盤)
- 史上更全的MySQL高效能優化實戰總結!MySql優化
- 史上更全的 MySQL 高效能優化實戰總結!MySql優化
- Flutter 入門與實戰(六十五):Redux 總結篇FlutterRedux
- Linux效能優化實戰CPU篇之總結(四)Linux優化
- 【機器學習】帶你3分鐘看完《機器學習實戰》總結篇機器學習
- 實習總結