openstack on centos 7.1(Shared File Systems)
来源:互联网 发布:淘宝客单价计算公式 编辑:程序博客网 时间:2024/06/08 11:51
1.Install and configure controller node
Prerequisites
mysql -u root -pCREATE DATABASE manila;GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'localhost' IDENTIFIED BY 'MANILA_DBPASS'; #Replace MANILA_DBPASS with a suitable passwordGRANT ALL PRIVILEGES ON manila.* TO 'manila'@'%' IDENTIFIED BY 'MANILA_DBPASS';exit;
. admin-openrcopenstack user create --domain default --password-prompt manilaopenstack role add --project service --user manila adminopenstack service create --name manila --description "OpenStack Shared File Systems" shareopenstack service create --name manilav2 --description "OpenStack Shared File Systems" sharev2openstack endpoint create --region RegionOne share public http://controller:8786/v1/%\(tenant_id\)sopenstack endpoint create --region RegionOne share internal http://controller:8786/v1/%\(tenant_id\)sopenstack endpoint create --region RegionOne share admin http://controller:8786/v1/%\(tenant_id\)sopenstack endpoint create --region RegionOne sharev2 public http://controller:8786/v2/%\(tenant_id\)sopenstack endpoint create --region RegionOne sharev2 internal http://controller:8786/v2/%\(tenant_id\)sopenstack endpoint create --region RegionOne sharev2 admin http://controller:8786/v2/%\(tenant_id\)s
Install and configure components
yum install openstack-manila python-manilaclient
/etc/manila/manila.conf
[database]...connection = mysql+pymysql://manila:MANILA_DBPASS@controller/manila #Replace MANILA_DBPASS with the password you chose for the Share File System database[DEFAULT]...rpc_backend = rabbitdefault_share_type = default_share_typerootwrap_config = /etc/manila/rootwrap.confauth_strategy = keystonemy_ip = 10.0.0.11[oslo_messaging_rabbit]...rabbit_host = controllerrabbit_userid = openstackrabbit_password = RABBIT_PASS #Replace RABBIT_PASS with the password you chose for the openstack account in RabbitMQ[keystone_authtoken]...memcached_servers = controller:11211auth_uri = http://controller:5000auth_url = http://controller:35357auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = manilapassword = MANILA_PASS[oslo_concurrency]...lock_path = /var/lib/manila/tmp
su -s /bin/sh -c "manila-manage db sync" manila
Finalize installation
systemctl enable openstack-manila-api.service openstack-manila-scheduler.servicesystemctl start openstack-manila-api.service openstack-manila-scheduler.service
2.Install and configure a share node
Install and configure components
yum install openstack-manila-share python2-PyMySQL
[database]...connection = mysql://manila:MANILA_DBPASS@controller/manila[DEFAULT]...rpc_backend = rabbitdefault_share_type = default_share_typerootwrap_config = /etc/manila/rootwrap.confauth_strategy = keystonemy_ip = MANAGEMENT_INTERFACE_IP_ADDRESS[oslo_messaging_rabbit]...rabbit_host = controllerrabbit_userid = openstackrabbit_password = RABBIT_PASS[keystone_authtoken]...memcached_servers = controller:11211auth_uri = http://controller:5000auth_url = http://controller:35357auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = manilapassword = MANILA_PASS[oslo_concurrency]...lock_path = /var/lib/manila/tmp
Configure share server management support options
Shared File Systems Option 1: No driver support for share servers management
yum install lvm2 nfs-utils nfs4-acl-tools portmapsystemctl enable lvm2-lvmetad.servicesystemctl start lvm2-lvmetad.servicepvcreate /dev/sdcvgcreate manila-volumes /dev/sdc
/etc/lvm/lvm.conf
devices {...filter = [ "a/sdb/", "a/sdc", "r/.*/"]
Configure components
[DEFAULT]...enabled_share_backends = lvmenabled_share_protocols = NFS,CIFS[lvm]share_backend_name = LVMshare_driver = manila.share.drivers.lvm.LVMShareDriverdriver_handles_share_servers = Falselvm_share_volume_group = manila-volumeslvm_share_export_ip = MANAGEMENT_INTERFACE_IP_ADDRESS #Replace MANAGEMENT_INTERFACE_IP_ADDRESS with the IP address of the management network interface on your storage node
Finalize installation
systemctl enable openstack-manila-share.servicesystemctl start openstack-manila-share.service
3.Verify operation
. admin-openrcmanila service-list
0 0
- openstack on centos 7.1(Shared File Systems)
- openstack on centos 7.1(environment)
- openstack on centos 7.1(identity)
- openstack on centos 7.1(image)
- openstack on centos 7.1(compute)
- openstack on centos 7.1(networking)
- openstack on centos 7.1(dashboard)
- openstack on centos 7.1(block storage)
- openstack on centos 7.1(Object Storage)
- GIGA+ : Scalable Directories for Shared File Systems
- openstack on centos 7.1(launch an instance)
- 虚拟机安装centos no valid devices were found on which to cereate new file systems 错误处理
- centos重启报错Umounting file systems:umount:/opt:device is busy
- Installing Devstack (Openstack) on CentOS 7
- centos 下运行程序出现error while loading shared libraries cannot open shared object file错误
- OpenStack Shared Services
- openstack for Mitaka——Shared File System(Manila)安装初探
- Cluster File Systems Discussions
- 网页爬虫简单demo
- jquery实现腾讯夜学堂功能模块开发
- 解决centos7最小化版本没有ifconfig命令的个人笔记
- MongoDB在linux系统下定时备份
- 自由落体和平抛运动
- openstack on centos 7.1(Shared File Systems)
- 深入理解HTTP Session
- Leetcode-climbing-stairs
- Map遍历
- 隐马尔可夫模型(三)——隐马尔可夫模型的评估问题(前向算法)
- 背包问题
- Java8新特性——Lambda
- Dll注入技术之APC注入
- Maven打包Web 项目并且部署到Linux上的Tomcat服务器下