반응형

SYSTEM/Software 7

MongoDB 6.0.2 sharding replica set

구성 목표 물리서버 3대 Shading 클러스터 ( 장애시 남은 노드 균등 부하 ) 장애노드 장애복구시 우선순위를 자동 failback Mongo-1 Server Mongo-2 Server Mongo-3 Server Role mongos - - - WAS 20001 IP 172.16.1.24 172.16.1.25 172.16.1.26 Shard-1 Primary 30001 Secondary 30001 Arbiter 30001 Replicaset-1 Shard-2 Primary 30002 Arbiter 30002 Secondary 30002 Replicaset-2 Shard-3 Secondary 30003 Primary 30003 Arbiter 30003 Replicaset-3 Shard-4 Arbiter..

SYSTEM/Software 2022.11.11

MariaDB upgrade 10.2 to 10.7

MariaDB를 업그레이드 할 일이 생겼습니다. 기존에 M-S 형태로 사용하던 중 서버를 새로 구입하여 M-S-S 로 하드웨어 스펙업과 동시에 소프트웨어 버전도 업그레이드 하려고합니다. 서버 설치 후 백업데이터를 통한 업그레이드 까지 진행하였으며 11월 중에 라이브서비스를 이관 할 예정이네요 엔진 업그레이드시 별다른 문제는 없었지만 몇몇 옵션들이 더이상 사용되지 않는 것이 확인되었으며 로그의 warning 메세지를 통해 확인 후 설정을 제거하면 됩니다. 1. 환경 Version OS : CentOS 7 to Rocky Linux 8 DB : MariaDB 10.2 to MariaDB 10.7 Server Setting Old_DB : 172.16.1.11 MariaDB-M : 172.16.1.21 Mar..

SYSTEM/Software 2022.11.07

Rocky Linux 8 / cockpit / system monitoring / management

Redhat계열의 Linux 8에는 cockpit이라는 프로그램이 기본 내장된다. cockpit이라는 이름에서 유추할 수 있듯이 리눅스를 조종할 수 있는 기능들이 다수 내장되어있다. 마치 클라우드나 가상화머신의 웹 콘솔처럼 여러 가지 기능을 사용할 수 있어 CMD기반의 컨트롤에 익숙하지 않은 사용자들이 쉽게 접근할 수 있고 웹콜 솔에 CMD 콘솔도 사용할 수 있어 매우 편리하다. 1. INSTALL Rocky Linux 설치 후 처음 접속하면 상단에 아래와 같은 메시지를 확인할 수 있다. 아래의 커맨드로 웹 콘솔을 활성화 systemctl enable --now cockpt.socket 2. Web Console Connect 브라우저에 Linux IP를 넣고 9090 포트로 접근 https://192...

SYSTEM/Software 2022.08.31

linux software raid / mdadm 사용 방법

Raid 구성 -> 초기 설치 시 구성할 할 경우 device type을 raid로 설정하여 진행 raid 장애 복구 -> cat /proc/mdstat or mdadm --detail /dev/mdXX 명령어를 통해 확인 -> 장애 난 Disk 제거 후 신규 Disk 추가 -> 각 사이즈에 맞게 파티셔닝 ( fdisk partition type = linux raid autodetect ) -> 추가된 파티션 별로 mdadm add mdadm /dev/md124 --add /dev/sdb4 mdadm /dev/md125 --add /dev/sdb2 mdadm /dev/md126 --add /dev/sdb1 mdadm /dev/md127 --add /dev/sdb3 ### Raid bitmap 설정 ON..

SYSTEM/Software 2022.08.31

lsyncd + unison 양방향 동기화 / NFS 대체

구성정보 HOST Server#1 Server#2 IP 172.20.0.29 172.20.0.30 SSH Port 7722 7722 Source /imgfile /imgfile Destnation root@172.20.0.30//imgfile root@172.20.0.29//imgfile Permision root root ## 공통 ## 어플리케이션 설치 yum install -y lsyncd unison ## Server#1 ## root 권한으로 패스워드 없이 접속 가능하도록 셋팅 vi /etc/ssh/sshd_config PermitRoot no => PermitRoot yes AllowUsers root@172.20.0.30 root@192.168.100.0/24 ssh-keygen ssh-co..

SYSTEM/Software 2022.08.31

hpsmh - HP Smart Management Home Page on CentOS

HP DL XXX Gen9 And Gen8 CentOS 6, CentOS 7 ## Repo Add vi /etc/yum.repos.d/spp.repo # CentOS 7 ( 아래만 복사해서 사용 ) [spp] name=Service Pack for ProLiant baseurl=http://downloads.linux.hpe.com/repo/spp/rhel/7/x86_64/Current/ ## CentOS 7 enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ServicePackforProLiant # CentOS 6 ( 아래만 복사해서 사용 ) [spp] name=Service Pack for ProLiant baseurl=http://downl..

SYSTEM/Software 2022.08.31

How to install Let's Encrypt SSL / 무료 인증서

테스트 환경 CentOS 8.4 VMware 1. Stand Alone 추후 업데이트 예정 2. webroot 추후 업데이트 예정 3. DNS 3가지 방법중 유일하게 wildcard 인증서 발급가능 Command : certbot certonly -d leeseonjae.n-e.kr -d *.leeseonjae.n-e.kr -d seonjae.n-e.kr -d *.seonjae.n-e.kr -d --manual --preferred-challenges dns [root@localhost test]# certbot certonly -d *.leeseonjae.n-e.kr -d *.seonjae.n-e.kr -d *.jaeseon.n-e.kr -d *.jaeseonlee.n-e.kr --manual --pr..

SYSTEM/Software 2022.08.25
반응형