OpenVZ Forum


Home » General » Support » How to reset the failcount (failcnt) in /dev/user_beancounters ?
Re: How to reset the failcount (failcnt) in /dev/user_beancounters ? [message #2025 is a reply to message #2024] Wed, 15 March 2006 12:05 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

AFAIK there is no way to reset failcnt in /proc/user_beancounters without restarting an appropriate VPS. This is actually a valid behaviour since there can be many different programs reading those values, and they should not expect those values to suddenly go down to zero.

So what you should do is to collect the current values and later check against them. For the 'problematic' VPSs I usually employ a cron job which periodically cats /proc/user_beancounters to a file, together with a timestamp.

A simple shell script can also be written to mail a sysadmin about "bad" changes in /proc/user_beancounters.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Clearing/resetting user_beancounter?
Next Topic: 014.4: ipv6 needed?
Goto Forum:
  


Current Time: Wed Jul 17 16:23:09 GMT 2024

Total time taken to generate the page: 0.02707 seconds