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

(Created page with "===<h1>Steps to remove broken soft links after upgrading to ZCS v8.7.x</h1>=== <hr> <br> <h2>Problem:</h2> After upgrading from v8.6 or older versions to v8.7.x there are mul...")
 
Line 5: Line 5:
 
<h2>Problem:</h2>
 
<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/".
 
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>
 
<h2>Solution:</h2>
Line 12: Line 13:
 
Here are the steps to get list of broken soft links and steps and then remove manually.     
 
Here are the steps to get list of broken soft links and steps and then remove manually.     
  
1) Command to get broken soft link list.   
+
'''1).''' 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
 
 
 
  find -L /opt/zimbra/ -type l  
 
  find -L /opt/zimbra/ -type l  
   
+
  OR  
OR
 
 
 
  find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"   
 
  find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"   
  
  
==Example:==
+
 
 +
<h2>Example:</h2>
 
   
 
   
 
Output of above command will like the following entries.   
 
Output of above command will like the following entries.   
Line 60: Line 57:
 
</pre>
 
</pre>
  
2) Command to remove broken soft links.   
+
'''2).''' Command to remove broken soft links.   
 
 
 
  find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   
 
  find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   
  
  
Opened bug for this - https://bugzilla.zimbra.com/show_bug.cgi?id=105953
+
Internal(private) bug for this - https://bugzilla.zimbra.com/show_bug.cgi?id=105953
  
  
Heera Singh Koranga
 
  
"Heera Singh" <hsingh@zimbra.com>
+
Submitted by:  Heera Singh Koranga

Revision as of 07:58, 21 August 2017

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



Problem:

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/".


Solution:

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/".

Here are the steps to get list of broken soft links and steps and then remove manually.

1). 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 above command will like the following entries.

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'

2). Command to remove broken soft links.

find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   


Internal(private) bug for this - https://bugzilla.zimbra.com/show_bug.cgi?id=105953


Submitted by: Heera Singh Koranga

Jump to: navigation, search