View previous topic :: View next topic |
Author |
Message |
eviltommy69
Joined: 25 Mar 2004 Posts: 5
|
Posted: Fri Mar 26, 2004 9:35 am Post subject: RMA for Sparc Solaris |
|
|
I'm testing the RMA for SPARC and I've found some issues already. First, the cpu.sh is using SAR, which doesn't run unless you setup your systems for performance statistics. I changed the script to use vmstat like the other Unix OS's, and it works great.
SunOS) vmstat 1 2 | tail -1 | awk '{print 100-$NF}';;
Also, I have some large UFS filesystems (connected to a Clariion) that are showing UNC percentages wrong. One of them indicates 189% available. It should be showing 12%. I have another indicating 49% available, when it should be 6%. How does the RMA calculate free space? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Mar 26, 2004 1:42 pm Post subject: |
|
|
Quote: | SunOS) vmstat 1 2 | tail -1 | awk '{print 100-$NF}';; |
Thank you for correction
Quote: | Also, I have some large UFS filesystems (connected to a Clariion) that are showing UNC percentages wrong. One of them indicates 189% available. It should be showing 12%. I have another indicating 49% available, when it should be 6%. How does the RMA calculate free space? |
RMA for SunOs uses code like
Code: | struct statvfs statbuf;
if (statvfs(path, &statbuf)==0)
{
long int blocksize = (statbuf.f_frsize>0)?(statbuf.f_frsize):(statbuf.f_bsize);
total = statbuf.f_blocks * blocksize;
free = statbuf.f_bfree * blocksize;
freeforuser = statbuf.f_bavail * blocksize;
return True;
}
else return False; |
total, free, freeforuser defined as "double" (because some C compilers does not support "long long" type)
How big is your filesystem?
Regards
Alex |
|
Back to top |
|
|
eviltommy69
Joined: 25 Mar 2004 Posts: 5
|
Posted: Fri Mar 26, 2004 1:57 pm Post subject: |
|
|
The two filesystems are 24GB and 47GB. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Mar 26, 2004 5:52 pm Post subject: |
|
|
What if you configure UNC test to show absolute size (Mg, Gb)? What values will be displayed by HostMonitor?
Regards
Alex |
|
Back to top |
|
|
eviltommy69
Joined: 25 Mar 2004 Posts: 5
|
Posted: Mon Mar 29, 2004 8:26 am Post subject: |
|
|
Filesystem#1 (24GB):
HM indicates 49% available, or 1831mb
SunOS indicates 6% available, or 1628mb
Filesystem#2 (48GB):
HM indicates 188% available, or 2470mb
SunOS indicates 22% available, or 10444mb
This is a Solaris 9 OS, and both of the filesystems are UFS. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Mar 30, 2004 5:25 pm Post subject: |
|
|
Looks like problem in statbuf.f_frsize and statbuf.f_bsize variables.
Sun documentation doesn't really describe difference. RMA uses code that was recommended in several newsgroups, but how it should really work...
Could you provide telnet access to your system?
Regards
Alex |
|
Back to top |
|
|
eviltommy69
Joined: 25 Mar 2004 Posts: 5
|
Posted: Tue Mar 30, 2004 8:20 pm Post subject: |
|
|
Unfortunately, no...sorry. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Apr 01, 2004 1:18 am Post subject: |
|
|
Probably we can make small test program to check what is going on...
Will you compile it?
Regards
Alex |
|
Back to top |
|
|
eviltommy69
Joined: 25 Mar 2004 Posts: 5
|
Posted: Tue Apr 06, 2004 11:40 am Post subject: |
|
|
Yep, I can do that. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Apr 06, 2004 12:43 pm Post subject: |
|
|
Great, please give me some time to create that test program
Regards
Alex |
|
Back to top |
|
|
oliverdesouza
Joined: 23 Jan 2005 Posts: 2
|
Posted: Sun Jan 23, 2005 9:28 am Post subject: Any updates? |
|
|
Hi
I am really interested to know the outcome of this thread.
I just setup the RMA 0.80 for Solaris agent to run on my solaris 9 box. However hostmon is reporting different disk capacity results than the solaris.
Filesystem (8GB):
HM indicates 71% available, or 2851MB
SunOS indicates 86% available, or 6866MB |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Sun Jan 23, 2005 4:57 pm Post subject: |
|
|
I think we fixed that issue but we do not have SPARC system to recompile agent. Could you provide telnet/ftp access to some SPARC system?
Regards
Alex |
|
Back to top |
|
|
oliverdesouza
Joined: 23 Jan 2005 Posts: 2
|
Posted: Sun Jan 23, 2005 9:23 pm Post subject: |
|
|
Hi thanks for the prompt reply!
i'm very sorry but telnet/ftp access is not allowed. However , if u'd like me to compile the RMA code on the sparc server (or any code relating to this issue), i'd be more than willing. I've also sent an email to support@ks-soft.net about that possibility.. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Jan 24, 2005 3:36 pm Post subject: |
|
|
Ok. I have sent source codes to your e-mail address.
Regards
Alex |
|
Back to top |
|
|
vidyagana
Joined: 25 Mar 2005 Posts: 106
|
Posted: Fri Sep 22, 2006 1:01 pm Post subject: |
|
|
I am having a similar problem where my disk space is reported wrongly. What was the solution ? |
|
Back to top |
|
|
|