openstack combined with glusterfs storage one (preparation)

1. Machine information

2. Preparation

2.1 , close the NetworkManager service

2.2 , upload the repo file

2.3 . Do time synchronization on each machine

2.4 、Close the selinux service and configure the firewall on each machine

2.5 , configure the hosts file on each machine

3. Deploy O+G environment

3.1 、Install gfs components on each machine

3.2 . Install packstack on YUN 21 and deploy openstack

3.3 , create a gfs volume and mount it

3.4 , enter dash , upload image, create network, modify quota

3.5 . Create glance and cinder volumes and mount them

4. System optimization

 

1. Machine information

 

hostname NIC inet addr       

 

YUN 21 eth1 10.0.0.21       

eth2 192.168.0.121      

eth420.0.0.21     

 

YUN 22 eth2 192.168.0.122        

eth310.0.0.22     

eth7 20.0.0.22     

 

YUN 23 eth2 192.168.0.123       

eth310.0.0.23     

eth7 20.0.0.23       

 

YUN24eth0192.168.0.124       

eth1 10.0.0.24       

eth620.0.0.24     

 

Installed the desktop version of the centos6.5 system

(The reason for installing the desktop version of the system is that the identification of hardware by different physical machines requires differences in software package support. For example, in one case, after installing a system with a desktop on a Lenovo physical machine, it does not need to install additional drivers. The intel 10 Gigabit network card on the physical machine , which does not exist on the system without the desktop).

 

2. Preparation

2.1. Close the NetworkManager service

如果不关闭的话,都无法PING通其他机器,在最简版的centos系统中不需要考虑这个服务。

 

每个机器上都做下面操作

# service NetworkManager stop

 

# chkconfig NetworkManager off

 

2.2、上传repo文件

每个机器上操作

# yum makecache

 

2.3、在每个机器上做时间同步

# yum install  -y ntp ntpdate ntp-doc

配置NTP

# vi /etc/ntp.conf

把下面的内容加以注释,使其失效

restrict default kod nomodify notrap nopeer noquery

restrict -6 default kod nomodify notrap nopeer noquery

 

restrict 127.0.0.1

restrict -6 ::1

 

server 0.centos.pool.ntp.org iburst

server 1.centos.pool.ntp.org iburst

server 2.centos.pool.ntp.org iburst

server 3.centos.pool.ntp.org iburst

 

添加一行

server  192.168.0.100

 

# service ntpd start

 

# chkconfig ntpd on

 

# ntpdate -u 192.168.0.124

IP地址是192.168.0.124的物理机是配置好的NTP服务器端)

 

2.4、每台机器上关闭selinux服务、配置防火墙

# setenforce 0

 

# vi /etc/sysconfig/selinux

SELINUX=disabled

 

# vi /etc/sysconfig/iptables

ssh规则下添加

-A INPUT -p tcp -m multiport --dports 24007:24047 -j ACCEPT

-A INPUT -p tcp -m tcp --dport 111 -j ACCEPT

-A INPUT -p udp -m udp --dport 111 -j ACCEPT

-A INPUT -p tcp -m multiport --dports 38465:38485 -j ACCEPT

-A INPUT -p tcp -m multiport --dports 49152:49216 -j ACCEPT

-A INPUT -p tcp -m multiport --dports 16509 -j ACCEPT

 

# service iptables restart

 

2.5、每台机器上配置hosts文件

# vi /etc/hosts

添加

192.168.0.121      YUN21

192.168.0.122      YUN22

192.168.0.123      YUN23

192.168.0.124      YUN24

 


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325478518&siteId=291194637