Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-2006, 01:08 PM
Loyal Member
 
Posts: 94
Default Wrong info in Disk Stats

OS: Ubuntu 6.06 LTS in Vmware
ZCS: zcs-4.0.2_GA_362.DEBIAN3.1.tgz

zmdisklog seems to be pulling the wrong portion of the stats.


From the cmd line df -ml:

root@zimbra:~# df -ml
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/Ubuntu-root
33576 2623 29249 9% /
varrun 514 1 514 1% /var/run
varlock 514 1 514 1% /var/lock
udev 514 1 514 1% /dev
devshm 514 0 514 0% /dev/shm
/dev/sda5 228 14 203 7% /boot
/viriiscan 600 0 600 0% /opt/zimbra/amavisd-new-2.4.1/tmp

Running /opt/zimbra/libexec/zmdisklog and checking the output reveals:

dev: /dev/mapper/Ubuntu-root, mp: /, tot: 2623, avail: 9%
dev: /dev/sda5, mp: /boot, tot: 228, avail: 203

which leaves my Disk Status looking very wrong. I would think the correct output would be something more like this:

dev: /dev/mapper/Ubuntu-root, mp: /, tot: 33576, avail: 29249
dev: /dev/sda5, mp: /boot, tot: 228, avail: 203

Any thoughts are where to look is appreciated.
__________________
Brian Harden
www.chromedcomputing.com

Last edited by brained; 10-19-2006 at 01:12 PM..
Reply With Quote
  #2 (permalink)  
Old 10-19-2006, 02:42 PM
Active Member
 
Posts: 36
Default

http://bugzilla.zimbra.com/show_bug.cgi?id=11233

This looks like exactly what you are describing.


/dev/mapper/Ubuntu-root is long enough that df wraps
33576 2623 29249 9% to a line by itself.

Since zmdisklog parses for the 2nd and 4th fields, it gives the results you see.

I suggest going over to bugzilla and adding your 2 cents by voting for this bug.
Reply With Quote
  #3 (permalink)  
Old 10-19-2006, 03:55 PM
Loyal Member
 
Posts: 94
Default

That looks like it, my fault for only searching the forums and not bugzilla too.
Voted!
__________________
Brian Harden
www.chromedcomputing.com
Reply With Quote
  #4 (permalink)  
Old 10-19-2006, 05:13 PM
Loyal Member
 
Posts: 94
Default Quick Fix

Ok here's a quick fix:
Change line 49 of /opt/zimbra/libexec/zmdisklog from:

$DFCMD = "df -ml ";

To:

$DFCMD = "df -mlP ";

The P means use the POSIX output format and will no longer wrap long lines.
__________________
Brian Harden
www.chromedcomputing.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.