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

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 01-26-2009, 05:57 PM
Active Member
 
Posts: 44
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
Reply With Quote
  #2 (permalink)  
Old 10-05-2009, 06:57 PM
Active Member
 
Posts: 44
Default

Just curious if anyone had an idea for this?
Reply With Quote
  #3 (permalink)  
Old 10-06-2009, 12:52 PM
Moderator
 
Posts: 1,147
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.
Reply With Quote
  #4 (permalink)  
Old 10-07-2009, 12:34 PM
Active Member
 
Posts: 44
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..
Reply With Quote
  #5 (permalink)  
Old 10-07-2009, 03:52 PM
Moderator
 
Posts: 1,147
Default

What does the output of `mount` look like?
Reply With Quote
  #6 (permalink)  
Old 10-07-2009, 08:19 PM
Active Member
 
Posts: 44
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)
Reply With Quote
  #7 (permalink)  
Old 10-08-2009, 10:17 AM
Moderator
 
Posts: 1,147
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";
Reply With Quote
  #8 (permalink)  
Old 10-08-2009, 01:28 PM
Active Member
 
Posts: 44
Default

Thanks and sorry for the mis-information up front. I made that change and I'll see if it takes effect.
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.