전체 글(64)
-
[구성]repository 구성
[repository 구성] 1). 필요 패키지 설치(ISO 마운트 하여 진행) # yum install createrepo # yum install httpd 2). repository 공간 생성 및 package 파일 저장 # mkdir /repo # rpm 파일 저장 3). repository DB 생성 # cd /repo # createrepo . 4). http 설정 # cd /etc/httpd/conf.d/ # vi repo.conf # Alias [웹 노출 경로] "[repository 경로]" >> 입력 후 저장 ex) Alias /repo "/repo" 5) 서비스 재시작 [Linux 6] # service httpd restart [Linux 7] # systemctl restart h..
2021.01.08 -
[Command] RHCS
[클러스터 명령어] - 조회 명령어 # clustat # clustat -i 2 (2초 간격으로 상황 조회) - 클러스터 SW 시작 명령어 # service cman start # service rgmanager start - 클러스터 SW 중지 명령어 # service cman stop # service rgmanager stop - Fail-Over (목적지 node에서 수행) # clusvcadm -r [service] - 수동 서비스 시작 # clusvcadm -e [service] - 수동 서비스 중지 # clusvcadm -d [service] - 수동 서비스 재시작 # clusvcadm -R [service]
2021.01.07 -
[Command]Pacemaker 기본 명령어
[상태 조회명령어] - 설정 조회 # pcs config - 클러스터 서비스 정상여부 조회 # pcs cluster status - 리소스 조회 # pcs resource show [resource_id] - 펜싱(Stonith) 조회 # pcs stonith show [클러스터 시작명령어] - 시작 # pcs cluster start [node명] - 중지 # pcs cluster stop [node명] - 클러스터 대기 모드 # pcs standby [node 명] - 클러스터 대기모드 비활성화 # pcs unstandby [node명] [클러스터 리소스 명령어] - 리소스 이동 # pcs resource move [resource_id] [destination node명] - 리소스 재배치 # pc..
2021.01.07 -
[Command] umount 정리
[umount] 사용법 # umount [파일시스템] ex) umount /Test [옵션] -n : /etc/mtab 파일을 갱신하지 않고 마운트를 해제 -v : 자세한 정보 출력 -a : /etc/mtab 파일에 명시된 모든 파일시스템의 마운트를 해제 -t : 파일시스템의 종류 -at : /etc/mtab파일에 명시도니 모든 파일시스템 중 유저가 입력한 파일시스템만 마운트 해제 [umount 안되는 경우 조치 방법] 1. umount가 되지 않는 경우(busy error 및 해당 파일시스템을 쓰는 경우) 1) 프로세스 및 사용자 확인 # fuser -cu [파일시스템] # fuser -cu /Test 2) 프로세스 및 사용자를 확인 후 불필요하게 파일시스템을 점유하고 있는 프로세스일 경우 kill 진..
2021.01.06 -
[Command]mount 정리
[mount] 사용법 # mount [파티션/Logical Volume] [파일시스템 명] ex) mount /dev/sdb1 /Test [옵션] -a, --all : fstab 파일에 언급된 모든 파일시스템을 마운트 -v, --verbose : 자세한 출력 모드 -f, --fake : 실제 시스템 호출은 하지 않고 마운트할 수 있는지 점검 (보통 -v 플래그를 써서 mount 명령의 결과를 알고자 할 때 유용 ) -n, --no-mtab : /etc/mtab 파일에 쓰기 작업을 하지 않고 마운트 (/etc가 읽기전용 파일시스템인 경우에 필요) -r, --read-only : 읽기만 가능하게 마운트. ( 같은 옵션으로 -o ro ) -w, --rw : 읽기/쓰기 모드로 마운트. ( 같은 옵션으로 -o r..
2021.01.06 -
[Command]테이블스페이스 Command
[테이블스페이스 사용량 조회 최신쿼리] SELECT substr(a.tablespace_name,1,30) tablespace, round(sum(a.total1)/1024/1024,1) "TotalMB", round(sum(a.total1)/1024/1024,1)-round(sum(a.sum1)/1024/1024,1) "UsedMB", round(sum(a.sum1)/1024/1024,1) "FreeMB", round((round(sum(total1)/1024/1024,1)-round(sum(a.sum1)/1024/1024,1))/round(sum(a.total1)/1024/1024,1)*100,2) "Used%" FROM (select tablespace_name, 0 total1, sum(bytes..
2021.01.05