OpenStack Queens + ceph 集成(一)基础依赖安装

OpenStack Queens + ceph 集成(一)基础依赖安装

1 环境信息

OS CentOS7.6
MEM 64G
CPU E5-2609 v2
机器数量 3台
网络 2个万兆,bond模式4

修改所有节点 /etc/hosts 信息

10.32.xxx.xx  node15
10.32.xxx.xx  node16
10.32.xxx.xx  node17

2 时钟同步(ntp)

所有节点

yum install -y chrony

控制节点
编辑/etc/chrony.conf文件,修改

server  iburst
allow 10.32.xxx.0/24

启动并设置开机自启

systemctl enable chronyd.service && systemctl start chronyd.service

其他节点

编辑/etc/chrony.conf 文件并注释除server 值外的所有内容。修改它引用控制节点:

server node15 iburst

启动并设置开机自启

systemctl enable chronyd.service && systemctl start chronyd.service

3 启用openstack库

yum install -y centos-release-openstack-queens 
yum install python-openstackclient -y

4 禁用防火墙和selinux

systemctl stop firewalld && systemctl disable firewalld
setenforce 0
sed -i 's/enforcing/disabled/g' /etc/selinux/config
reboot

5 配置数据库

yum install mariadb mariadb-server python2-PyMySQL

创建并编辑 /etc/my.cnf.d/openstack.cnf

[mysqld]
max_connections = 4096
bind-address = 10.32.254.15
default-storage-engine = innodb
innodb_file_per_table = on
collation-server = utf8_general_ci
character-set-server = utf8
datadir = /rs1/mysql

修改/usr/lib/systemd/system/mariadb.service,加入参数LimitNOFILE=65535,不然max_connections不生效

启动并设置开机自启

systemctl enable mariadb.service && systemctl start mariadb.service

设置数据库密码

mysql_secure_installation

6 配置消息队列(只在控制节点即可)

yum install rabbitmq-server
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service

添加openstack用户

rabbitmqctl add_user openstack qiniu
# 配置权限
rabbitmqctl set_permissions openstack ".*" ".*" ".*"

7 配置缓存服务

yum install memcached python-memcached
# 修改/etc/sysconfig/memcached
OPTIONS="-l 10.32.xxx.xx,::1"

启动并设置开机自启

systemctl daemon-reload
systemctl enable memcached.service
systemctl start memcached.service

你可能感兴趣的:(OpenStack Queens + ceph 集成(一)基础依赖安装)