MySQL MGR 구축 과정 에서 자주 발생 하 는 문제 및 해결 방법

8480 단어 MySQLMGR
MGR 구축 과정 에서 발생 한 고장 들
    실제 적 으로 저 는 모두 세 개의 MGR 환경 을 배 치 했 습 니 다.그것 이 바로 단기 다 중 인 스 턴 스 의 MGR 환경 입 니 다.다 중 기기 와 같은 네트워크 의 MGR 환경 입 니 다.다 중 기기 가 서로 다른 네트워크 의 MGR 환경 입 니 다.배치 과정 은 대동소이 하지만 차이 가 있 는 부분 이 있 습 니 다.여기 서 배치 과정 에서 발생 한 고장 을 열거 하여 참고 하 시기 바 랍 니 다.만약 에 귀하 가 배치 할 때의 문 제 를 해결 할 수 있다 면.그것 은 아주 좋 은 것 이다.
01 흔 한 고장

[ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: bb874065-c485-11e8-8b52-000c2934472e:1 > Group transactions: 3db33b36-0e51-409f-a61d-c99756e90155:1-11'
[ERROR] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'
[Note] Plugin group_replication reported: ‘To force this member into the group you can use the group_replication_allow_local_disjoint_gtids_join option'
해결 방안:
알림 에 따라 set global group 열기replication_allow_local_disjoint_gtids_join=ON;
02 흔 한 고장 2

[ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: bb874065-c485-11e8-8b52-000c2934472e:1 > Group transactions: 3db33b36-0e51-409f-a61d-c99756e90155:1-15'
[Warning] Plugin group_replication reported: 'The member contains transactions not present in the group. It is only allowed to join due to group_replication_allow_local_disjoint_gtids_join option'
[Note] Plugin group_replication reported: 'This server is working as secondary member with primary member address localhost.localdomaion:3306.'
해결 방안:
이 고장 과 고장 1 의 차이 점 은 이 문제 가 발생 했 을 때 매개 변수 groupreplication_allow_local_disjoint_gtids_join 은 이미 on 으로 설정 되 었 습 니 다.이 문 제 를 해결 하 는 방법 은 reset master 를 실행 한 다음 에 메 인 노드 와 노드 에서 통 로 를 다시 여 는 것 입 니 다.즉,
CHANGE MASTER TO MASTER_USER='rpl_user', MASTER_PASSWORD='rpl_pass' FOR CHANNEL 'group_replication_recovery';
흔 한 고장
이 기 계 는 테스트 할 때 아래 의 문제 에 부 딪 혔 다.

[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 [ERROR] Slave I/O for channel 'group_replication_recovery': error connecting to master '[email protected]:' - retry-time: 60 retries: 1, Error_code: 2005
 [ERROR] Plugin group_replication reported: 'There was an error when connecting to the donor server. Please check that group_replication_recovery channel credentials and all MEMBER_HOST column values of performance_schema.replication_group_members table are correct and DNS resolvable.'
 [ERROR] Plugin group_replication reported: 'For details please check performance_schema.replication_connection_status table and error log messages of Slave I/O for channel group_replication_recovery.'
 [Note] Plugin group_replication reported: 'Retrying group recovery connection with another donor. Attempt /'
해결 방안:
이 문 제 는 테스트 환경 에서 세 대의 호스트 의 hostname 설정 이 같은 이름 으로 바 뀌 었 기 때문에 hostname 을 바 꾼 후에 이 문 제 는 해결 되 었 습 니 다.
04 흔 한 고장

#          ,       ,
mysql--root@localhost:(none) ::>>START GROUP_REPLICATION;
ERROR (HY000): The server is not configured properly to be an active member of the group. Please see more details on error log.
#  log  ,      warning:
2019-02-20T07::30.233937Z [Warning] Plugin group_replication reported: 'Group Replication requires slave-preserve-commit-order to be set to ON when using more than 1 applier threads.
해결 방안:

mysql--root@localhost:(none) ::>>show variables like "%preserve%";
+--------------------------------+---------+
| Variable_name    | Value |
+--------------------------------+---------+
| slave_preserve_commit_order | OFF |
+--------------------------------+---------+
 row in set (0.01 sec)
mysql--root@localhost:(none) ::>>set global slave_preserve_commit_order=;
Query OK, rows affected (0.00 sec)
질문

2019-02-20T08::31.088437Z [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 192.168.9.208 refused. 
Address is not in the IP whitelist.'
2019-02-20T08::32.088676Z [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 192.168.9.208 refused.
 Address is not in the IP whitelist.'
해결 방법:
my.cnf 에 group 설정replication_ip_whitelist 매개 변 수 는 해결 할 수 있 습 니 다.
질문

2019-02-20T08::44.087492Z [Warning] Plugin group_replication reported: 'read failed'
2019-02-20T08::44.096171Z [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 24801'
2019-02-20T08::14.065775Z [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group
해결 방안:
    my.cnf 의 인자 groupreplication_group_seeds 는 자신 을 제외 한 다른 group 구성원 만 포함 하 는 ip 주소 와 내부 통신 포트 로 설정 되 어 있 으 며,group 모든 구성원 의 IP 주소 로 쓰 면 이 오류 가 발생 합 니 다.이 는 같은 네트워크 의 MGR 배치 방식 과 차이 가 있 습 니 다.
질문

 [ERROR] Plugin group_replication reported: ‘[GCS] Error on opening a connection to oceanbase07: on local port: '.'
 [ERROR] Plugin group_replication reported: ‘[GCS] Error on opening a connection to oceanbase08: on local port: '.'
 [ERROR] Plugin group_replication reported: ‘[GCS] Error on opening a connection to oceanbase07: on local port: '.'
해결 방안:
방화벽 의 고정 포트 가 개통 되 지 않 으 면 방화벽 을 개통 한 후에 바로 해결 할 수 있다.
질문

[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 [ERROR] Slave I/O for channel 'group_replication_recovery': Master command COM_REGISTER_SLAVE failed: Access denied for user 'rpl_user'@'%' (using password: YES) (Errno: 1045), Error_code: 1597
 [ERROR] Slave I/O thread couldn't register on master
 [Note] Slave I/O thread exiting for channel 'group_replication_recovery', read up to log 'FIRST', position 
해결 방안:
특정한 노드 의 사용 자 를 빠 뜨 렸 습 니 다.안전 을 위해 group 노드 에서 실 행 됩 니 다.
CREATE USER rpl_user@'%';
GRANT REPLICATION SLAVE ON *.* TO rpl_user@'%' IDENTIFIED BY 'rpl_pass';
질문

 [ERROR] Failed to open the relay log './localhost-relay-bin.000011' (relay_log_pos ).
 [ERROR] Could not find target log file mentioned in relay log info in the index file './work_NAT_1-relay-bin. index' during relay log initialization.
 [ERROR] Slave: Failed to initialize the master info structure for channel ''; its record may still be present in 'mysql.slave_master_info' table, consider deleting it.
 [ERROR] Failed to open the relay log './localhost-relay-bin-group_replication_recovery.000001' (relay_log_pos  ).
 [ERROR] Could not find target log file mentioned in relay log info in the index file './work_NAT_1-relay-bin-group_replication_recovery.index' during relay log initialization.
 [ERROR] Slave: Failed to initialize the master info structure for channel 'group_replication_recovery'; its record may still be present in 'mysql.slave_master_info' table, consider deleting it.
 [ERROR] Failed to create or recover replication info repositories.
 [ERROR] Slave SQL for channel '': Slave failed to initialize relay log info structure from the repository, Error_code: 
 [ERROR] /usr/local/mysql/bin/mysqld: Slave failed to initialize relay log info structure from the repository
 [ERROR] Failed to start slave threads for channel ''
해결 방안:
    이 오 류 는 slave 노드 가 어떤 원인 으로 인해 relay-log 의 위 치 를 찾 을 수 없 기 때문에 다시 reset slave 가 필요 합 니 다.
이상 은 MySQL MGR 구축 과정 에서 자주 만 나 는 문제 와 해결 방법 에 대한 상세 한 내용 입 니 다.MySQL MGR 구축 에 관 한 자 료 는 저희 의 다른 관련 글 을 주목 하 세 요!

좋은 웹페이지 즐겨찾기