Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-18-2006, 07:35 AM
Member
 
Join Date: Feb 2006
Posts: 12
ccmacmil is on a distinguished road
Default Zimbra Disk Statistics, non-EXT3 Volumes

The disk status logger seems to be biased towards Linux EXT3 volumes and Mac HFS. I assume this is the case to avoid stats on TMPFS, PROC, etc.

Code:
if ($platform eq "MACOSX") {
        $MNTCMD = "mount -t hfs";
        $DFCMD = "df -ml ";
} else {
        $MNTCMD = "mount -t ext3";
        $DFCMD = "df -ml ";
}
This creates a problem for SAN users running XFS or SUSE users running reisferfs. I have modified mine to accept these additional file systems by:

Code:
if ($platform eq "MACOSX") {
        $MNTCMD = "mount -t hfs";
        $DFCMD = "df -ml ";
} else {
        $MNTCMD = "mount -t ext3,reiserfs,xfs";
        $DFCMD = "df -ml ";
}
Will this cause any troubles down the line??? This does not solve the problem of statistics greater than 24 hours... nor the "hostname" statistics issue (i.e. data stored as "host" instead of "host.domain.tld" and recalled from table as "host" yielding nothing...)
Reply With Quote
  #2 (permalink)  
Old 02-18-2006, 10:08 AM
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,783
KevinH is on a distinguished road
Default

May not cause trouble with the stats, but using a file system on Linux other than ext3 is not recommended. Don't want to start a 'which file system is better' war here but from the testing and work we've done ext3 is the way to go. Might just be based on how Zimbra uses the file system but it the file system we recommend.
__________________
Subscribe to our Blog - Bugzilla - Wiki - Downloads
Reply With Quote
  #3 (permalink)  
Old 03-30-2007, 08:30 AM
Moderator
 
Join Date: May 2006
Location: England
ZCS Version: Release 5.0.9_GA_2533.UBUNTU6 UBUNTU6 NETWORK edition
Posts: 440
Dirk is on a distinguished road
Default

Sorry to drag open an old thread.

I assume this change will be overwritten when updating zimbra?

I understand that Zimbra recommend an ext3 filesystem, (although I dont recall reading that anywhere before I formatted as reiser), but the current code fails and offers no clue why.

Could Zimbra please anclude this change in the codebase so that the graphs will work for everyone, supported FS or not, or add error checking to the code that shows a message like "Graphs not available, you need an ext3 partition" ?
Reply With Quote
  #4 (permalink)  
Old 04-03-2008, 10:21 PM
ArcaneMagus's Avatar
Advanced Member
 
Join Date: Feb 2007
Location: Portland, OR
ZCS Version: Release 5.0.9_GA_2533.UBUNTU8_64 UBUNTU8_64 FOSS edition
Posts: 184
ArcaneMagus is on a distinguished road
Send a message via ICQ to ArcaneMagus Send a message via AIM to ArcaneMagus Send a message via MSN to ArcaneMagus Send a message via Yahoo to ArcaneMagus
Default

Yes the change is overwritten with every upgrade and has to be re-applied.
Reply With Quote
  #5 (permalink)  
Old 04-04-2008, 12:01 AM
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 7,848
phoenix is on a distinguished road
Default

Quote:
Originally Posted by Dirk View Post
I understand that Zimbra recommend an ext3 filesystem, (although I dont recall reading that anywhere before I formatted as reiser), but the current code fails and offers no clue why.
I had a feeling that it was mentioned in the Documention but for the life of me, I can't find it. The only current reference I can see is in the Performance Tuning for Large Deployments.

There is, of course, the inevitable bug report.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 04-07-2008, 07:32 AM
Moderator
 
Join Date: May 2006
Location: England
ZCS Version: Release 5.0.9_GA_2533.UBUNTU6 UBUNTU6 NETWORK edition
Posts: 440
Dirk is on a distinguished road
Default

Whoa! This one is a blast from the past
I'd check to confirm this but I dont have a non ext3 system anymore, but if anyone has a reiser or ext2 etc platfrom that they find the charts work as default on, then please make a note and we can retire this thread back into the dusty cupboards !
Reply With Quote
  #7 (permalink)  
Old 04-07-2008, 09:59 AM
ArcaneMagus's Avatar
Advanced Member
 
Join Date: Feb 2007
Location: Portland, OR
ZCS Version: Release 5.0.9_GA_2533.UBUNTU8_64 UBUNTU8_64 FOSS edition
Posts: 184
ArcaneMagus is on a distinguished road
Send a message via ICQ to ArcaneMagus Send a message via AIM to ArcaneMagus Send a message via MSN to ArcaneMagus Send a message via Yahoo to ArcaneMagus
Default

As the original poster stated...to get the disk stats working with anything other than ext3 you will need to modify /opt/zimbra/libexec/zmdisklog as the default version installed will only run statistics on partitions that are returned with the "mount -t ext3" command. All other partitions are ignored. This has been true since at minimum 4.5.1 (when I first installed Zimbra).
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/administrators/1799-zimbra-disk-statistics-non-ext3-volumes.html
Posted By For Type Date
Bug 13202 - No disk statistics when using ReiserFS This thread Refback 08-08-2007 01:00 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Clamav problem ? What's happening ? aNt1X Installation 23 02-14-2008 04:43 AM
huge log size rmvg Administrators 5 01-02-2007 09:39 AM
zimbra-core missing kinaole Developers 1 10-02-2006 11:59 AM
Seeming variety of problems on suse-9.1 Crexis Installation 52 03-03-2006 11:19 PM
FC3 Install and no zimbra ? aws Installation 10 10-09-2005 04:19 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0