KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Linux (VMWARE 3.02) UNC incorrect disk space result

 
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX
View previous topic :: View next topic  
Author Message
mbulles01



Joined: 24 Oct 2007
Posts: 3

PostPosted: Wed Oct 24, 2007 4:12 am    Post subject: Linux (VMWARE 3.02) UNC incorrect disk space result Reply with quote

Hi,

We installed RMA agent v1.25 on our Esx v3.02 server host.

The RMA agents works.

We try to monitor free disk (/volumes/disk1 for example) space via unc path.

The value that is returned by RMA Agent as being free space is slightly different than the value the OS (VMWARE ESX v3.02) returns.

Rma returns free space of 122 GB but the OS returns only 96 GB.

Who knows ?
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Oct 24, 2007 5:16 am    Post subject: Reply with quote

"UNC" test method is able to return two different "free space" values: free space for current user and the total free space. What exact free space parameter have you specified in "Test properties" window for UNC test method?

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mbulles01



Joined: 24 Oct 2007
Posts: 3

PostPosted: Wed Oct 24, 2007 6:29 am    Post subject: Reply with quote

The test method is: UNC (availability/free space)
the UNC path is /vmfs
Alert when free space (for caller) less than 100 GB
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Oct 24, 2007 8:18 am    Post subject: Reply with quote

RMA uses pretty standard function statfs() to retrieve free space information. We don't know why it does not work on your system.
May we have telnet access to your system?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
mbulles01



Joined: 24 Oct 2007
Posts: 3

PostPosted: Thu Oct 25, 2007 1:13 am    Post subject: Reply with quote

Hi ALex,

Thanx for your quick answer.

Our corporate policy does not allow access to our systems by foreign (unknown) companies..but....

The good stuff is my collegue made a workaround.

The problem is that the command you mentioned (statfs) is not known in VMWARE ESX 3.x .

Workaround:

Use a shell script as test method to check the free space of your LUNs:

#!/bin/sh
if [ $# -ge 1 ]
then
OS=`uname`
case $OS in
Linux) LUNFREE=`vdf -h | grep $1 | awk '{printf "%d\n",$3}'`;;
*) echo 'ScriptRes:Unknown:script is not designed for '$OS
exit;;
esac
if [ $LUNFREE -gt $1 ]
then
echo "ScriptRes:Bad:"$LUNFREE
else
echo "ScriptRes:Ok:"$LUNFREE
fi
else
echo 'ScriptRes:Unknown:not enough parameters specified'
fi
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Oct 25, 2007 1:44 am    Post subject: Reply with quote

mbulles01 wrote:
The good stuff is my collegue made a workaround.

The problem is that the command you mentioned (statfs) is not known in VMWARE ESX 3.x .
Workaround:
Use a shell script as test method to check the free space of your LUNs:
Actually, statfs() is an API function, not command line utility. Anyway, script looks great. Thank you for posting it. Probably, it helps other customers.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index