Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Not a Bug
-
Affects Version/s: 10.0.10-galera
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:CentOS6.5, Linux 2.6.32-431.el6.x86_64,
Description
MariaDB-Galera-server failed to startup due to this error:
140503 23:55:03 [ERROR] WSREP: wsrep_load(): dlopen(): /usr/lib64/galera/libgalera_smm.so: wrong ELF class: ELFCLASS64 140503 23:55:03 [ERROR] WSREP: wsrep_load(/usr/lib64/galera/libgalera_smm.so) failed: Invalid argument (22). Reverting to no provider.
.
Steps:
1, Installed CentOS-6.5-x86_64-bin-DVD1.iso with minimal model;
2, install package with yum(repo is on local cdrom):
keyutils-libs
perl
zlib
glibc
ncurses-libs
libcom_err
libgcc
libselinux
libstdc++
libaio
ncurses-libs
openssl
openssh-clients
openssl-devel
libxml2
pam.i686
perl-DBI
perl-Time-HiRes
unixODBC
audit-libs
cracklib
db4
libtool-ltdl
readline
telnet
tcpdump
vim-minimal
vim-X11
vim-common
vim-enhanced
createrepo
ipvsadm
rsync
gcc
zip
unzip
3, Download following Mariadb packages:
MariaDB-10.0.10-centos6-i686-client.rpm
MariaDB-10.0.10-centos6-i686-common.rpm
MariaDB-10.0.10-centos6-i686-compat.rpm
MariaDB-Galera-10.0.10-centos6-i686-server.rpm
galera-25.3.5-1.rhel6.x86_64.rpm
4, Create local yum Repo for downloaded Mariadb packages;
5, Install Mariadb and Galera packages:
rpm -ivh galera-25.3.5-1.rhel6.x86_64.rpm
yum -y install MariaDB-client MariaDB-Galera-server
6, Create mysql configuration my.cnf and copy example wsrep.cnf as the using wsrep.cnf, only changed following parameters:
binlog_format=ROW
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_cluster_address="gcomm://"
wsrep_sst_method=rsync
wsrep_sst_auth=root:123456
7, Startup mysql:
service mysql restart
8, Mysql services startup failed, check the logs:
140503 23:55:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 140503 23:55:00 mysqld_safe WSREP: Running position recovery with --log_error='/var/lib/mysql/wsrep_recovery.smvyzy' --pid-file='/var/lib/mysql/db1-recover.pid' 140503 23:55:03 mysqld_safe WSREP: Recovered position 00000000-0000-0000-0000-000000000000:-1 140503 23:55:03 [Note] WSREP: wsrep_start_position var submitted: '00000000-0000-0000-0000-000000000000:-1' 140503 23:55:03 [Note] WSREP: Read nil XID from storage engines, skipping position init 140503 23:55:03 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib64/galera/libgalera_smm.so' 140503 23:55:03 [ERROR] WSREP: wsrep_load(): dlopen(): /usr/lib64/galera/libgalera_smm.so: wrong ELF class: ELFCLASS64 140503 23:55:03 [ERROR] WSREP: wsrep_load(/usr/lib64/galera/libgalera_smm.so) failed: Invalid argument (22). Reverting to no provider. 140503 23:55:03 [Note] WSREP: Read nil XID from storage engines, skipping position init 140503 23:55:03 [Note] WSREP: wsrep_load(): loading provider library 'none' 140503 23:55:03 [ERROR] Aborting 140503 23:55:03 [Note] [Debug] WSREP: dummy_disconnect 140503 23:55:03 [Note] WSREP: Service disconnected. 140503 23:55:04 [Note] WSREP: Some threads may fail to exit. 140503 23:55:04 [Note] /usr/sbin/mysqld: Shutdown complete
9, Check the lib:
# ll /usr/lib64/galera/libgalera_smm.so -rwxr-xr-x 1 root root 27129616 Mar 27 23:32 /usr/lib64/galera/libgalera_smm.so
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
You installed wrong MariaDB packages – you are using i686 (32-bit), while you need x86_64 (64-bit).