以下のようのエラー
1 2 3 4 5 6 7 8 9 10 |
150812 19:57:48 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not match group state UUID (dcd039d5-3f17-11e5-9f1a-b211dd95fd2d): 1 (Operation not permitted) at galera/src/replicator_str.cpp:prepare_for_IST():456. IST will be unavailable. 150812 19:57:48 [Note] WSREP: Member 1.0 (db2) requested state transfer from '*any*'. Selected 0.0 (db1)(SYNCED) as donor. 150812 19:57:48 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 8) 150812 19:57:48 [Note] WSREP: Requesting state transfer: success, donor: 0 150812 19:57:50 [Note] WSREP: (f76cecfe, 'tcp://0.0.0.0:4567') turning message relay requesting off 150812 19:58:03 [Warning] WSREP: 0.0 (db1): State transfer to 1.0 (db2) failed: -255 (Unknown error 255) 150812 19:58:03 [ERROR] WSREP: gcs/src/gcs_group.cpp:int gcs_group_handle_join_msg(gcs_group_t*, const gcs_recv_msg_t*)():731: Will never receive state. Need to abort. |
firewall がかかっているので、Galeraが構成できない。
firewall をオフにする。
centos 7で停止
1 2 3 |
systemctl stop firewalld |
centos 7で無効化(再起動後も停止)
1 2 3 |
systemctl disable firewalld |
centos7 以外のosは適宜ググって下さい。通常以下のような感じ
停止
1 2 3 |
service iptables stop |
無効化
1 2 3 |
chkconfig iptables off |