Difference between revisions of "Steps to remove broken soft links after upgrading to ZCS v8.7.x"

Line 1: Line 1:
===<h1>Steps to remove broken soft links after upgrading to ZCS v8.7.x</h1>===
+
{{BC|Certified}}
 +
__FORCETOC__
 +
<div class="col-md-12 ibox-content">
 +
=Steps to remove broken soft links after upgrading to ZCS v8.7.x=
 
<hr>
 
<hr>
<br>
+
{{KB|{{ZC}}|{{ZCS 8.8.15}}||||}}
 +
{{WIP}} 
  
<h2>Problem:</h2>
 
  
After upgrading from v8.6 or older versions to v8.7.x there are multiple broken soft links of third-party tools remains in "/opt/zimbra/".
 
  
  
<h2>Solution:</h2>
 
  
From the starting of ZCS v8.7.x all third-party tools are moved to directory "/opt/zimbra/common/", so we can remove broken directory links from "/opt/zimbra/". 
+
====Problem====
  
Here are the steps to get list of broken soft links and steps and then remove manually.    
+
After upgrading from v8.6 or older versions to v8.7.x and greater, there may be multiple broken soft links of third-party tools in "/opt/zimbra/".
  
'''1).''' Command to get broken soft link list.   
+
 
 +
====Solution====
 +
 
 +
From ZCS v8.7.x all third-party tools have been moved to directory "/opt/zimbra/common/", so the broken directory links from "/opt/zimbra/" can be removed. 
 +
 
 +
The following will get us a list of broken soft links which can then be removed manually   
 +
 
 +
* Command to get broken soft link list.   
 
  find /opt/zimbra/ -type l ! -exec test -e {} \; -print  
 
  find /opt/zimbra/ -type l ! -exec test -e {} \; -print  
 
  OR  
 
  OR  
Line 22: Line 30:
  
  
 +
====Example====
 +
 +
* Output of the above will be as follows: 
  
<h2>Example:</h2>
+
root@ztalk:~# find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"
 
   
 
   
Output of above command will like the following entries. 
+
  /opt/zimbra/cyrus-sasl:                            broken symbolic link to `/opt/zimbra/cyrus-sasl-2.1.26.2z'
<pre>
+
/opt/zimbra/zimbramon/rrdtool:                      broken symbolic link to `/opt/zimbra/zimbramon/rrdtool-1.2.30'
root@ztalk:~# find /opt/zimbra/ -type l | xargs file | grep "broken symbolic link"
+
/opt/zimbra/mariadb:                                broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
 
