My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Ask questions about your setup or get help installing ZCS server (ZD section below).
4414LHammonds
Advanced member
Advanced member
Posts: 148
Joined: Sat Sep 13, 2014 2:14 am

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby 4414LHammonds » Thu Apr 26, 2012 10:12 pm

Mailbox Size Notifications
My company wants end-users to be notified when their mailbox is approaching a certain size but does not want an functionality to be diminished if maximums are exceeded. So this calls for a custom script to check mailbox sizes and send notifications. However, they also want certain people to have different limitations than the masses and some people completely excluded from any warnings.
This solution calls for a quota definition file to handle special cases. Anyone not in the quota file will be handled using system-wide default values. Here is a sample of the quota definition file:
/var/scripts/data/quota-data.txt



;AccountName, WarningSizeInMB, MaxSizeInMB, Exempt?

ceo@mydomain.com, 0, 0, Y

cio@mydomain.com, 0, 0, Y

hr@mydomain.com, 270, 300, N

webmaster@mydomain.com, 360, 400, N

boss@mydomain.com, 180, 200, N


In the above sample, the CEO and CIO are exempt from notifications and thus, will never be warned about mailbox size usage.

The HR person will receive warning messages when the mailbox size is between 270MB and 300MB. Once the mailbox is over 300MB, the message will turn into an alert message with slightly different text.

The webmaster will receive warnings between 360MB and 400MB and alerts over 400MB.

The boss will receive warnings between 180MB and 200MB and alerts over 200MB.
Here is a sample warning message:



From: admin@mydomain.com

To: lhammonds@mydomain.com

Sent: Saturday, May 5, 2012 11:21:12 AM

Subject: WARNING: Mailbox size
Your mailbox size is about to reach the maximum limit. Please delete or archive messages to reduce the size of your mailbox.
Mailbox size = 200MB. You have 50MB before you reach the maximum of 250MB.


Here is a sample alert message:



From: admin@mydomain.com

To: lhammonds@mydomain.com

Sent: Saturday, May 5, 2012 10:48:47 AM

Subject: ALERT: Mailbox full
Your mailbox has reached the maximum limit. Please delete or archive messages to reduce the size of your mailbox.
Mailbox size = 200MB. You are 50MB over the maximum of 150MB.


Here is the code for the notification script:
/var/scripts/prod/mailbox-size-notification.sh



#!/bin/bash

#############################################

## Name : mailbox-size-notification.sh

## Version : 1.0

## Date : 2012-05-04

## Author : LHammonds

## Purpose : Check mailbox size usage.

## Compatibility : Verified on Ubuntu Server 10.04.4 LTS, Zimbra 7.2.0 OSE

## Requirements : Must be run as root user

## Run Frequency : As needed. Recommend once per day.

## Parameters : None

## Exit Codes :

## 0 = Success

## 1 = Failure

################ CHANGE LOG #################

## DATE WHO WHAT WAS CHANGED

## ---------- --- ----------------------------

## 2012-05-04 LTH Created script.

#############################################
## Import common variables and functions.

source /var/scripts/common/standard.conf
## Define local variables.

LOGFILE="${TEMPDIR}/mailbox-size-notification.log"

DATAFILE="${SCRIPTDIR}/data/quota-data.txt"

ACCTFILE="${TEMPDIR}/mailbox-size-notification-accts.txt"

## Default minimum threshold in MB when email notifications start getting sent.

DefaultMin=180

## Default maximum mailbox size in MB (fake limit).

DefaultMax=200

DefaultExempt="N"

## Convert bytes to megabytes.

ConversionMultiplier=1048576

ConversionUnit="MB"

ReturnCode=0

ErrorFlag=0

## Message to send when mailbox is over the threshold but under the max.

WarningMessage="Your mailbox size is about to reach the maximum limit. Please delete or archive messages to reduce the size of your mailbox."

## Message to send when mailbox is over the max.

AlertMessage="Your mailbox has reached the maximum limit. Please delete or archive messages to reduce the size of your mailbox."
echo "`date +%Y-%m-%d_%H:%M:%S` - Quota check started." >> ${LOGFILE}

