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

Understanding problem with UNC free space check

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



Joined: 07 Mar 2006
Posts: 199

PostPosted: Tue Dec 15, 2009 6:26 am    Post subject: Understanding problem with UNC free space check Reply with quote

Hi,

If I check a volume on a linux server with f.e. df -m, I will get the following reply:

/dev/mapper/mpath0p1 201585 141501 49844 74% /var/www

So, I have 49.844 mb free space on this volume.

With the agent, I will get 60.081 mb.
I understand that the agent is using statfs.

Where is there the exactly differnce?
I am not a linux specialist, although our specialist says, that there should be only a differnce from 5 % (reservation for the root user)
Is this right?

Thanks in advance

Martin
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Tue Dec 15, 2009 6:44 pm    Post subject: Reply with quote

Yes, RMA uses statfs API.
UNC test offers several options
- check free space available for caller
- check total free space
- ...
In 1st case RMA checks free blocks avail to non-superuser (f_bavail), in 2nd case RMA uses total free blocks counter (f_bfree).
Which option do you use for the test?

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mp1



Joined: 07 Mar 2006
Posts: 199

PostPosted: Wed Dec 16, 2009 2:14 am    Post subject: Reply with quote

Quote:
Which option do you use for the test?


Ahhh, thanks

I used "total free space" - with free space for caller it's the same as the df command. Linux is not my world

Best regards,

Martin
Back to top
View user's profile Send private message
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