+
/opt/zimbra/opendkim:                              broken symbolic link to `/opt/zimbra/opendkim-2.9.2'
/opt/zimbra/cyrus-sasl:                            broken symbolic link to `/opt/zimbra/cyrus-sasl-2.1.26.2z'
+
/opt/zimbra/dspam:                                  broken symbolic link to `/opt/zimbra/dspam-3.10.2'
/opt/zimbra/zimbramon/rrdtool:                      broken symbolic link to `/opt/zimbra/zimbramon/rrdtool-1.2.30'
+
/opt/zimbra/aspell:                                broken symbolic link to `/opt/zimbra/aspell-0.60.6.1'
/opt/zimbra/mariadb:                                broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
+
/opt/zimbra/mta/mariadb:                            broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
/opt/zimbra/opendkim:                              broken symbolic link to `/opt/zimbra/opendkim-2.9.2'
+
/opt/zimbra/mta/mysql:                              broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
/opt/zimbra/dspam:                                  broken symbolic link to `/opt/zimbra/dspam-3.10.2'
+
/opt/zimbra/libtool:                                broken symbolic link to `/opt/zimbra/libtool-2.2.6b'
/opt/zimbra/aspell:                                broken symbolic link to `/opt/zimbra/aspell-0.60.6.1'
+
/opt/zimbra/unbound:                                broken symbolic link to `/opt/zimbra/unbound-1.4.22'
/opt/zimbra/mta/mariadb:                            broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
+
/opt/zimbra/bdb:                                    broken symbolic link to `/opt/zimbra/bdb-5.2.36'
/opt/zimbra/mta/mysql:                              broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
+
/opt/zimbra/httpd:                                  broken symbolic link to `/opt/zimbra/httpd-2.4.10'
/opt/zimbra/libtool:                                broken symbolic link to `/opt/zimbra/libtool-2.2.6b'
+
/opt/zimbra/memcached:                              broken symbolic link to `/opt/zimbra/memcached-1.4.17'
/opt/zimbra/unbound:                                broken symbolic link to `/opt/zimbra/unbound-1.4.22'
+
/opt/zimbra/tcmalloc:                              broken symbolic link to `/opt/zimbra/tcmalloc-2.2'
/opt/zimbra/bdb:                                    broken symbolic link to `/opt/zimbra/bdb-5.2.36'
+
/opt/zimbra/rsync:                                  broken symbolic link to `/opt/zimbra/rsync-3.1.1'
/opt/zimbra/httpd:                                  broken symbolic link to `/opt/zimbra/httpd-2.4.10'
+
/opt/zimbra/altermime:                              broken symbolic link to `/opt/zimbra/altermime-0.3-20100505'
/opt/zimbra/memcached:                              broken symbolic link to `/opt/zimbra/memcached-1.4.17'
+
/opt/zimbra/zeromq:                                broken symbolic link to `/opt/zimbra/zeromq-3.2.3'
/opt/zimbra/tcmalloc:                              broken symbolic link to `/opt/zimbra/tcmalloc-2.2'
+
/opt/zimbra/nginx:                                  broken symbolic link to `/opt/zimbra/nginx-1.2.0-zimbra'
/opt/zimbra/rsync:                                  broken symbolic link to `/opt/zimbra/rsync-3.1.1'
+
/opt/zimbra/amavisd:                                broken symbolic link to `/opt/zimbra/amavisd-new-2.9.0'
/opt/zimbra/altermime:                              broken symbolic link to `/opt/zimbra/altermime-0.3-20100505'
+
/opt/zimbra/openldap:                              broken symbolic link to `/opt/zimbra/openldap-2.4.39.2z'
/opt/zimbra/zeromq:                                broken symbolic link to `/opt/zimbra/zeromq-3.2.3'
+
/opt/zimbra/mysql:                                  broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
/opt/zimbra/nginx:                                  broken symbolic link to `/opt/zimbra/nginx-1.2.0-zimbra'
+
/opt/zimbra/curl:                                  broken symbolic link to `/opt/zimbra/curl-7.38.0'
/opt/zimbra/amavisd:                                broken symbolic link to `/opt/zimbra/amavisd-new-2.9.0'
+
/opt/zimbra/pflogsumm:                              broken symbolic link to `/opt/zimbra/pflogsumm-1.1.5'
/opt/zimbra/openldap:                              broken symbolic link to `/opt/zimbra/openldap-2.4.39.2z'
+
/opt/zimbra/clamav:                                broken symbolic link to `/opt/zimbra/clamav-0.98.4'
/opt/zimbra/mysql:                                  broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
+
/opt/zimbra/heimdal:                                broken symbolic link to `/opt/zimbra/heimdal-1.5.2'
/opt/zimbra/curl:                                  broken symbolic link to `/opt/zimbra/curl-7.38.0'
+
/opt/zimbra/openssl:                                broken symbolic link to `/opt/zimbra/openssl-1.0.1j'
/opt/zimbra/pflogsumm:                              broken symbolic link to `/opt/zimbra/pflogsumm-1.1.5'
+
/opt/zimbra/cbpolicyd:                              broken symbolic link to `/opt/zimbra/cbpolicyd-2.1.0-beta'
/opt/zimbra/clamav:                                broken symbolic link to `/opt/zimbra/clamav-0.98.4'
 
/opt/zimbra/heimdal:                                broken symbolic link to `/opt/zimbra/heimdal-1.5.2'
 
/opt/zimbra/openssl:                                broken symbolic link to `/opt/zimbra/openssl-1.0.1j'
 
/opt/zimbra/cbpolicyd:                              broken symbolic link to `/opt/zimbra/cbpolicyd-2.1.0-beta'
 
</pre>
 
  
'''2).''' Command to remove broken soft links.  
+
* To remove broken soft links, run  
 
  find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   
 
  find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   
  
  
Internal(private) bug for this - https://bugzilla.zimbra.com/show_bug.cgi?id=105953
+
{| class="wikitable" style="background-color:#d0f0c0;" cellpadding="10"
 
+
|'''Submitted by''':  Heera Singh Koranga
 
+
|}
  
