在配置myql-zmanda backup的時候遇到這樣一個問題:
[root@nitrogen cron.daily]# mysql-zrm-reporter --show restore-info --where backup-set=dailyrun
Can't load '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: libexpat.so.1: cannot open shared object file: No such file or directory at
line 230.
at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 14
Compilation failed in require at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 18.
Compilation failed in require at /usr/lib/mysql-zrm/XML/RSS.pm line 5.
BEGIN failed--compilation aborted at /usr/lib/mysql-zrm/XML/RSS.pm line 5.
Compilation failed in require at /usr/bin/mysql-zrm-reporter line 55.
BEGIN failed--compilation aborted at /usr/bin/mysql-zrm-reporter line 55.
困擾了半天也沒有找到答案
最後確認是動態庫的問題記錄一下
[root@aaa ~]# vi /etc/ld.so.conf
[root@aaa ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib #這個是添加上去了
ldconfig –v
....
libstdc++.so.6 -> libstdc++.so.6.0.8
libORBit-2.so.0 -> libORBit-2.so.0.1.0
libtcl8.4.so -> libtcl8.4.so
libpanel.so.5 -> libpanel.so.5.5
libecryptfs.so.0 -> libecryptfs.so.0.0.0
libnfsidmap.so.0 -> libnfsidmap.so.0.2.0
libjpeg.so.62 -> libjpeg.so.62.0.0
libncurses.so.5 -> libncurses.so.5.5
libXtst.so.6 -> libXtst.so.6.1.0
libaspell.so.15 -> libaspell.so.15.1.3
libgdbm.so.2 -> libgdbm.so.2.0.0
libxml2.so.2 -> libxml2.so.2.6.26
libgnutls.so.13 -> libgnutls.so.13.0.6
libmenuw.so.5 -> libmenuw.so.5.5
libformw.so.5 -> libformw.so.5.5
libldap-2.3.so.0 -> libldap-2.3.so.0.2.15
libisccc.so.0 -> libisccc.so.0.2.2
liboddjob.so.0 -> liboddjob.so.0.0.0
libXft.so.2 -> libXft.so.2.1.2
libcairo.so.2 -> libcairo.so.2.9.2
libgij.so.7rh -> libgij.so.7rh.0.0
libgcj.so.7rh -> libgcj.so.7rh.0.0
libcups.so.2 -> libcups.so.2
libhistory.so.5 -> libhistory.so.5.1
libsqlite3.so.0 -> libsqlite3.so.0.8.6
libz.so.1 -> libz.so.1.2.3
liblber-2.3.so.0 -> liblber-2.3.so.0.2.15
libXrender.so.1 -> libXrender.so.1.3.0
libGL.so.1 -> libGL.so.1.2
/lib/i686: (hwcap: 0x0008000000000000)
/lib64/tls: (hwcap: 0x8000000000000000)
/usr/lib64/tls: (hwcap: 0x8000000000000000)
/usr/lib64/sse2: (hwcap: 0x0000000004000000)
/lib/i686/nosegneg: (hwcap: 0x0018000000000000)
libpthread.so.0 -> libpthread-2.5.so
libm.so.6 -> libm-2.5.so
librt.so.1 -> librt-2.5.so
libc.so.6 -> libc-2.5.so
libthread_db.so.1 -> libthread_db-1.0.so
應該是動態庫重新加載了一次
再次運行:
[root@/aaa ~]# mysql-zrm-reporter --show restore-info --where backup-set=dailyrun
REPORT TYPE : restore-info
backup_set backup_date backup_level backup_directory backup_status comment
-----------------------------------------------------------------------------------------------------------------------------------------------------
dailyrun Mon 23 Nov 2009 12:55:15 0 /opt/mysql-zrm/dailyrun/20091123125515 Backup succeeded ----
PM HKT
dailyrun Mon 23 Nov 2009 12:54:26 0 /opt/mysql-zrm/dailyrun/20091123125426 Backup failed ----
PM HKT
dailyrun Mon 23 Nov 2009 12:53:16 0 /opt/mysql-zrm/dailyrun/20091123125316 Backup failed ----
PM HKT
dailyrun Mon 23 Nov 2009 11:04:46 0 /opt/mysql-zrm/dailyrun/20091123110446 Backup failed ----
ok, 看來在Redhat中對動態庫的管理已經上升到配合文件的程度了.
記錄一下備查!
没有评论:
发表评论