MariaDB check table 수행중 발생 그전에 SSD 디스크 망실로 인해 myisamchk 를 통한 테이블 복구 진행하였음 mysql # check table 테이블명; | 디비.테이블명 | check | error| Found a misplaced row | | 디비.테이블명 | check | error| Partition p201912 returned error | | 디비.테이블명 | check | error| Upgrade required. Please do "REPAIR TABLE `access_request`" or dump/reload to fix it! | 이노디비, 파티셔닝된 테이블 mysqldump 후 다시 복원 mysqldump 디비.테이블명 > 파일.sql mysql 디비 ..
rsync 소유자 및 권한 그대로 복사 원본 서버의 계정이 복사되는 서버에 존재해야 함 /etc/passwd group shadow결국 원본서버와 복사받는서버간 필요로 하는 계정의 UID, GID가 동일 해야함 몇개의 계정만 마추는 경우 (아래 명령어로 함) usermod -u UID 계정이름 groupmod -g GID 계정이름계정과 연결된 홈디렉토리의 변경이 발생함 chown 계정.계정 -R 홈디렉토리 작업후 홈디렉토리도 다시 변경해주는것이 좋음 rsync 서비스 포트를 사용하지 않는다면 openssh 설정에서 root 접근 가능하게 해야함 /etc/ssh/sshd_config PermitRootLogin yesrsync rsync -avz root root 계정으로 avz 옵션을 사용하여 복사
DB 리플리케이션 초기 발생 에러 The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).서버간 server_id 가 동일해서 발생함 # 각 노드에서 sever_id 확인 node1 mysql> SHOW GLOBAL VARIABLES LIKE 'server_id'..
환경 centos8 KVM리눅스 TOP 모니터링중 CPU 100% 프로세스 발견 2347 root 20 0 25732 3884 1596 R 100.0 0.0 56807:26 ksmtuned설명 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/chap-ksm Centos8 에서는 ksmtuned 기본 활성화 되어 있는듯 조치 service ksmtuned stop service ksmtuned start ksmtuned 재시작 (별 문제는 없는듯 함
rhgb quiet 1
테스트 환경 CENTOS5 dd 하드디스크 복제하는 상황 dd if=/dev/sda of=/dev/sdb bs=1024 sda 디스크를 sdb 디스크로 복제 bs=1024 이상 주는 경우 서버 부하 로드가 너무 올라가서 적절한 선에서 선택 (서비스중인 서버) ps -ef | grep dd root 27027 14010 4 02:28 pts/1 00:21:44 dd if /dev/sda of /dev/sdb bs 1024 뭔가 dd 프로세스는 살아 있는데 어느정도 진행되었는지 알길이 없다 dd 가 돌아가는 서버에 ssh 접근 터미널을 하나 더 오픈하고 아래 명령어 실행 kill -USR1 $(pgrep ^dd)기존 dd 명령어 입력했던 터미널 창에서 아래와 같이 표시됨 187450993+0 records ..
장치에 남은 공간이 없음 (No space left on device) 디스크 공간이 충분한데 Write 가 안되는 증상 [root@localhost spool]# touch 1234 touch: cannot touch `1234': 장치에 남은 공간이 없음아이노드 꽉찬 상태 [root@localhost spool]# df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/vda3 2490368 2490368 0 100% / tmpfs 240261 1 240260 1% /dev/shm /dev/vda1 65536 46 65490 1% /boot 통 파티션이라 범인 디렉토리를 찾기 어렵다 아이노드 풀인 디렉토리 찾기 for i in /*; do ech..
참고 원문 https://lists.centos.org/pipermail/centos/2019-October/173932.html https://www.madboa.com/blog/2019/11/14/el8-crypto-policy/ http://www.openssh.com/legacy.html/var/log/secure 로그 메세지 Jun 23 17:06:45 DB1 sshd[1454]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]증상 발견 및 원인? 두 서버간 트러스트 관계를 만들어 scp 를 명령어를 통해 암호 없이 파일 전송하고자 함 Centos6 (openssh-clients-5.3p1-84.1.el6.x86..