Submitted by:  Heera Singh Koranga
+
{{Article Footer|ZCS 8.8.15|2020-04-13}}

Revision as of 12:52, 27 April 2020

Steps to remove broken soft links after upgrading to ZCS v8.7.x


   KB 23310        Last updated on 2020-04-27  




0.00
(0 votes)




Problem

After upgrading from v8.6 or older versions to v8.7.x and greater, there may be multiple broken soft links of third-party tools in "/opt/zimbra/".


Solution

From ZCS v8.7.x all third-party tools have been moved to directory "/opt/zimbra/common/", so the broken directory links from "/opt/zimbra/" can be removed.

The following will get us a list of broken soft links which can then be removed manually

  • Command to get broken soft link list.
find /opt/zimbra/ -type l ! -exec test -e {} \; -print 
OR 
find -L /opt/zimbra/ -type l 
OR 
find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"   


Example

  • Output of the above will be as follows:
root@ztalk:~# find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"

/opt/zimbra/cyrus-sasl:                             broken symbolic link to `/opt/zimbra/cyrus-sasl-2.1.26.2z'
/opt/zimbra/zimbramon/rrdtool:                      broken symbolic link to `/opt/zimbra/zimbramon/rrdtool-1.2.30'
/opt/zimbra/mariadb:                                broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
/opt/zimbra/opendkim:                               broken symbolic link to `/opt/zimbra/opendkim-2.9.2'
/opt/zimbra/dspam:                                  broken symbolic link to `/opt/zimbra/dspam-3.10.2'
/opt/zimbra/aspell:                                 broken symbolic link to `/opt/zimbra/aspell-0.60.6.1'
/opt/zimbra/mta/mariadb:                            broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
/opt/zimbra/mta/mysql:                              broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
/opt/zimbra/libtool:                                broken symbolic link to `/opt/zimbra/libtool-2.2.6b'
/opt/zimbra/unbound:                                broken symbolic link to `/opt/zimbra/unbound-1.4.22'
/opt/zimbra/bdb:                                    broken symbolic link to `/opt/zimbra/bdb-5.2.36'
/opt/zimbra/httpd:                                  broken symbolic link to `/opt/zimbra/httpd-2.4.10'
/opt/zimbra/memcached:                              broken symbolic link to `/opt/zimbra/memcached-1.4.17'
/opt/zimbra/tcmalloc:                               broken symbolic link to `/opt/zimbra/tcmalloc-2.2'
/opt/zimbra/rsync:                                  broken symbolic link to `/opt/zimbra/rsync-3.1.1'
/opt/zimbra/altermime:                              broken symbolic link to `/opt/zimbra/altermime-0.3-20100505'
/opt/zimbra/zeromq:                                 broken symbolic link to `/opt/zimbra/zeromq-3.2.3'
/opt/zimbra/nginx:                                  broken symbolic link to `/opt/zimbra/nginx-1.2.0-zimbra'
/opt/zimbra/amavisd:                                broken symbolic link to `/opt/zimbra/amavisd-new-2.9.0'
/opt/zimbra/openldap:                               broken symbolic link to `/opt/zimbra/openldap-2.4.39.2z'
/opt/zimbra/mysql:                                  broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
/opt/zimbra/curl:                                   broken symbolic link to `/opt/zimbra/curl-7.38.0'
/opt/zimbra/pflogsumm:                              broken symbolic link to `/opt/zimbra/pflogsumm-1.1.5'
/opt/zimbra/clamav:                                 broken symbolic link to `/opt/zimbra/clamav-0.98.4'
/opt/zimbra/heimdal:                                broken symbolic link to `/opt/zimbra/heimdal-1.5.2'
/opt/zimbra/openssl:                                broken symbolic link to `/opt/zimbra/openssl-1.0.1j'
/opt/zimbra/cbpolicyd:                              broken symbolic link to `/opt/zimbra/cbpolicyd-2.1.0-beta'
  • To remove broken soft links, run
find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   


Submitted by: Heera Singh Koranga
Verified Against: ZCS 8.8.15 Date Created: 2020-04-13
Article ID: https://wiki.zimbra.com/index.php?title=Steps_to_remove_broken_soft_links_after_upgrading_to_ZCS_v8.7.x Date Modified: 2020-04-27



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search