## Build a list of user accounts and their mailbox size.

su - zimbra -c "zmprov gqu ${MYDOMAIN}" > ${ACCTFILE}

ReturnCode=$?

if [ ${ReturnCode} -ne 0 ]; then

echo " ERROR: zmprov return code was ${ReturnCode}" >> ${LOGFILE}

echo "`date +%Y-%m-%d_%H:%M:%S` - Quota check aborted." >> ${LOGFILE}

exit 1

fi

if [ ! -s "${ACCTFILE}" ]; then

echo " ERROR: Account listing file is empty." >> ${LOGFILE}

echo "`date +%Y-%m-%d_%H:%M:%S` - Quota check aborted." >> ${LOGFILE}

exit 1

fi

while read AcctLine

do

## Loop through each mailbox account.

AcctName=`echo ${AcctLine} | cut -d ' ' -f1`

AcctSize=`echo ${AcctLine} | cut -d ' ' -f3`

AdjAcctSize=$((${AcctSize}/${ConversionMultiplier}))

QuotaData=`grep ${AcctName} ${DATAFILE}`

if [ -z "${QuotaData}" ]; then

## Set variable as if it were read from the file but using defaults.

QuotaData="${AcctName} ${DefaultMin} ${DefaultMax} ${DefaultExempt}"

fi

## Obtain quota values and exemption info.

QuotaMin=`echo ${QuotaData} | cut -d ' ' -f2`

QuotaMax=`echo ${QuotaData} | cut -d ' ' -f3`

QuotaExempt=`echo ${QuotaData} | cut -d ' ' -f4`

if [[ "${QuotaExempt}" = "N" || "${QuotaExempt}" = "n" ]]; then

## User is not exempt from notification messages.

if [[ ${AdjAcctSize} > ${QuotaMin} ]]; then

## A notification email needs to be sent.

