Results 1 to 8 of 8

Thread: Change server statistics disk tab to a different patition

  1. #1
    Join Date
    Oct 2008
    Posts
    47
    Rep Power
    6

    Default Change server statistics disk tab to a different patition

    When I click on Server statistics and then click on the disk tab it shows a graph of the disk usage. The graph that is shown is of the boot partition. My main partition (where zimbra is installed) does not show.

    Is there any way to configure this and make the server statistics look at a different partition?

    SUSE 10 SP2
    / partition is LVM formatted as EXT3

  2. #2
    Join Date
    Oct 2008
    Posts
    47
    Rep Power
    6

    Default

    Just curious if anyone had an idea for this?

  3. #3
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    On 5.0.x the disk logging is controlled by /opt/zimbra/libexec/zmdisklog.
    This file first executes `mount -t ext3` and then runs `df -mlP` on each of the mount points it finds and parses the result. Beyond something odd with the output of that... I don't know why it wouldn't be showing as your main partition is ext3.

  4. #4
    Join Date
    Oct 2008
    Posts
    47
    Rep Power
    6

    Default

    When I check the server partitions the /boot volume is setup as a normal boot volume but when I use the mount command it appears to be showing up as ext3.

    I am using LVM on my primary partition.

    Is there any way to easily modify the script to show a specific volume?
    Last edited by mikeyes; 10-07-2009 at 12:40 PM.

  5. #5
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    What does the output of `mount` look like?

  6. #6
    Join Date
    Oct 2008
    Posts
    47
    Rep Power
    6

    Default

    /dev/mapper/system-root on / type reiserfs (rw,acl,user_xattr)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    debugfs on /sys/kernel/debug type debugfs (rw)
    udev on /dev type tmpfs (rw)
    devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
    /dev/sda2 on /boot type ext3 (rw,acl,user_xattr)
    /dev/mapper/system-tmp on /tmp type reiserfs (rw,acl,user_xattr)
    securityfs on /sys/kernel/security type securityfs (rw)

  7. #7
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Ok that is what I suspected from the start... your root (/) partition is NOT ext3 as you originally stated. It is formatted as reiserfs. Back in 5.0.x the disk statistics only gathered for ext3 partitions (they changed this in 6.0.x I think from looking at the script).

    Anyway to get your / partition to show up in the disk statistics you just need to change what partitions it grabs data for. To do this you just need to change line 48 of /opt/zimbra/libexec/zmdisklog.

    To get it to only show for reiserfs partitions (/ and /tmp, or device wise /dev/mapper/system-root and /dev/mapper/system-tmp) then change the line to read:
    Code:
    $MNTCMD = "mount -t reiserfs";
    To get it to show both reiserfs and ext3 partitions change it to:
    Code:
    $MNTCMD = "mount -t ext3,reiserfs";

  8. #8
    Join Date
    Oct 2008
    Posts
    47
    Rep Power
    6

    Default

    Thanks and sorry for the mis-information up front. I made that change and I'll see if it takes effect.

Similar Threads

  1. want to change zimbra mail server name.
    By nishith in forum Administrators
    Replies: 1
    Last Post: 10-26-2008, 02:52 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. Migrating servers plus server name change plus upgrade
    By bdbell in forum Administrators
    Replies: 2
    Last Post: 07-28-2008, 10:51 AM
  4. server statistics for disk usage
    By melody in forum Administrators
    Replies: 2
    Last Post: 03-27-2008, 06:28 AM
  5. Zimbra 5.0 RC1 - Server Statistics not working
    By xflip in forum Installation
    Replies: 4
    Last Post: 12-19-2007, 07:44 PM

Posting Permissions

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