-
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.
-
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.
-
That looks like it, my fault for only searching the forums and not bugzilla too.
Voted!
-
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.