if [[ ${AdjAcctSize}
## Mailbox size has not gone over the maximum.

SpaceAvailable=$((${QuotaMax}-${AdjAcctSize}))

echo " WARNING: ${AcctName} Mailbox=${AdjAcctSize}${ConversionUnit} Min=${QuotaMin} Max=${QuotaMax}" >> ${LOGFILE}

f_sendusermail "${AcctName}" "WARNING: Mailbox size" "${WarningMessage}

Mailbox size = ${AdjAcctSize}${ConversionUnit}. You have ${SpaceAvailable}${ConversionUnit} before you reach the maximum of ${QuotaMax}${ConversionUnit}."

else

## Mailbox size is now larger than maximum.

echo " ALERT: ${AcctName} Mailbox=${AdjAcctSize}${ConversionUnit} Min=${QuotaMin} Max=${QuotaMax}" >> ${LOGFILE}

SpaceOver=$((${AdjAcctSize}-${QuotaMax}))

f_sendusermail "${AcctName}" "ALERT: Mailbox full" "${AlertMessage}

Mailbox size = ${AdjAcctSize}${ConversionUnit}. You are ${SpaceOver}${ConversionUnit} over the maximum of ${QuotaMax}${ConversionUnit}."

fi

fi

fi

done
## Remove the temporary file.

if [ -f ${ACCTFILE} ]; then

rm ${ACCTFILE}

fi

echo "`date +%Y-%m-%d_%H:%M:%S` - Quota check finished." >> ${LOGFILE}

exit 0


The default values in this script have been set to 180 (GB) and a max of 200 (GB). That means the "boss" line in the sample quota definition file is unnecessary and can be removed from that file since he matches the system-wide default thresholds.
Here is a sample of the log file output:
/var/temp/mailbox-size-notification.log



2012-05-03_06:00:00 - Quota check started.

ALERT: lhammonds@mydomain.com Mailbox=250MB Min=180 Max=200

WARNING: joedirt@mydomain.com Mailbox=190MB Min=180 Max=200

WARNING: hr@mydomain.com Mailbox=280MB Min=270 Max=300

2012-05-03_06:00:05 - Quota check finished.

2012-05-04_06:00:00 - Quota check started.

ALERT: lhammonds@mydomain.com Mailbox=280MB Min=180 Max=200

WARNING: joedirt@mydomain.com Mailbox=181MB Min=180 Max=200

2012-05-04_06:00:04 - Quota check finished.

2012-05-05_06:00:00 - Quota check started.

2012-05-05_06:00:05 - Quota check finished.


EDIT 2012-05-05: I have edited the Scripting post on the 1st page and updated the "standard.conf" file which includes an additional global variable and end-user email function.


4414LHammonds
Advanced member
Advanced member
Posts: 148
Joined: Sat Sep 13, 2014 2:14 am

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby 4414LHammonds » Mon May 07, 2012 10:44 am

ToDoList (version 1.0)
I use the portable version of ToDoList to keep track of projects and things that need to get done.
This is a copy of my rollout project for Zimbra. Save the text into a file such as ZimbraRollout.xml
EDIT: Could not paste XML text here...too big. So I used PasteBin.

Next Tasks on my List:

- Manually add Distribution Groups to somewhat match Exchange groups

- Manually add external contacts to the global address list (have not figured out this one just yet)

- Test-run a mass mailbox conversion from Exchange to Zimbra and note amount of time required.

- End-user documentation (normal use and conversion/migration info)

- Admin-user documentation (for other admins that are not necessarily unix admins)
davidkillingsworth
Advanced member
Advanced member
Posts: 196
Joined: Sat Sep 13, 2014 2:26 am
ZCS/ZD Version: 8.8.15.GA.3829.UBUNTU14.64 -Patch 1

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby davidkillingsworth » Tue May 08, 2012 1:00 am

Wow. That's very thorough and details instructions.
Thank You for taking the time to provide that to the community.
Can I make a request that I don't see throughout your thread.
What are the steps for upgrading Zimbra on Ubuntu 10.04
7.1.2 to 7.2.0 for example.
Thanks, in advance.
phoenix
Ambassador
Ambassador
Posts: 26244
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby phoenix » Tue May 08, 2012 1:16 am

[quote user="davidkillingsworth"]What are the steps for upgrading Zimbra on Ubuntu 10.04[/QUOTE]That would be exactly the same steps as upgrading any other release of ZCS, run the install.sh script as per the information in the Release Notes with the added proviso of taking a full backup before any upgrade.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
davidkillingsworth
Advanced member
Advanced member
Posts: 196
Joined: Sat Sep 13, 2014 2:26 am
ZCS/ZD Version: 8.8.15.GA.3829.UBUNTU14.64 -Patch 1

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby davidkillingsworth » Tue May 08, 2012 1:23 am

[quote user="10330phoenix"]That would be exactly the same steps as upgrading any other release of ZCS, run the install.sh script as per the information in the Release Notes with the added proviso of taking a full backup before any upgrade.[/QUOTE]
I'm aware of the release notes, but was hoping for some of LHammonds extraordinarily detailed "tell it to me like I'm 5 years old" step by step instructions.
I just want to make sure that I'm thinking of all the steps.
phoenix
Ambassador
Ambassador
Posts: 26244
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby phoenix » Tue May 08, 2012 1:33 am

If you already have a backup strategy in place then take a full backup, while it's running read the Release Notes for anything that may be needed then then run the update, what else is there to know? How much more simple can it be? If my comments aren't simple enough then feel free to ignore them and wait for something more detailed. ;)
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
4414LHammonds
Advanced member
Advanced member
Posts: 148
Joined: Sat Sep 13, 2014 2:14 am

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby 4414LHammonds » Tue May 08, 2012 9:12 am

[quote]WOW. THAT'S VERY THOROUGH AND DETAILS INSTRUCTIONS.
THANK YOU FOR TAKING THE TIME TO PROVIDE THAT TO THE COMMUNITY.

[/QUOTE]

THANK YOU AND YOU ARE WELCOME.
[quote]

CAN I MAKE A REQUEST THAT I DON'T SEE THROUGHOUT YOUR THREAD.
WHAT ARE THE STEPS FOR UPGRADING ZIMBRA ON UBUNTU 10.04
7.1.2 TO 7.2.0 FOR EXAMPLE.

[/QUOTE]

AS PHOENIX HAS ALREADY MENTIONED, IT IS FAIRLY STRAIGHT-FORWARD TO UPGRADE 7.1 TO 7.2. I DID NOT PERFORM AN UPGRADE FOR THE CURRENT 7.2 INSTRUCTIONS BUT THE MAIN STEPS ARE TO BACKUP YOUR DATA, READ THE RELEASE NOTES THOROUGHLY, RUN THE INSTALL (WHICH DETECTS THE CURRENT INSTALLATION AND PERFORMS AN UPGRADE), MAKE ANOTHER BACKUP AND TEST EVERYTHING OUT.
I DID DOCUMENT MY EXPERIENCE WHEN I UPGRADED A TEST SYSTEM FROM 7.1.2 TO 7.1.3 IN ANOTHER THREAD THAT WAS DELETED. HERE IS A COPY OF IT (WHICH INCLUDES AN ISSUE I HAD WITH THE UPGRADE WHICH MAY NOT BE REPEATABLE USING THE SAME VERSIONS OR NEWER UPGRADES BUT I MADE NOTE OF IT ANYWAY)
ALSO, WHEN COMPARING HOW THESE OLD NOTES MIGHT APPLY TO THE CURRENT THREAD AND RELEASE, YOU WOULD OBVIOUSLY NEED TO DOWNLOAD AND USE THE CURRENT VERSION WHICH IS 7.2.0 AND THE "TEMP" FOLDER IN THIS SERVER LAYOUT IS /VAR/TEMP
EDIT: AND AS AN ADDITIONAL NOTE, SINCE THIS PARTICULAR UPGRADE, I HAVE FOUND THAT THE ERROR REGARDING LOCK TABLES IS RELATED TO TEMP TABLES AND HAS BEEN A "KNOWN" ISSUE / BUG IN MYSQL THAT HAS NEVER BEEN RESOLVED. I'M NOT SURE WHY THE "INTEGRITY" REPORT SCRIPT WAS NOT SLIGHTLY MODIFIED TO IGNORE THAT PARTICULAR ERROR ON TEMP TABLES...OR AT THE VERY LEAST CHANGE IT FROM A CRITICAL SHOW-STOPPER TO JUST AN FYI WITH A BIT OF INFO ABOUT IT SUCH AS A LINK TO THE LONG-EXISTING BUG REPORT.
[QUOTE]

UPGRADE ZIMBRA 7.1.2 TO 7.1.3
BEFORE UPGRADING




  • READ AND UNDERSTAND THE RELEASE NOTES BEFORE DOING ANYTHING ELSE.

  • MAKE A VERIFIED OFFLINE BACKUP AND BE SURE TO PLACE IT AT AN OFFSITE LOCATION AS WELL.

  • SINCE THIS IS A VIRTUAL ENVIRONMENT, MIGHT AS WELL SHUTDOWN THE SERVER AND CREATE A SNAPSHOT OF THE SERVER. GIVE IT A NAME LIKE BEFORE 7.1.3 UPGRADE AND DESCRIPTION OF UBUNTU SERVER 10.04.4 LTS, ZIMBRA 7.1.3 OSE INSTALLED, STATIC IP: 192.168.107.25.

  • ONCE THE SNAPSHOT IS COMPLETE, START UP THE UBUNTU SERVER.


UPGRADE STEPS




  • AT THE LOGIN PROMPT, LOGIN WITH YOUR ADMINISTRATOR ACCOUNT (ADMINISTRATOR / MYADMINPASS) AND THEN TYPE SU AND THE ROOT PASSWORD (MYROOTPASS)

  • UPDATE THE PACKAGE DATABASE BY TYPING APTITUDE UPDATE

  • INSTALL THE LATEST UPDATES BY TYPING APTITUDE -Y SAFE-UPGRADE

  • DOWNLOAD THE OPEN SOURCE EDITION FROM "OPEN SOURCE EDITION DOWNLOADS: ENTERPRISE MESSAGING AND COLLABORATION SOFTWARE BY ZIMBRA
    METHOD #1 - DOWNLOAD FROM YOUR PC
    A. DOWNLOAD THE .TGZ FILE AND COPY IT TO THE UBUNTU SHARE --> \MAILSHARE OR \192.168.107.25SHARE

    B. ONCE COPIED TO THE SERVER, ACCESS THE CONSOLE AND TYPE THE FOLLOWING:
    MV /SRV/SAMBA/SHARE/ZCS* /TEMP

    METHOD #2 - DOWNLOAD DIRECTLY FROM THE SERVER
    A. OBTAIN THE DOWNLOAD URL FROM THE "ZIMBRA OSE PAGE

    B. TYPE THE FOLLOWING COMMANDS ON THE SERVER CONSOLE (USING THE CORRECT URL)
    CD /TEMP

    WGET

  • EXTRACT">HTTP://FILES.ZIMBRA.COM/DOWNLOADS/7.1.3_GA/ZCS-7.1.3_GA_3346.UBUNTU10_64.20110928134610.TGZ
  • EXTRACT THE ARCHIVE BY TYPING THE FOLLOWING COMMANDS:
    MKDIR /TEMP/INSTALL

    TAR -C /TEMP/INSTALL --STRIP-COMPONENTS=1 -XZF /TEMP/ZCS*

  • START THE INSTALLATION PROGRAM BY TYPING THE FOLLOWING:
    CD /TEMP/INSTALL

    ./INSTALL.SH


  • THE FOLLOWING IS DISPLAYED:



    OPERATIONS LOGGED TO /TMP/INSTALL.LOG.3865

    CHECKING FOR EXISTING INSTALLATION...

    ZIMBRA-LDAP...FOUND ZIMBRA-LDAP-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-LOGGER...FOUND ZIMBRA-LOGGER-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-MTA...FOUND ZIMBRA-MTA-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-SNMP...FOUND ZIMBRA-SNMP-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-STORE...FOUND ZIMBRA-STORE-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-APACHE...FOUND ZIMBRA-APACHE-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-SPELL...FOUND ZIMBRA-SPELL-7.1.2_GA_3268.UBUNTU10_64

    ZIMBRA-CONVERTD...NOT FOUND

    ZIMBRA-MEMCACHED...NOT FOUND

    ZIMBRA-PROXY...NOT FOUND

    ZIMBRA-ARCHIVING...NOT FOUND

    ZIMBRA-CLUSTER...NOT FOUND

    ZIMBRA-CORE...FOUND ZIMBRA-CORE-7.1.2_GA_3268.UBUNTU10_64

    ZCS UPGRADE FROM 7.1.2 TO 7.1.3 WILL BE PERFORMED.
    SAVING EXISTING CONFIGURATION FILE TO /OPT/ZIMBRA/.SAVECONFIG
    PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.

    ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU

    FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING

    THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY

    THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS

    AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
    LICENSE TERMS FOR THE ZIMBRA COLLABORATION SUITE:

    HTTP://WWW.ZIMBRA.COM/LICENSE/ZIMBRA_PUBLIC_EULA_2.1.HTML



  • AGREE TO LICENSE AGREEMENT? PRESS Y {ENTER}

  • IF YOU ARE MISSING ANY PREREQUISITES, EXIT THE INSTALLATION AND INSTALL THEM. YOU CAN INSTALL ALL AT ONE TIME BY SEPARATING EACH NAME WITH A SPACE AFTER APT-GET INSTALL SUCH AS THE FOLLOWING:

    APTITUDE INSTALL SYSSTAT SQLITE3


  • DO YOU WANT TO VERIFY MESSAGE STORE DATABASE INTEGRITY? PRESS Y {ENTER}

  • YOU WILL PROBABLY SEE THE FOLLOWING OUTPUT:



    VERIFYING INTEGRITY OF MESSAGE STORE DATABASES. THIS MAY TAKE A WHILE.

    STARTING MYSQLD...DONE.

    MYSQLD IS ALIVE

    DATABASE ERRORS FOUND.

    /OPT/ZIMBRA/MYSQL/BIN/MYSQLCHECK --DEFAULTS-FILE=/OPT/ZIMBRA/CONF/MY.CNF -S /OPT/ZIMBRA/DB/MYSQL.SOCK -A -C -S -U ROOT --PASSWORD=GHEZVNZD323VVKK0UAUCDPRGTYI --AUTO-REPAIR

    MYSQL.GENERAL_LOG

    ERROR : YOU CAN'T USE LOCKS WITH LOG TABLES.

    MYSQL.SLOW_LOG

    ERROR : YOU CAN'T USE LOCKS WITH LOG TABLES.

    MYSQLD IS ALIVE

    STOPPING MYSQLD... DONE.
    CHECKING FOR INSTALLABLE PACKAGES
    FOUND ZIMBRA-CORE

    FOUND ZIMBRA-LDAP

    FOUND ZIMBRA-LOGGER

    FOUND ZIMBRA-MTA

    FOUND ZIMBRA-SNMP

    FOUND ZIMBRA-STORE

    FOUND ZIMBRA-APACHE

    FOUND ZIMBRA-SPELL

    FOUND ZIMBRA-MEMCACHED

    FOUND ZIMBRA-PROXY
    THE ZIMBRA COLLABORATION SUITE APPEARS ALREADY TO 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? PRESS Y {ENTER}

  • INSTALL ZIMBRA-MEMCACHED? PRESS N {ENTER} (THIS IS NOT A MULTI-SERVER)

  • INSTALL ZIMBRA-PROXY? PRESS N {ENTER} (THIS IS NOT A MULTI-SERVER)

  • THE SYSTEM WILL BE MODIFIED. CONTINUE? PRESS Y {ENTER}

  • SEE NOTES BELOW: I COULD NEVER GET PAST THIS STEP UNLESS I ANSWERED "NO" WHEN ASKED TO VERIFY DATABASE INTEGRITY A FEW STEPS EARLIER.

  • NOTIFY ZIMBRA OF YOUR INSTALLATION? PRESS N {ENTER} (FEEL FREE TO ANSWER YES IF THIS IS NOT A TEST SYSTEM)

  • PRESS {ENTER} TO EXIT SETUP. NOTE: LOG FILES PLACED IN /OPT/ZIMBRA/LOG


AFTER UPGRADING




  • MAKE A VERIFIED OFFLINE BACKUP AND BE SURE TO PLACE IT AT AN OFFSITE LOCATION AS WELL.

  • SINCE THIS IS A VIRTUAL ENVIRONMENT, MIGHT AS WELL SHUTDOWN THE SERVER AND CREATE A SNAPSHOT OF THE SERVER. GIVE IT A NAME LIKE AFTER 7.1.3 UPGRADE AND DESCRIPTION OF UBUNTU SERVER 10.04.4 LTS, ZIMBRA 7.1.3 OSE INSTALLED, STATIC IP: 192.168.107.25.

  • ONCE THE SNAPSHOT IS COMPLETE, START UP THE UBUNTU SERVER.

  • NOW GO THROUGH YOUR CHECKLIST OF THINGS TO VERIFY THAT YOUR SERVER IS ONLINE AND FULLY FUNCTIONAL. IF SOMETHING IS NOT WORKING RIGHT, NOW IS YOUR OPPORTUNITY TO RESTORE.

  • IF YOU ARE SATISFIED THAT EVERYTHING IS SOLID, DELETE THE SNAPSHOTS.


--------------------------- START OF NOTES AFTER STEP 15 ABOVE ------------------------------
EDIT: I JUST DID A REMOTE VPN TO WORK TO CHECK ON HOW THINGS WERE GOING BUT AFTER 2 HOURS, IT HAS NOT PROGRESSED MUCH SINCE I LEFT IT.
WHEN I LEFT WORK, THE LAST MESSAGE DISPLAYED WAS "SHUTTING DOWN ZIMBRA MAIL"
TWO HOURS LATER, IT ONLY ADDED ONE ADDITIONAL MESSAGE SAYING "BACKING UP THE LDAP DATABASE"
IF NOTHING HAS GONE WRONG, I SUPPOSE THIS WOULD BE A REALLY LONG UPGRADE IF IT ACTUALLY HAD A BUNCH OF USERS AND A LARGE MAIL STORAGE.
EDIT: IT IS NOW 5 HOURS SINCE I STARTED THE UPGRADE AND IT IS STILL SITTING ON THE "BACKING UP THE LDAP DATABASE" MESSAGE. THAT IS AT LEAST 3 HOURS JUST ON THIS PART ALONE. I SUPPOSE SOMETHING IS BROKEN SOMEWHERE. HMMM....WITH A SIMPLE ONE-OFF INSTALL / UPGRADE AND HAVING A PROBLEM WITH THE UPGRADE, IT IS NOT INSPIRING A LOT OF CONFIDENCE AT THIS POINT. I'LL ASSUME IT IS SOMETHING STUPID THAT I DID (OR FAILED TO DO). I'LL DO SOME PROBLEM ANALYSIS AND RESOLUTION RESEARCH TOMORROW MORNING.
EDIT: I WAS JUST TOO CURIOUS TO GO TO BED AND SLEEP ON IT. SO I PRESSED CTRL+Z TO SEND THE INSTALL INTO THE BACKGROUND AS A PAUSED PROCESS. I THEN TYPED BG 1 WHICH TOLD IT TO CONTINUE RUNNING IN THE BACKGROUND WHILE I DID SOME RESEARCH. THE 1ST THING I CHECKED WAS MY DRIVE SPACE EVEN THOUGH THE INSTALL SCRIPT CHECKS FOR ENOUGH SPACE AT THE BEGINNING. I TYPED DF -H AND IT DOES SHOW I HAVE QUITE A BIT OF SPACE AVAILABLE SO RUNNING OUT OF ROOM WAS NOT THE ISSUE. I DID NOTICE IT TOOK SEVERAL SECONDS TO COMPLETE THE COMMAND, WHICH WAS THE DISPLAY OF THE REMOTE WINDOWS SERVER MOUNT. THINKING THAT THE MOUNT MIGHT BE CAUSING A SLOWDOWN, I TYPED UMOUNT /MNT/BACKUP TO TEMPORARILY UNMOUNT MY REMOTE BACKUP SERVER. BUT THAT DID NOT SEEM TO BE THE PROBLEM EITHER. I THEN LOOKED AT THE /TMP/INSTALL.LOG FILE AND SURE ENOUGH, I FOUND THE PROBLEM:


STOPPING LDAP...FAILED.

KILLING SLAPD WITH PID 874............................................................................................................................................................................................................................................................................................................ GAVE UP WAITING!

COMMAND: /OPT/ZIMBRA/LIBEXEC/ZMSLAPCAT /OPT/ZIMBRA/DATA/LDAP

HDB_DB_OPEN: DATABASE "": UNCLEAN SHUTDOWN DETECTED; ATTEMPTING RECOVERY.

HDB_DB_OPEN: DATABASE "": RECOVERY SKIPPED IN READ-ONLY MODE. RUN MANUAL RECOVERY IF ERRORS ARE ENCOUNTERED.



FOR WHATEVER REASON, THE LDAP SERVICE FAILED TO STOP FOR THE INSTALL SCRIPT. THAT MAKES NO SENSE TO ME WHATSOEVER. I HAVE RUN /ETC/INIT.D/ZIMBRA STOP BOTH MANUALLY AND THROUGH SCRIPTS AND NEVER ONCE HAD A PROBLEM STOPPING OR STARTING THE SERVICES. I'M AT A LOSS FOR HOW TO RESOLVE THE PROBLEM OR KEEP IT FROM HAPPENING AGAIN IN THE FUTURE.
I'VE READ SEVERAL TIMES BEFORE TO SIMPLY RUN THE INSTALL SCRIPT AGAIN AFTER AN ERROR TO SEE IF IT CAN GET PAST IT SO I'LL GIVE THAT A SHOT RIGHT NOW (AFTER I MANUALLY TRY TO CONTROL THE SERVICES). SINCE THE INSTALL IS STILL RUNNING IN THE BACKGROUND, I'M GOING TO TYPE FG 1 TO BRING IT BACK TO THE FOREGROUND SO I CAN PRESS CTRL+C TO BREAK OUT AND STOP THE INSTALL SCRIPT AND TRY AGAIN.
EDIT: SEVERAL HOURS LATER (AFTER I WOKE UP FROM FALLING ASLEEP IN MY CHAIR) I HAVE FINALLY FIGURED OUT HOW TO GET PAST THAT PROBLEM. IT DID NOT MATTER IF ZIMBRA SERVICES WERE STOPPED OR STARTED BEFORE RUNNING INSTALL.SH, IT ALWAYS HUNG UP DURING THE LDAP BACKUP IF I ANSWERED YES WHEN ASKED TO VERIFY MESSAGE STORE DATABASE INTEGRITY. ANSWERING NO TO THAT QUESTION ALLOWED THE INSTALL TO PROCEED PAST THE LDAP BACKUP STEP.
--------------------------- END OF NOTES AFTER STEP 15 ABOVE ------------------------------


AS A SIDE NOTE, I WAS LOGGED INTO MY MAILBOX ON ONE OF MY BROWSER TABS AND DID NOT REALIZE IT BEFORE STARTING THE UPGRADE. WHEN I WENT BACK TO THAT TAB TO LOGIN AND SEE IF THINGS WERE WORKING, I WAS GREETED WITH THE FOLLOWING AWESOME AND CONVENIENT LITTLE MESSAGE:


WARNING

-------

THE SERVER SOFTWARE HAS BEEN UPDATED. IT IS RECOMMENDED THAT YOU RELOAD YOUR BROWSER SO THAT YOU ARE UP TO DATE.
OLD VERSION: 7.1.2_GA_3268 20110804130819 20110804-1312 FOSS

NEW VERSION: 7.1.3_GA_3346 20110928134610 20110928-1350 FOSS
WOULD YOU LIKE TO RELOAD THE BROWSER NOW? WARNING: IF YOU CHOOSE NOT TO RELOAD, THERE IS A CHANCE YOU WILL ENCOUNTER ERRORS.

[YES] [NO]


THIS POPUP BOX WAS SITTING ON TOP OF ANOTHER POPUP BOX THAT SAID THE FOLLOWING (WHICH MUST HAVE POPPED UP 1ST):



ZIMBRA

------

CANNOT CONNECT TO SERVER.

[SHOW DETAILS] [OK]



[/QUOTE]
edgarosy
Posts: 3
Joined: Sat Sep 13, 2014 2:35 am

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby edgarosy » Wed May 09, 2012 10:42 am

Very nice post. I woul like to get similar information for a fresh installation of Zimbra on a Red-Hat 6 server and migrating from openldap server instead of Active Directory.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 607
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.0.9.GA.6191.UBUNTU12.64 FOSS

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby ccelis5215 » Fri May 11, 2012 9:44 pm

[QUOTE]Very nice post. I woul like to get similar information for a fresh installation of Zimbra on a Red-Hat 6 server and migrating from openldap server instead of Active Directory.[/QUOTE]
edgarosy, pls let us know!
ccelis
dream_liner2k2
Posts: 34
Joined: Sat Sep 13, 2014 2:27 am

My Notes for Installing Zimbra OSE on Ubuntu Server 10.04 LTS

Postby dream_liner2k2 » Tue Jun 19, 2012 11:44 pm

Dear LH,
You are the MAN !!!
Think of some feature and search for the script, and all roads are leading me to the RoMAN !!!
Thank you so so much and that much more for your efforts.
At the juncture, seeing notes on upgrading to 7.2, I'm utterly butterly jittery.
Thanks all the more

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 10 guests