最新公告
  • 欢迎您光临IO源码网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!立即加入我们
  • OpenStack-Rocky高可用集群部署 PDF 下载

    OpenStack-Rocky高可用集群部署 PDF 下载

     
    本站整理下载:
    链接:https://pan.baidu.com/s/1ctd4aGjwURtwOrFM1v5t0w 
    提取码:1ubs 
     
     
    相关截图:
     
    主要内容:
    各节点设置各节点配置IP与主机名解析
    [[email protected] ~]# more /etc/hosts
    192.168.100.100 controller
    192.168.100.181 controller1
    192.168.100.182 controller2
    192.168.100.183 controller3
    192.168.100.184 compute1
    [[email protected] ~]#
    各节点关闭相关服务与防火墙
    [[email protected] ~]# systemctl stop NetworkManager
    [[email protected] ~]# systemctl disable NetworkManager
    [[email protected] ~]# systemctl stop firewalld.service
    [[email protected] ~]# systemctl stop iptables.service
    [[email protected] ~]# setenforce 0
    各节点时间同步,安装chrony并配置
    控制节点:
    [[email protected] ~]# yum install chrony
    [[email protected] ~]# vim /etc/chrony.conf
    server 127.0.0.1 iburst #注释其它的server
    allow 192.168.100.0/24
    local stratum 10
    [[email protected] ~]# service chronyd restart
    其它节点:
    [[email protected] ~]# yum install chrony
    server 192.168.100.181 iburst #这里填入控制节点的主机IP或主机名
    server controller1 iburst
    [[email protected] ~]# service chronyd restart
    验证(控制节点)
    [[email protected] ~]# chronyc sources
    210 Number of sources = 1
    MS Name/IP address Stratum Poll Reach LastRx Last sample
    ===============================================================================
    ^? localhost 0 6 0 – +0ns[ +0ns] +/- 0ns
    [[email protected] ~]#
    验证(其它节点)
    [[email protected] ~]# chronyc sources
    210 Number of sources = 2
    MS Name/IP address Stratum Poll Reach LastRx Last sample
    ===============================================================================
    ^* 192.168.122.15 10 6 177 19 +506ns[+4678ns] +/- 136us
    ^? controller1 0 8 0 – +0ns[ +0ns] +/- 0ns
    [[email protected] ~]#
    各节点配置yum源,安装配置依赖服务 (OpenStack客户端)
    [[email protected] ~]# more /etc/yum.repos.d/openstack-rocky.repo
    [openstack-rocky]
    name=openstack-rocky
    baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-rocky/
    enabled=1
    gpgcheck=0
    [[email protected] ~]# yum install python-openstackclient openstack-selinux
    [[email protected] ~]# yum upgrade
    B、配置高可用环境
    B1、配置MariaDB-Galera-server集群
    节点A:
    [[email protected] ~]# yum install mariadb mariadb-server
    [[email protected] ~]# service mariadb start
    [[email protected] ~]# mysql_secure_installation
    [[email protected] ~]# yum install mariadb-server-galera
    [[email protected] ~]# vim /etc/my.cnf.d/mariadb-server.cnf
    [galera]
    bind-address = 192.168.100.181
    wsrep_provider = /usr/lib64/galera/libgalera_smm.so
    wsrep_cluster_address =”gcomm://controller1,controller2,controller3″
    wsrep_cluster_name = openstack-cluster-01
    wsrep_node_name = controller1
    wsrep_node_address = 192.168.100.181
    wsrep_on=ON
    wsrep_slave_threads=4
    wsrep_sst_method=rsync
    default_storage_engine=InnoDB
    wsrep_sst_auth=galera:galera #集群认证用户密码
    [[email protected] ~]#
    启动集群第1个节点,添加集群认证用户
    [[email protected] ~]# service mariadb stop
    [[email protected] ~]# galera_new_cluster
    [[email protected] ~]# mysql
    MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO ‘galera’@’%’ IDENTIFIED BY ‘galera’ WITH GRANT OPTION;
    MariaDB [(none)]> flush privileges;
    MariaDB [(none)]> exit
    节点B、C 安装配置数据库(以节点B 为例)
    [[email protected] ~]# yum install mariadb mariadb-server
    [[email protected] ~]# service mariadb start
    [[email protected] ~]# mysql_secure_installation
    [[email protected] ~]# service mariadb stop
    [[email protected] ~]# yum install mariadb-server-galera
    在节点B和C,将节点A的配置文件复制过来,改一下
    [[email protected] ~]# more /etc/my.cnf.d/mariadb-server.cnf
    [galera]
    bind-address = 192.168.100.182 #这里改成各个节点的IP
    wsrep_provider = /usr/lib64/galera/libgalera_smm.so
    wsrep_cluster_address =”gcomm://controller1,controller2,controller13″
    wsrep_cluster_name = openstack-cluster-01
    wsrep_node_name = controller2 #这里改成各个节点的主机名
    wsrep_node_address = 192.168.100.182 #这里改成各个节点的IP
    wsrep_on=ON
    wsrep_slave_threads=4
    wsrep_sst_method=rsync
    default_storage_engine=InnoDB
    启动后查看日志
    [[email protected] ~]# service mariadb start
    [[email protected] ~]# tail /var/log/mariadb/mariadb.log -n 20
    2019-03-05 20:39:01 140188135188224 [Note] WSREP: 1.0 (controller1): State transfer from 0.0 (controller1) complete.
    2019-03-05 20:39:01 140188135188224 [Note] WSREP: Shifting JOINER -> JOINED (TO: 0)
    2019-03-05 20:39:01 140188135188224 [Note] WSREP: Member 1.0 (controller1) synced with group.
    2019-03-05 20:39:01 140188135188224 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0)
    2019-03-05 20:39:01 140188337101568 [Note] WSREP: Synchronized with group, ready for connections
    2019-03-05 20:39:01 140188337101568 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
    2019-03-05 20:39:01 140188478163136 [Note] /usr/libexec/mysqld: ready for connections.
    Version: ‘10.1.20-MariaDB’ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 MariaDB Server

     

     

    *** 次数:10600 已用完,请联系开发者***

    1. 本站所有资源来源于用户上传和网络,因此不包含技术服务请大家谅解!如有侵权请邮件联系客服!384324621@qq.com
    2. 本站不保证所提供下载的资源的准确性、安全性和完整性,资源仅供下载学习之用!如有链接无法下载、失效或广告,请联系客服处理,有奖励!
    3. 您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源!如用于商业或者非法用途,与本站无关,一切后果请用户自负!
    4. 如果您也有好的资源或教程,您可以投稿发布,成功分享后有★币奖励和额外收入!

    IO 源码网 » OpenStack-Rocky高可用集群部署 PDF 下载

    常见问题FAQ

    免费下载或者VIP会员专享资源能否直接商用?
    本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
    提示下载完但解压或打开不了?
    最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。若排除这种情况,可在对应资源底部留言,或 联络我们.。
    找不到素材资源介绍文章里的示例图片?
    对于PPT,KEY,Mockups,APP,网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。
    IO源码吧
    一个高级程序员模板开发平台

    发表评论

    • 97会员总数(位)
    • 11020资源总数(个)
    • 95本周发布(个)
    • 9 今日发布(个)
    • 439稳定运行(天)

    提供最优质的资源集合

    立即查看 了解详情