快速增加controller节点
# controller1节点部署成功后,再添加controller节点,复制配置文件并修改即可
openstack pike 部署 目录汇总 http://www.cnblogs.com/elvi/p/7613861.html
#快速增加controller节点
#controller1节点部署成功后,再添加controller节点,复制配置文件并修改即可 ####################################
#环境准备 #配置hostname,hosts文件,配置ssh免密登录,yum安装源
#参考http://www.cnblogs.com/elvi/p/7736521.html ####################################
#配置参数,用于替换 DBPass=open2017 #SQL root密码
Node=controller3 #节点
Netname=ens37 #网卡名称
SetIP=192.168.58.23 #IP地址 ####################################
#安装 #OpenStack tools 安装
yum install -y python-openstackclient openstack-selinux \
python-openstackclient python2-PyMySQL openstack-utils
#安装Pacemake Corosync
yum install corosync pacemaker pcs fence-agents resource-agents -y
yum install haproxy httpd -y
#MariaDB Galera 安装
yum install mariadb mariadb-server mariadb-galera-server -y
yum install expect -y
#RabbitMQ Cluster 安装群集
yum install rabbitmq-server erlang socat -y
#Keystone安装
yum install -y openstack-keystone httpd mod_wsgi memcached python-memcached
yum install apr apr-util -y
# 安装Glance
yum install -y openstack-glance python-glance
# 安装nova控制节点
yum install -y openstack-nova-api openstack-nova-conductor \
openstack-nova-console openstack-nova-novncproxy \
openstack-nova-scheduler openstack-nova-placement-api
#安装neutron
yum install -y openstack-neutron openstack-neutron-ml2 \
openstack-neutron-linuxbridge python-neutronclient ebtables ipset
#安装dashboard
yum install openstack-dashboard -y
#安装Cinder
yum install openstack-cinder -y
yum install nfs-utils -y #NFS #########################################
#以下配置需按照前面的集群配置,手动进行
#pacemaker+haproxy配置
#Mariadb Galera Cluster 群集
#RabbitMQ Cluster群集 #########################################
#keystone服务 #memcached启动
cp /etc/sysconfig/memcached{,.bak}
sed -i 's/127.0.0.1/0.0.0.0/' /etc/sysconfig/memcached
systemctl enable memcached.service
systemctl start memcached.service
netstat -antp|grep
rsync -avzP -e 'ssh -p 22' controller1:/usr/share/keystone/* /usr/share/keystone/
rsync -avzP -e 'ssh -p 22' controller1:/etc/keystone/* /etc/keystone/
ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
#################
#镜像服务glance
##########controller1节点使用NFS共享glance存储
systemctl enable rpcbind;systemctl start rpcbind
mkdir -p /date/glance
chown glance:nobody /date/glance
mount -t nfs controller1:/date/glance /date/glance
echo "/usr/bin/mount -t nfs controller1:/date/glance /date/glance">>/etc/rc.local
chmod +x /etc/exports
df -h
##########NFS
rsync -avzP -e 'ssh -p 22' controller1:/etc/glance/* /etc/glance/
sed -i '1,10s/controller1/'$Node'/' /etc/glance/glance-api.conf /etc/glance/glance-registry.conf
#################
#同步controller1节点nova,neutron配置并修改
rsync -avzP -e 'ssh -p 22' controller1:/etc/nova/* /etc/nova/
rsync -avzP -e 'ssh -p 22' controller1:/etc/httpd/conf.d/00-nova-placement-api.conf /etc/httpd/conf.d/
rsync -avzP -e 'ssh -p 22' controller1:/etc/haproxy/* /etc/haproxy/
rsync -avzP -e 'ssh -p 22' controller1:/etc/neutron/* /etc/neutron/
sed -i '1,9s/controller1/'$Node'/' /etc/nova/nova.conf
sed -i '1,9s/controller1/'$Node'/' /etc/neutron/neutron.conf
sed -i 's/192.168.58.21/'$SetIP'/' /etc/neutron/plugins/ml2/linuxbridge_agent.ini
sed -i 's/ens37/'$Netname'/' /etc/neutron/plugins/ml2/linuxbridge_agent.ini
#同步controller1节点cinder配置并修改
rsync -avzP -e 'ssh -p 22' controller1:/etc/cinder/cinder.conf* /etc/cinder/
sed -i '1,8s/controller1/'$Node'/' /etc/cinder/cinder.conf
#dashboard
rsync -avzP -e 'ssh -p 22' controller1:/etc/openstack-dashboard/local_settings* /etc/openstack-dashboard/
#################
#启动服务
#Apache
systemctl enable httpd.service haproxy
systemctl start httpd haproxy
netstat -antp|egrep 'httpd'
#glance服务
systemctl enable openstack-glance-api openstack-glance-registry
systemctl restart openstack-glance-api openstack-glance-registry
#nova服务
systemctl enable openstack-nova-api.service \
openstack-nova-consoleauth.service openstack-nova-scheduler.service \
openstack-nova-conductor.service openstack-nova-novncproxy.service
#启动服务
systemctl start openstack-nova-api.service \
openstack-nova-consoleauth.service openstack-nova-scheduler.service \
openstack-nova-conductor.service openstack-nova-novncproxy.service
#neutron服务
systemctl enable neutron-server.service \
neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
neutron-metadata-agent.service neutron-l3-agent.service
systemctl start neutron-server.service \
neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
neutron-metadata-agent.service neutron-l3-agent.service
#neutron-l3-agent为启动xvlan才需要
#
#启动cinder
systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service
systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service
#
#完成后,根据需求加入pacemaker集群资源管理
#########################################
快速增加controller节点的更多相关文章
- 编译安装redis之快速增加redis节点
#: 下载安装包 [root@localhost ~]# wget http://download.redis.io/releases/redis-4.0.14.tar.gz #:解压 [root@l ...
- 基于Docker快速搭建多节点Hadoop集群--已验证
Docker最核心的特性之一,就是能够将任何应用包括Hadoop打包到Docker镜像中.这篇教程介绍了利用Docker在单机上快速搭建多节点 Hadoop集群的详细步骤.作者在发现目前的Hadoop ...
- 微服务探索之路04篇k8s增加子节点,metrics资源监控,ingress-nginx域名配置及https配置
1 k8s增加子节点 1.1 子节点服务器安装docker,使用脚本自动安装 curl -fsSL https://get.docker.com | bash -s docker --mirror A ...
- Memcached 笔记与总结(7)增加虚拟节点
仅仅把 Memcached 服务器集群地址通过一致性哈希转映射在圆环上,可能会出现数据不能均匀地分配给各台 Memcached 服务器. 解决方案是引入虚拟节点,就是把每个映射在圆环上的服务器地址(物 ...
- ligerui_ligerTree_005_动态增加“树”节点
动态添加ligerTree节点:效果图: 源码地址:http://download.csdn.net/detail/poiuy1991719/8571255 <%@ page language= ...
- 原生js快速渲染dom节点
function renderDom(str){ var _div = document.createElement('div'); _div.innerHTML = str; var dom_tem ...
- 修复jquery.treeview的增加子节点的方法的bug
1.修复理由 在一个android项目中用到了treeview控件(本来自己通过android的原生api实现了一个http://www.cnblogs.com/Mr-Nobody/p/3527688 ...
- go CD 用虚拟机快速增加一个新agent
背景 最近项目在用go CD做持续交付.为了最大化利用硬件,所有的agent都是用的vbox的虚拟机.随着pipelines的增加,就需要增加更多的agent. 步骤 为了快速增加新的agent,最简 ...
- Hadoop概念学习系列之Hadoop集群动态增加新节点或删除已有某节点及复制策略导向 (四十三)
不多说,直接上干货! hadoop-2.6.0动态添加新节点 https://blog.csdn.net/baidu_25820069/article/details/52225216 Hadoop集 ...
随机推荐
- LeetCode 695. Max Area of Island (岛的最大区域)
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) conn ...
- UWP 磁贴设置
一:需求 一款好看好用的应用,对于UWP来说,动态的磁贴必不可少. 二:TileUpdateManager类 和TileUpdater类 如果需要更改或更新应用的磁贴,那么首先需要获得TileUpda ...
- 读书笔记-你不知道的JS上-对象
好想要对象··· 函数的调用位置不同会造成this绑定对象不同.但是对象到底是什么,为什么要绑定他们呢?(可以可以,我也不太懂) 语法 对象声明有两个形式: 1.字面量 => var obj = ...
- 用BroadcastReceiver监听手机网络状态变化
android--解决方案--用BroadcastReceiver监听手机网络状态变化 标签: android网络状态监听方案 2015-01-20 15:23 1294人阅读 评论(3) 收藏 举报 ...
- Ionic3 打包并签名Android-App
ionic cordova build android --prod --release 此时,在项目根目录中看下看到生成的apk文件:platforms\android\build\outputs\ ...
- Tempter of the Bone
Problem Description The doggie found a bone in an ancient maze, which fascinated him a lot. However, ...
- Grunt打包之seajs项目【转】
原文:http://www.cnblogs.com/accordion/p/4508154.html grunt与seajs grunt是前端流行的自定义任务的脚手架工具,我们可以使用grunt来为我 ...
- JAVAscript学习笔记 js事件 第一节 (原创) 参考js使用表
<!DOCTYPE html> <html lang="en" onUnload="ud()"> <head> <me ...
- HTML学习笔记 iframe引用页面按列(针对target打开方式解释) 第九节 (原创)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- cocos2d导入iOS原生项目
最近公司最新发下任务让融合一个cocos2dx写的游戏项目融合进现有项目,当看到要求时内心瞬间无数羊驼奔腾.------ 虽说内心是拒绝的,但是任务已经派发就必须要完成啊.所以在网上搜了大量的融入教程 ...