Zimbra Open Source Edition migration

舊機的Zimbra要必需和新機的Zimbra相同版本, 我的舊機是Ubuntu 14.04, Zimbra 8.8.12, 新機會安裝Ubuntu 18.04, Zimbra 8.8.12, 如果安裝過程中有錯誤就看最低下有沒有解決方法

首先在新機Download相同版本解壓及安裝(只安裝不設定加-s), 然後把新的zimbra改名不用
# wget https://files.zimbra.com/downloads/8.8.12_GA/zcs-8.8.12_GA_3794.UBUNTU18_64.20190329045002.tgz
# tar zxvf zcs-8.8.12_GA_3794.UBUNTU18_64.20190329045002.tgz
# cd zcs-8.8.12_GA_3794.UBUNTU18_64.20190329045002/
# ./install.sh -s
# mv /opt/zimbra /opt/zimbra_backup

在舊機停用zimbra, 然後用root壓縮/opt/zimbra再傳送到新機
# su - zimbra
# zmcontrol stop
# exit

Option1
# rsync -e "ssh -p 2222" -axvzKHS /opt/zimbra/ newServerLogin@xxx.xxx.xxx.xxx:/tmp/zimbra

Option2
# tar zcvfS /root/zimbrabackup_20201008.tar.gz /opt/zimbra
# scp /root/zimbrabackup_20201008.tar.gz newServerLogin@xxx.xxx.xxx.xxx:/home/newServerLogin/

在新Server解壓, 改回原位置, 修復權限
# tar zxvfS zimbrabackup_20201008.tar.gz

# mv opt/zimbra /opt/
# /opt/zimbra/libexec/zmfixperms -e -v

應該沒有訊息的
# /opt/zimbra/bin/postfix check

有2次升級都有這個訊息, 但是沒有理會好像都是正常運作
postsuper: Renamed to match inode number: 3 messages
postsuper: warning: QUEUE FILE NAMES WERE CHANGED TO MATCH INODE NUMBERS

再次正式安裝
# cd zcs-8.8.12_GA_3794.UBUNTU18_64.20190329045002/
# ./install.sh

錯誤1
Validating ldap configuration
/usr/bin/perl: symbol lookup error: /opt/zimbra/common/lib/perl5//x86_64-linux-gnu-thread-multi/auto/Socket/Socket.so: undefined symbol: Perl_xs_apiversion_bootcheck
Unknown Error: It should be impossible to reach this statement.

解決方法
# for pkg in $(dpkg -l | grep zimbra | grep perl | awk '{print $2}'); do sudo apt-get install --reinstall $pkg; done

錯誤2
ERROR: Unable to retrive Zimbra GPG key for package validation
Please fix system to allow normal package installation before proceeding

解決方法
# gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79
Reference
https://wiki.zimbra.com/wiki/Error_%22Unable_to_retrive_Zimbra_GPG_key_for_package_validation%22

錯誤3
Checking for port conflicts
Port conflict detected: 53 (zimbra-dnscache)
Port conflicts detected! - Press Enter/Return key to continue

不用理會

錯誤4
zmlogswatchctl is not running

解決方法
這個應該是8.8.12的bugs, 升級到8.8.15
# wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220.tgz
# tar zxvf zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220.tgz
# cd zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220
# ./install.sh

Reference
https://wiki.zimbra.com/wiki/How_to_move_ZCS_to_another_server

Comments

No comments yet. Why don’t you start the discussion?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*