I
have gone through a Zimbra installation on CentOS 6.7 Operating
System and made a mistake with the installation. Therefore, it has a
requirement of reconfiguration of Zimbra. As far as I have
understood, if there are any configured files for Zimbra it could not
perform reconfiguration.
The
solution I have found was completely remove the Zimbra installation
from the CentOS and install it from the beginning.
As
root:
Run the commands:
su – zimbra
zmcontrol stop
exit
su – zimbra
zmcontrol stop
exit
Then
Login as Root user to the system and perform below command.
Run the command: ps -ef | grep -i zimbra
If you see running processes
Kill any lingering processes: kill -9 <pid>
Run the command: df
If you see "amavisd" with the output then you need to unmount the amavisd folder. But most cases, it does not have seperate mount point. If tha case then skip this step.
run command: umount /opt/zimbra/amavisd<-new-blah>/tmp
cd /install_dir/zcs/
Run the command: ./install.sh -u
Run the following commands to complete the unistall:
rm -rf /opt/zimbra
rm -rf /var/log/*zimbra*
rm -rf /tmp/*zimbra*
rm -rf /tmp/hsperfdata*
rm -rf /tmp/install.*
rm -rf /tmp/*swatch*
rm -rf /tmp/log*
Run the command: ps -ef | grep -i zimbra
If you see running processes
Kill any lingering processes: kill -9 <pid>
Run the command: df
If you see "amavisd" with the output then you need to unmount the amavisd folder. But most cases, it does not have seperate mount point. If tha case then skip this step.
run command: umount /opt/zimbra/amavisd<-new-blah>/tmp
cd /install_dir/zcs/
Run the command: ./install.sh -u
Run the following commands to complete the unistall:
rm -rf /opt/zimbra
rm -rf /var/log/*zimbra*
rm -rf /tmp/*zimbra*
rm -rf /tmp/hsperfdata*
rm -rf /tmp/install.*
rm -rf /tmp/*swatch*
rm -rf /tmp/log*
Ensure
that you removed ALL the files owned by the user zimbra and
that contain the name "zimbra" in:
/var/log/
/tmp/
/var/log/
/tmp/
Even
after deleting if there are any folder remain delete it.
Run
the following commands to delete the users and groups:
userdel
zimbra
userdel postfix
groupdel zimbra
groupdel postfix
Remove the Zimbra logging lines below from /etc/rsyslog.conf:
local0.* -/var/log/zimbra.log
auth.* -/var/log/zimbra.log
mail.* -/var/log/zimbra.log
userdel postfix
groupdel zimbra
groupdel postfix
Remove the Zimbra logging lines below from /etc/rsyslog.conf:
local0.* -/var/log/zimbra.log
auth.* -/var/log/zimbra.log
mail.* -/var/log/zimbra.log
But
most probably those parameters are not there. Again if that is the
case skip this step.
Remove logrotate config file for Zimbra (CentOS, RHEL)
rm -f /etc/logrotate.d/zimbra
Remove the Zimbra lines below from /etc/prelink.conf (CentOS, RHEL)
# added for Zimbra
-l /opt/zimbra/lib
-l /opt/zimbra/sleepycat/lib
-l /opt/zimbra/openldap/lib
-l /opt/zimbra/cyrus-sasl/lib
-l /opt/zimbra/mysql/lib
Remove Zimbra entries in /etc/rc* (CentOS, RHEL)
chkconfig --del zimbra
Remove logrotate config file for Zimbra (CentOS, RHEL)
rm -f /etc/logrotate.d/zimbra
Remove the Zimbra lines below from /etc/prelink.conf (CentOS, RHEL)
# added for Zimbra
-l /opt/zimbra/lib
-l /opt/zimbra/sleepycat/lib
-l /opt/zimbra/openldap/lib
-l /opt/zimbra/cyrus-sasl/lib
-l /opt/zimbra/mysql/lib
Remove Zimbra entries in /etc/rc* (CentOS, RHEL)
chkconfig --del zimbra
With
this you are done, you can confirm this with “rpm
-q zimbra”
No comments:
Post a Comment