openstack

openstack - host vm setting

sysman 2021. 1. 12. 23:35

VM세팅 파라미터

hostname cpu ram hdd ip os role
controller.park.com 2 4g sda:30g
sdb:20g
x.x.x.110/24 centos7.3 controller node
compute.park.com 4 4g sda:20g
sdb:20g
sdc:20g
x.x.x.111/24 centos7.3 compute node
network.park.com 2 2g sda:20g
sdb:20g
sdc:20g
sdd:10g
x.x.x.112/24 centos7.3 network node

 

controller, compute, network 3개 전부

# systemctl disable fierewalld

#systemctl stop firewalld

#systemctl disable NetworkManager   //openstack network 사용을 위해 disable함 

#systemctl stop NetworkManager

#setenforce 0

#getenforce

#vi /etc/selinux/config

SELINUX=permissive

 

controller, compute, network 3개 전부

#vi /etc/hosts

x.x.x.110 controller.park.com controller 

x.x.x.111 compute.park.com compute

x.x.x.112 network.park.com network

 

ntp설정

controller 설정

#yum install chrony -y

#vi /etc/chrony.conf

server 1.time.bora.net iburst

server 2.asia.pool.ntp.org iburst

server 3.asia.pool.ntp.org iburst

allow x.x.x/24

 

#systemctl start chronyd

#systemctl enable chronyd

#systemctl status chronyd

#chronyc sources

#timedatectl

 

compute network 설정

#yum install chrony -y

#vi /etc/chrony.conf

server controller.park.com iburst

 

#systemctl start chronyd

#systemctl enable chronyd

#chronyc sources

#timedatectl

 

 

mariadb설치

controller 설정

#yum -y install centos-release-openstack-queens

#yum -y install mariadb mariadb-server python2-PyMySQL

#vi /etc/my.cnf.d/openstack.cnf

[mysqld]
bind-address=x.x.x.110
default-storage-engine=innodb
innodb_file_per_table
max_connections=4096
collation-server=utf8_general_ci

 

#systemctl enable mariadb

#systemctl start mariadb

#ps -ef | grep mysql

 

 

#mysql_secure_installation
Enter current password for root (enter for none): 엔터 
OK, successfully used password, moving on...
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 
Remove anonymous users? [Y/n] n
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] n
Reload privilege tables now? [Y/n] n

# mysql -u root -p

MariaDB [(none)]> show databases;

 

RabbitMQ 설치 openstack 프로세스 및 어플리케이션 , 서버사이의 데이터를 교환메세지 및 통신

controller 설정..

# yum install rabbitmq-server
# rpm -qa | grep rabbitmq
# systemctl enable rabbitmq-server

# systemctl start rabbitmq-server 

# systemctl status rabbitmq-server

# rabbitmqctl add_user openstack password
Creating user "openstack"

 

# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions for user "openstack" in vhost "/"

# lsof -i tcp:5672

 

 

Memcached 설치 -인증에 사용하는 임시데이터 또는 어플리케이션이 클라이언트 요청에 따라 접속 횟수를 감소하기 위해 메모리에 데이터를 캐시하거나 저장위해 사용하는 용도

controller 설정...

# yum install memcached python-memcached -y

# vi /etc/sysconfig/memcached

OPTIONS="-l x.x.x.110,::1"

# systemctl enable memcached

# systemctl start memcached

# systemctl status memcached

#ps -ef  | grep memcached

lsof -i tcp:11211

 

 

'openstack' 카테고리의 다른 글

openstack - glance 설치  (0) 2021.01.18
openstack - keystone 설치  (0) 2021.01.16
openstack - ubuntu 16.04 devstack 설치  (0) 2021.01.12
openstack- centos 7.3 packstack 설치  (0) 2021.01.12
오픈스택 -구성종류  (0) 2021.01.11