Results 1 to 4 of 4

Thread: Wrong info in Disk Stats

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    94
    Rep Power
    10

    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.
    Last edited by brained; 10-19-2006 at 01:12 PM.

  2. #2
    Join Date
    Oct 2006
    Location
    Montana
    Posts
    38
    Rep Power
    9

    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.

  3. #3
    Join Date
    Dec 2005
    Posts
    94
    Rep Power
    10

    Default

    That looks like it, my fault for only searching the forums and not bugzilla too.
    Voted!

  4. #4
    Join Date
    Dec 2005
    Posts
    94
    Rep Power
    10

    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.

Similar Threads

  1. postfix stopped
    By riegersteve in forum Administrators
    Replies: 1
    Last Post: 05-15-2007, 04:25 PM
  2. Mails accumulating in deferred queue
    By NIRMESH KUMAR in forum Administrators
    Replies: 10
    Last Post: 03-19-2007, 01:17 AM
  3. Web client logon fails (INVALID_PDU)
    By jermxx in forum Installation
    Replies: 8
    Last Post: 02-20-2007, 02:20 PM
  4. The mailbox and mta dies in FC4 GA version
    By meikka in forum Installation
    Replies: 72
    Last Post: 03-16-2006, 05:30 PM
  5. Zimbra on Debian?
    By omry_y in forum Installation
    Replies: 25
    Last Post: 11-04-2005, 11:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •