Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Disk Usage not showing

  1. #1
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default Disk Usage not showing

    May be a small bug here; in the new 5.0.4 "server statistics" section my disk usage graphs are all blank except for YTD which shows a brief period from last August. These were all populated in 4.5.10. Has anyone else seen this?

    Thanks

    Dan

  2. #2
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    See Disk stats graph missing following update to 5.0.4
    This problem showed up somewhere between 5.0.2 and 5.0.4

  3. #3
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Maybe related, but mine shows differently than described in that thread.

    My graphs are there but empty, except for year-to-date:




    But I see something else weird too. It's showing usage on /dev/sda1, which is actually a component of my raid drive /dev/md0 as shown below:

    and

    So I'm not sure why it's been looking at sda1 at all. Of course, I don't remember what the graphs used to look like except that they weren't empty and they reported real disk usage. . .but it was working fine in 4.5.10
    Cheers,

    Dan

  4. #4
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    The script that generates the disk logs is located at /opt/zimbra/libexec/zmdisklog.
    The line that generates the output that is parsed to create the log is "mount -t ext3"

    What does that command output when you run it manually? It should only be showing /dev/mdX lines so I don't see where the /dev/sda1 is coming from.

  5. #5
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Quote Originally Posted by ArcaneMagus View Post
    The script that generates the disk logs is located at /opt/zimbra/libexec/zmdisklog.
    The line that generates the output that is parsed to create the log is "mount -t ext3"

    What does that command output when you run it manually? It should only be showing /dev/mdX lines so I don't see where the /dev/sda1 is coming from.
    As you suspected, it shows the correct response:
    Code:
    zimbra@mail:~/libexec$ mount -t ext3
    /dev/md0 on / type ext3 (rw,errors=remount-ro)
    So whatever is wrong is not due to that
    Cheers,

    Dan

  6. #6
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Tried running zmdisklog from the command line as both Zimbra user and root, and it fails both ways:
    Code:
    zimbra@mail:~/libexec$ . zmdisklog
    -su: use: command not found
    -su: my: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: {PATH}: command not found
    -su: zmdisklog: line 29: syntax error near unexpected token `0'
    -su: zmdisklog: line 29: `exit(0) unless (-f "${zimbra_home}/conf/localconfig.xml");'
    
    zimbra@mail:~/libexec$ logout
    root@mail:/opt/zimbra/mailboxd# cd /opt/zimbra/libexec
    root@mail:/opt/zimbra/libexec# . zmdisklog
    bash: use: command not found
    bash: my: command not found
    bash: use: command not found
    bash: use: command not found
    bash: use: command not found
    bash: {PATH}: command not found
    bash: zmdisklog: line 29: syntax error near unexpected token `0'
    bash: zmdisklog: line 29: `exit(0) unless (-f "${zimbra_home}/conf/localconfig.xml");
    '
    root@mail:/opt/zimbra/libexec#
    Cheers,

    Dan

  7. #7
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    OK that was dumb. Never noticed it was a perl script not a bash script
    Cheers,

    Dan

  8. #8
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    OK, so after that I assume zmgengraphs creates the actual graphical images. It runs without reporting errors, but I can't see in the script where the image files get put. Any path hints?
    Cheers,

    Dan

  9. #9
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    /opt/zimbra/logger/db/work

    That is where the images are stored. There is a .gif and a .rrd for each graph that should be showing. The bug in 5.0.4 seems to be that it is only showing the first graph no matter what graphs are being generated.

  10. #10
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Quote Originally Posted by ArcaneMagus View Post
    /opt/zimbra/logger/db/work

    That is where the images are stored. There is a .gif and a .rrd for each graph that should be showing. The bug in 5.0.4 seems to be that it is only showing the first graph no matter what graphs are being generated.
    OK, that makes sense. For some reason it's generating graphs on /dev/sda1 with a name of Disk_Usage_0.gif and /dev/md0 with Disk_Usage_1.gif for each instance (hourly, daily, weekly, etc.). Then, as you correctly point out, it's only showing the first, irrelevant and useless, graphs.

    I'm not sure why it's showing /dev/sda1 at all since it doesn't show in the mount command we executed above. I know that the first installation I ever did was on a single drive (not by design--Ubuntu didn't have the right drivers for an Adaptec hardware RAID card and saw right thru the hardware partition to install on a single drive; I later did a re-install of Ubuntu with software RAID and restored my Zimbra backup to it). I suspect that there is an old variable somewhere (or maybe just the old sql tables) relating to that original install. Any idea how I might clear that out so those graphs (and that data) would not be considered at all?
    Cheers,

    Dan

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Daily mail report always reports "No messages found"
    By McPringle in forum Installation
    Replies: 42
    Last Post: 06-13-2011, 08:57 AM
  2. server statistics for disk usage
    By melody in forum Administrators
    Replies: 2
    Last Post: 03-27-2008, 06:28 AM
  3. [SOLVED] Disk Usage Stats Issue
    By shmiv in forum Administrators
    Replies: 3
    Last Post: 01-15-2008, 06:36 AM
  4. Disk Usage Statistic
    By kowell in forum Administrators
    Replies: 3
    Last Post: 06-22-2006, 08:53 PM
  5. Disk Usage doesn't report available
    By Achim.Theobald in forum Installation
    Replies: 3
    Last Post: 06-21-2006, 08:18 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
  •