YUMSERV
[Victoria] Cinder 설치
OpenStack 2021. 5. 13. 10:18

[Openstack 설치글] [CLOUD/OpenStack] - Openstack-Victoria설치(사전작업) [CLOUD/OpenStack] - [Victoria] Keystone 설치 [CLOUD/OpenStack] - [Victoria] Glance 설치 [CLOUD/OpenStack] - [Victoria] Nova 설치 [CLOUD/OpenStack] - [Victoria] Horizon 설치 [CLOUD/OpenStack] - [Victoria] Neutron 설치 [CLOUD/OpenStack] - [Victoria] Cinder 설치 1. Cinder 데이터베이스 생성 MariaDB [(none)]> CREATE DATABASE cinder; Query OK, 1 row affected ..

article thumbnail
[정리] Cinder 이론
OpenStack 2021. 5. 13. 10:18

1. Cinder 정의 Cinder : 스토리지 서비스로, 컴퓨트 서비스 Nova에게 볼륨 서비스를 제공하고 있습니다. 2. Cinder 아키텍쳐 설정 - cinder-api : API 요청을 수락하고 , 처리를 위해 cinder-volume에 보냅니다 - cinder-volume : Block Storage서비스와 직접 상호작용하며, Cinder-scheduler 와 동일한 처리를 합니다. Cinder-api로부터 받은 요청을 처리하는데 스토리지 제공을 위해 백엔드에 존재하는 볼륨 디바이스에 대한 읽기 쓰기등에 요청에 응답합니다. NAS/SAN, NFS, ISCSI, Ceph 등 사용가능한 다양한 드라이버가 있습니다. - cinder-scheduler : 볼륨을 생성하는데 최적의 프로바이더 노드를 선택..

[Victoria] Neutron 설치
OpenStack 2021. 4. 20. 19:42

[Openstack 설치 글] [CLOUD/OpenStack] - Openstack-Victoria설치(사전작업) [CLOUD/OpenStack] - [Victoria] Keystone 설치 [CLOUD/OpenStack] - [Victoria] Glance 설치 [CLOUD/OpenStack] - [Victoria] Nova 설치 [CLOUD/OpenStack] - [Victoria] Horizon 설치 [CLOUD/OpenStack] - [Victoria] Neutron 설치 [CLOUD/OpenStack] - [Victoria] Cinder 설치 * Controller 노드에서 진행 1. Neutron 데이터베이스 생성 root@controller:~# mysql -u root -p Enter pa..

python-rados 연동
BlockStorage(Ceph) 2021. 4. 16. 08:22

python 으로 ceph 연동 1. 패키지 설치 $ yum install python-rados 2. python ceph 연동 확인 # python Python 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import rados, sys >>> cluster = rados.Rados(conffile='/etc/ceph/ceph.conf') cluster librados 버전 확인 >>> print "\nlibrados version: " + str(clus..

article thumbnail
[Zabbix] pdf-report
MONITORING 2021. 3. 28. 19:41

Zabbix의 값들과 그래프를 pdf 리포트 형태로 받는 방법을 설명하겠습니다. $ git clone https://github.com/martinm76/zabbix-pdf-report /usr/share/zabbix/zabbix-pdf-report $ cd /usr/share/zabbix/zabbix-pdf-report/ $ ./fixrights.sh $ cp -arp config.inc.php.dist config.inc.php $ vi config.inc.php zabbix 버전에 맞게 수정 $zabbix_version = 5.2 ; Timezone -> Seoul 로 변경 $timezone = 'Asia/Seoul'; pdf 나오는 로고도 변경이 가능합니다. $pdf_logo = './images..

article thumbnail
[Zabbix] Zabbix-Server 5.2 소스 설치
MONITORING 2021. 3. 28. 18:11

* CentOS 7 설치 * Apache : 2.4 Mysql 5.7 Php : 7.3 $ groupadd zabbix $ useradd -g zabbix zabbix $ mkdir /usr/local/zabbix $ mkdir /usr/local/zabbix/server $ wget https://cdn.zabbix.com/zabbix/sources/stable/5.2/zabbix-5.2.5.tar.gz $ tar xvfz zabbix-5.2.5.tar.gz $ mv zabbix-5.2.5 /usr/local/zabbix $ cd /usr/local/zabbix/zabbix-5.2.5/ $ ./configure --prefix=/usr/local/zabbix/server --enable-server -..

[Error] fatal: git fetch-pack: expected shallow list
LINUX/ERROR 2021. 3. 25. 10:57

ZABBIX 소스 설치 하던 중 아래와 같이 에러메시지가 뜨면서 오류가 발생했다. go: github.com/jackc/pgx/v4@v4.8.2-0.20200910143026-040df1ccef85 requires github.com/jackc/pgconn@v1.6.5-0.20200905181414-0d4f029683fc requires github.com/jackc/pgmock@v0.0.0-20190831213851-13a1b77aafa2 requires github.com/jackc/pgtype@v0.0.0-20190828014616-a8802b16cc59 requires github.com/jackc/pgx/v4@v4.0.0-pre1.0.20190824185557-6972a5742186 requir..

article thumbnail
[Zabbix] Mysql DB 모니터링
MONITORING 2021. 3. 14. 19:11

1. DB 설정 모니터링 할 DB쪽에 계정을 설정해줍니다. MariaDB [(none)]> create user 'zabbixagent'@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> grant usage on *.* to 'zabbixagent'@'%'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> quit Bye 2. zabbix-agent 설정 $ mkdir -p /var/lib/zabbix $ cat /var/l..

article thumbnail
[Zabbix] telegram 연동
MONITORING 2021. 3. 14. 15:03

* ZABBIX 5.2 환경입니다. (zabbix4 버전대의 경우 셋팅하는 방식이 다릅니다. Zabbix에서 사용하는 알람을 받는방법은 여러가지가 있습니다. 대표적인 것으로 메일, sms, 그리고 탤래그램등이 있습니다. 설정하는 방법은 아래와 같습니다. 관리 - 미디어 타입 - Telegram 으로 들어갑니다. 여기서 ParaseMode 를 HTML로 작성한뒤, Token 값은 텔레그램 봇의 토큰값으로 작성해주시면 됩니다. 텔래그램 토큰값에 대해서 모르는 부분이 있으시면 아래 참고글 확인해보시면 됩니다. 설정이후, 정상적으로 오는지는 미디어 - 텔래그램 옆에 테스트 항목이 있습니다. to 부분에는 저의 id 값 (id 값을 확인하려면 get id 라는 봇을 통해서 확인이 가능합니다.) token 값은 봇..

article thumbnail
[Zabbix] apache 모니터링
MONITORING 2021. 3. 14. 15:03

1. Apache 설정 $ vi /etc/httpd/conf.modules.d/00-base.conf LoadModule status_module modules/mod_status.so $ cat /etc/httpd/conf.d/server-status.conf # 아래 내용 추가 SetHandler server-status Require ip xxx.xxx.xxx.xxx/32 Require host localhost #uncomment to only allow requests from localhost $ service httpd restart Redirecting to /bin/systemctl restart httpd.service $ netstat -nltp Active Internet conne..