zimbra 8.7.1 更新安装
1、系统环境:
cat /etc/system-release
CentOS Linux release 7.3.1611 (Core) uname -a
Linux mail.abc.com 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux zmcontrol -v
Release 8.6.0_GA_1153.RHEL7_64
2、下载zimbra 8.7.1_GA安装包解压后运行install.sh进行升级
[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# ./install.sh Operations logged to /tmp/install.log.O3wRPSxA Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-8.6.0_GA_1153 zimbra-logger...FOUND zimbra-logger-8.6.0_GA_1153 zimbra-mta...FOUND zimbra-mta-8.6.0_GA_1153 zimbra-dnscache...NOT FOUND
zimbra-snmp...FOUND zimbra-snmp-8.6.0_GA_1153 zimbra-store...FOUND zimbra-store-8.6.0_GA_1153 zimbra-apache...FOUND zimbra-apache-8.6.0_GA_1153 zimbra-spell...FOUND zimbra-spell-8.6.0_GA_1153 zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-8.6.0_GA_1153 zimbra-proxy...FOUND zimbra-proxy-8.6.0_GA_1153 zimbra-archiving...NOT FOUND
zimbra-core...FOUND zimbra-core-8.6.0_GA_1153 ZCS upgrade from 8.6.0 to 8.7.1 will be performed. Checking for existing proxy service in your environment Error: proxy not enabled
Error: No proxy detected in your environment. Proxy is required for ZCS 8.7+.
See https://wiki.zimbra.com/wiki/Enabling_Zimbra_Proxy for details on installing proxy.
Checking for existing memcached service in your environment Proxy and Memcached services must exist. Exiting...
显示以下错误:
Error: proxy not enabled
Error: No proxy detected in your environment. Proxy is required for ZCS 8.7+.
运行zmprov ms 启用proxy功能,mail.abc.com为示例主机名,根据自己的实际主机名进行修改。
[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# zmprov ms mail.abc.com +zimbraServiceEnabled proxy
另如果是以下报错
Error: One or more proxies do not have zimbraReverseProxyMailEnabled and zimbraReverseProxyHttpEnabled set to TRUE.
It is required to have at least one proxy with zimbraReverseProxyMailEnabled and at least one proxy with zimbraReverseProxyHttpEnabled for ZCS 8.7+
则执行以下命令:
zmprov ms mail.abc.com zimbraReverseProxyMailEnabled TRUE zmprov ms mail.abc.com zimbraReverseProxyHttpEnabled TRUE
查询proxy相关状态可以用命令:zmprov gcf zimbraReverseProxyHttp zimbraReverseProxyMail
3、执行完zmprov ms mail.abc.com +zimbraServroxy后继续运行install.sh
[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# zmprov ms mail.abc.com +zimbraServroxy
[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# ./install.sh
以下为安装过程显示,显示内容比较长,浏览一下即可
Operations logged to /tmp/install.log.zWezd512 Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-8.6.0_GA_1153 zimbra-logger...FOUND zimbra-logger-8.6.0_GA_1153 zimbra-mta...FOUND zimbra-mta-8.6.0_GA_1153 zimbra-dnscache...NOT FOUND
zimbra-snmp...FOUND zimbra-snmp-8.6.0_GA_1153 zimbra-store...FOUND zimbra-store-8.6.0_GA_1153 zimbra-apache...FOUND zimbra-apache-8.6.0_GA_1153 zimbra-spell...FOUND zimbra-spell-8.6.0_GA_1153 zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-8.6.0_GA_1153 zimbra-proxy...FOUND zimbra-proxy-8.6.0_GA_1153 zimbra-archiving...NOT FOUND
zimbra-core...FOUND zimbra-core-8.6.0_GA_1153 ZCS upgrade from 8.6.0 to 8.7.1 will be performed.
Checking for existing proxy service in your environment
Checking for existing memcached service in your environment Validating ldap configuration
LDAP validation succeeded. Continuing.
Do you agree with the terms of the software license agreement? [N] y
Checking current number of databases...
Do you want to verify message store database integrity? [Y] y
Verifying integrity of message store databases. This may take a while. mysqld is alive No errors found
Checking for installable packages
Found zimbra-core Found zimbra-ldap Found zimbra-logger Found zimbra-mta
Found zimbra-dnscache Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell
Found zimbra-memcached Found zimbra-proxy
Use Zimbra's package repository [Y] n
The Zimbra Collaboration Server appears to already be installed. It can be upgraded with no effect on existing accounts, or the current installation can be completely removed prior to installation for a clean install.
Do you wish to upgrade? [Y] y
Scanning for any new or additional packages available for installation Existing packages will be upgraded Upgrading zimbra-core Upgrading zimbra-ldap Upgrading zimbra-logger Upgrading zimbra-mta
Install zimbra-dnscache [N] n Upgrading zimbra-snmp Upgrading zimbra-store Upgrading zimbra-apache Upgrading zimbra-spell
Upgrading zimbra-memcached Upgrading zimbra-proxy
Checking required space for zimbra-core Checking space for zimbra-store
Checking required packages for zimbra-store zimbra-store package check complete.
Installing:
zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell
zimbra-memcached zimbra-proxy
The system will be modified. Continue? [N] y Installing packages
zimbra-core will be downloaded. zimbra-ldap will be downloaded. zimbra-logger will be downloaded. zimbra-mta will be downloaded. zimbra-snmp will be downloaded. zimbra-store will be downloaded. zimbra-apache will be downloaded. zimbra-spell will be downloaded.
zimbra-memcached will be downloaded. zimbra-proxy will be downloaded.
Downloading packages. This will not modify the system. This may take some time. Downloading Remote package zimbra-memcached version
Unable to download packages zimbra-memcached from repository. System is not modified.
Saving existing configuration file to /opt/zimbra/.saveconfig
Shutting down zimbra mail
Backing up the ldap database...done.
Removing existing packages
zimbra-ldap...done zimbra-logger...done zimbra-mta...done zimbra-snmp...done zimbra-store...done zimbra-spell...done
zimbra-memcached...done zimbra-proxy...done zimbra-apache...done zimbra-core...done
Removing deployed webapp directories
Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimimbra-spell zimbra-proxy selected for installation Monitor /tmp/install.log.zWezd512 for package installation progress Remote package installation started Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-snmp-cmbra-store-components zimbra-apache-components zimbra-spell-components zimbra-memcached zimbronents....
ERROR: Unable to install required packages
WARNING: REMOTE PACKAGE INSTALLATION FAILED. To proceed, review the instructions at:
https://wiki.zimbra.com/wiki/Recovering_from_upgrade_failure
Failure to follow the instructions on the wiki will result in complete data loss.
出现报错。看提示估计连接至官网Remote package zimbra-memcached等更新组件包下载或安装出现错误,具体可见安装log档
4、使用一下命令进行跳过升级检查强制升级
[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# ./install.sh --force-upgrade --skip-acck --skip-upgrade-check
Operations logged to /tmp/install.log.ilBy9p3q Checking for existing installation... zimbra-ldap...NOT FOUND