Developing Zimlets

07 Jun

So, here I am again, after some time.

Today we’ll talk about Zimlets, as we released our first one. Well, it was an Admin extension, to be precise.

Here at YetOpen we believe a lot in Zimbra, the wonderful open source collaboration suite. And all the efforts we spend in studying, helping and distributing it are here to prove it. One more step forward was moved today, with the release of an extension for the admin interface, used to integrate mail accounts with the powerful mail backup solution hosted by Promo, a local service provider.

Read the rest of this entry »

Improve the performances of your Zimbra server

15 Apr

We‘ve set up a pretty nice installation of a Zimbra server, based on Ubuntu 8.04LTS, which among the rest handles NFS homes, Samba shares, local DNS, faxes with HylaFAX + AvantFAX frontend and MySQL. Everything is well fitted together, and in failover configuration thanks to the always beloved Heartbeat + DRBD couple. It’s a very nice setup, which needed some tuning here and there. And maybe I’ll talk about this, someday.

So, after all it took, there was still a little occasional slowdown happening every now and then. The CPU spiked to 100% quite often, say every five minutes or less, causing noticeable unresponsiveness on the Zimbra Web Client.

Searching here and there, most of the documents identify in zmlogger the culprit, the Zimbra Logger service. This was true until 5.x version, or yet until 6.0.2. After that, zmlogger was fixed of the remaining issues, and became a lot more CPU friendly.

So what left? Checks! Zimbra performs services check quite often, requiring much performances. If you never had problems with crashing or failing daemons, you can loosen those executions thus saving CPU for real users.

Become the zimbra user, and execute the following commands:

zmlocalconfig -e zmmtaconfig_interval=6000
zmprov mcf zimbraLogRawLifetime 7d
zmprov mcf zimbraLogSummaryLifetime 30d
/opt/zimbra/libexec/zmlogprocess

then, again as zimbra user, you must edit the relative crontab row as follows:

crontab -e
*/60 * * * * /opt/zimbra/libexec/zmstatuslog

Myself, and other users on IRC, reported significant load reduction on the server.

Many thanks to raj of the Zimbra Forum for sharing this tip!

Allowing Heartbeat to perform bind mounts

14 Apr

I ran into the problem of  needing a bind mount over a shared disk resources on DRBD.

This because some software, like Zimbra, are not friendly with filesystem links. So, since I didn’t want to dedicate a whole DRBD resource to /opt/zimbra, I needed to use bind mount.

Unluckily, heartbeat doesn’t like that kind of mount, because the none filesystem type is not present in /proc/filesystems.

So a little option has to be added to che check if. In /usr/lib/ocf/resource.d/heartbeat/Filesystem, apply the following patch:


--- Filesystem.ORIG     2010-04-14 16:02:01.000000000 +0200
+++ Filesystem  2010-04-14 16:04:55.000000000 +0200
@@ -355,7 +355,8 @@
# Insert Filesystem module
$MODPROBE $FSTYPE >/dev/null 2>&1
grep -e "$FSTYPE"'$' /proc/filesystems >/dev/null
-                       if [ $? -ne 0 ] ; then
+                       # YetOpen - maxxer - 2010.04 To allow bind mount by heartbeat
+                       if [ $? -ne 0 -a "$FSTYPE" != "none" ] ; then
ocf_log err "Couldn't find filesystem $FSTYPE in /proc/filesystems"
return $OCF_ERR_ARGS
fi

This way, none filesystem will be allowed.

Samba-Vscan on Debian Lenny with Samba 3.2.5

12 Apr

samba-vscan is quite an old project, part of the OpenAntivirus Project, used to have Samba perform a virus check on files accessed by the clients. Unfortunately, this software is not mantained anymore, and while Samba is obviously progressing, making it compile is not an easy task.

Read the rest of this entry »

Gigapicture

10 Apr

Let’s celebrate the new wordpress install with the post of the first picture uploaded to Gigapan.

Gigapan is a site hosting huge pictures, usually a combination of several (hundreds) photos taken with modern digital cameras, stitched togheter to mage a big one. It also allows you to browse the image, zoom in and out to see the most little detail. This particular image isn’t the most interesting gigapan, because it’s always curious to look for for people or other curious things.

Read the rest of this entry »

nowhere land

a place that does not exist