티스토리 뷰

OpenStack Mitaka (미타카) - Manila 설정 # 2 (Compute 노드)

 

OpenStack Shared File System (Manila)을 설치합니다.

여기에서는 다음과 같은 구축 된 환경에 Manila을 추가 설치하고 구성합니다.




 

여기에서는 Compute 노드에 Manila Share를 설치하고 구성합니다.


1. Manila Share를 설치합니다.


# Mitaka , EPEL 에서 설치

[root@node01 ~]# yum --enablerepo=centos-openstack-mitaka,epel -y install openstack-manila-share python-manilaclient




2. Manila Share를 설정합니다.


[root@node01 ~]# mv /etc/manila/manila.conf /etc/manila/manila.conf.org 


[root@node01 ~]# vi /etc/manila/manila.conf

# 새로 만들기

[DEFAULT]

my_ip = 10.0.0.51

api_paste_config = /etc/manila/api-paste.ini

rootwrap_config = /etc/manila/rootwrap.conf

state_path = /var/lib/manila

auth_strategy = keystone

rpc_backend = rabbit

default_share_type = default_share_type

enabled_share_backends = backend01

enabled_share_protocols = NFS,CIFS


# MariaDB의 연결 정보

[database]

connection = mysql://manila:password@10.0.0.30/manila


# Keystone 인증 정보

[keystone_authtoken]

auth_uri = http://10.0.0.30:5000

auth_url = http://10.0.0.30:35357

memcached_servers = 10.0.0.30:11211

auth_type = password

project_domain_name = default

user_domain_name = default

project_name = service

username = manila

password = servicepassword

[oslo_concurrency]

lock_path = $state_path/tmp


# RabbitMQ 인증 정보

[oslo_messaging_rabbit]

rabbit_host = 10.0.0.30

rabbit_port = 5672

rabbit_userid = openstack

rabbit_password = password


[nova]

auth_uri = http://10.0.0.30:5000

auth_url = http://10.0.0.30:35357

memcached_servers = 10.0.0.30:11211

auth_type = password

project_domain_name = default

user_domain_name = default

region_name = RegionOne

project_name = service

username = nova

password = servicepassword


[neutron]

url = http://10.0.0.30:9696

auth_uri = http://10.0.0.30:5000

auth_url = http://10.0.0.30:35357

memcached_servers = 10.0.0.30:11211

auth_type = password

project_domain_name = default

user_domain_name = default

region_name = RegionOne

project_name = service

username = neutron

password = servicepassword


[cinder]

auth_uri = http://10.0.0.30:5000

auth_url = http://10.0.0.30:35357

memcached_servers = 10.0.0.30:11211

auth_type = password

project_domain_name = default

user_domain_name = default

region_name = RegionOne

project_name = service

username = cinder

password = servicepassword


[backend01]

share_backend_name = backend01

share_mount_path = /shares

share_driver = manila.share.drivers.generic.GenericShareDriver

share_volume_fstype = ext4

driver_handles_share_servers = True

volume_name_template = manila-share-%s

volume_snapshot_name_template = manila-snapshot-%s

interface_driver = manila.network.linux.interface.OVSInterfaceDriver

service_instance_user = manila

service_instance_password = manila

service_image_name = manila-service-image

service_instance_network_helper_type = neutron

service_instance_name_template = manila_service_instance_%s

service_instance_flavor_id = 2

service_network_cidr = 10.254.0.0/16

service_instance_smb_config_path = $share_mount_path/smb.conf

smb_template_config_path = $state_path/smb.conf




[root@node01 ~]# chmod 640 /etc/manila/manila.conf 


[root@node01 ~]# chgrp manila /etc/manila/manila.conf 


[root@node01 ~]# mkdir /var/lib/manila 


[root@node01 ~]# chown manila. /var/lib/manila 


[root@node01 ~]# systemctl start openstack-manila-share 


[root@node01 ~]# systemctl enable openstack-manila-share


# 동작 확인

[root@node01 ~]# manila-manage service list 

Binary           Host          Zone             Status     State Updated At

manila-scheduler cent7           nova             enabled    :-)   2016-05-13 12:03:55

manila-share     node01        nova             enabled    :-)   2016-05-13 12:04:03


※ download & Next Menu



저작자 표시 비영리 변경 금지
신고
댓글