Koozali.org: home of the SME Server

E-smith Monitor: Swap and Disk Used Reversed

Dan G.

E-smith Monitor: Swap and Disk Used Reversed
« on: October 23, 2001, 09:23:20 PM »
Hi again,

Yesterday, my disk usage, as displayed in E-smith Monitor dropped to zero, and my displayed swap usage has gone way up.  With 384 MB of RAM, I am confident that no actual swapping is taking place.  I also know that the disk is about 75% full -- so "zero" is way off :)

Anyone have a guess as to why these two displays seem to have gotten reversed?  I have not made any changes (that I know of) that might account for this.

Thanks,

Dan

Dan G.

Re: E-smith Monitor: Swap and Disk Used Reversed
« Reply #1 on: October 26, 2001, 12:41:25 AM »
Can a disk being too close to full cause this?  Has anyone seen it before?

Jaime Nebrera

Re: E-smith Monitor: Swap and Disk Used Reversed
« Reply #2 on: October 26, 2001, 01:39:14 AM »
Hi Dan,

  I'm sorry I have no idea. Both values are colected from very different sources (df and /proc/dev/net) and stored in different databases (mainhd and swap).

  What version are you using? Have you tried to uninstall the package and install it again (this sound familiar :)) If your version is recent it should keep the data.

  Regards.

Dan G.

Re: E-smith Monitor: Swap and Disk Used Reversed
« Reply #3 on: October 26, 2001, 09:39:59 PM »
Jaime,

I did the uninstall/reinstall, and it did preserve the data --- but the problem remains.  On the day it happened, I had copied a large amount of data to the machine, but that doesn't explain much.  Currently, my actual disk usage is here:

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda6              8467536   4780872   3256528  60% /
/dev/sda1                15522      3036     11685  21% /boot

But the E-smith Monitor show 0%, and the Swap is showing very high --- even though no actual swapping is happening.

Any other suggestions on fixing it?  Can you tell me where the data is stored, and I'll try removing the old data and see if it re-establishes itself properly.

Thanks,

Dan

Jaime

Re: E-smith Monitor: Swap and Disk Used Reversed
« Reply #4 on: October 29, 2001, 11:37:29 PM »
Hi Dan,

You can try this:

Uninstall the package

Copy all your data from /var/log/rrd /this is where data is stored.

Reinstall the package

See what happens. You should see fresh data. Maybe some of the older databases have been corrpted some way.

Restore your older databases but probably not swap.rrd and mainhd.rrd as this two seem to have some problem.

Hope this time it gets solved.

See you

Dan G.

Re: E-smith Monitor: Swap and Disk Used Reversed
« Reply #5 on: October 29, 2001, 11:44:22 PM »
Jaime,

Thanks for the reply.  Re-install done --- same result.  No long displaying incorrect Swap stats, but still showing 0 for disk used, while a command line "df" shows correctly.

I just realised something that my be relevant:  I just installed a SCSI tape drive on the same controller as the HD --- is there a possibility that some kind of identifier is coded into the "df" call?  Is perhaps the "df" looking at my empty tape drive, and simply returing "0" ?  My main hd is now sda6 --- can this have any effect?

Dan