Percona-Server
Percona xtradb 集群 node2 無法啟動
我已經配置了 Percona Xtradb 集群 5.6。第一個節點在引導時啟動正常,但第二個節點似乎有這個變數設置的問題:
wsrep_provider=/usr/lib/libgalera_smm.so
我在 Ubuntu 14.04 上執行集群節點。對於錯誤日誌,這是向我拋出的:
150608 18:43:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 150608 18:43:03 mysqld_safe Skipping wsrep-recover for empty datadir: /var/lib/mysql 150608 18:43:03 mysqld_safe Assigning 00000000-0000-0000-0000-000000000000:-1 to wsrep_start_position 2015-06-08 18:43:03 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 2015-06-08 18:43:03 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-06-08 18:43:03 0 [Note] /usr/sbin/mysqld (mysqld 5.6.24-72.2-56-log) starting as process 5977 ... 2015-06-08 18:43:03 5977 [Note] WSREP: Read nil XID from storage engines, skipping position init 2015-06-08 18:43:03 5977 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/galera3/libgalera_ssm.so' 2015-06-08 18:43:03 5977 [ERROR] WSREP: wsrep_load(): dlopen(): /usr/lib/galera3/libgalera_ssm.so: cannot open shared object file: No such file or directory 2015-06-08 18:43:03 5977 [ERROR] WSREP: wsrep_load(/usr/lib/galera3/libgalera_ssm.so) failed: Invalid argument (22). Reverting to no provider. 2015-06-08 18:43:03 5977 [Note] WSREP: Read nil XID from storage engines, skipping position init 2015-06-08 18:43:03 5977 [Note] WSREP: wsrep_load(): loading provider library 'none' 2015-06-08 18:43:03 5977 [ERROR] Aborting 2015-06-08 18:43:03 5977 [Note] WSREP: Service disconnected. 2015-06-08 18:43:04 5977 [Note] WSREP: Some threads may fail to exit. 2015-06-08 18:43:04 5977 [Note] Binlog end 2015-06-08 18:43:04 5977 [Note] /usr/sbin/mysqld: Shutdown complete
我嘗試註釋掉#wsrep_provider 並使用以下命令啟動節點
$sudo /etc/init.d/mysql start --wsrep_provider="/usr/lib/libgalera_ssm.so"
但這似乎沒有幫助。節點仍然無法啟動。
該
libgalera_ssm.so
文件實際上存在於兩台伺服器上,因此我有點困惑為什麼它適用於一台伺服器而不是另一台伺服器。但值得指出的是,當我嘗試不使用bootstrap-pxc
而僅使用/etc/init.d/mysql start
.
日誌條目
2015-06-08 18:43:03 5977 [ERROR] WSREP: wsrep_load(): dlopen(): /usr/lib/galera3/libgalera_ssm.so: cannot open shared object file: No such file or directory 2015-06-08 18:43:03 5977 [ERROR] WSREP: wsrep_load(/usr/lib/galera3/libgalera_ssm.so) failed: Invalid argument (22). Reverting to no provider.
表明 MySQL 找不到該文件
/usr/lib/galera3/libgalera_ssm.so
,因此它不能將其用作 WSREP 提供程序。檢查此文件是否存在且可訪問。如果您的系統是 64 位,它可能是/usr/lib64/
.另外,請發布您在啟動節點時收到的錯誤消息 - 沒有閱讀確切的錯誤消息,這是在黑暗中拍攝的。
檢查庫名稱:
- /usr/lib/libgalera_ssm.so(錯誤)
- /usr/lib/libgalera_smm.so(右)