OpenVZ Forum


Home » General » Support » *SUGGESTION* Restructuring and Improving CONF files
Re: Restructuring and Improving CONF files [message #13814 is a reply to message #13798] Wed, 06 June 2007 10:07 Go to previous messageGo to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi. I have you used the vzsplit and vzcfgvalidate tools? They accomplish exactly what you are looking for, and do not require another operating system, java, or anything other then a shell.

As for converting UBC memory metrics from pages to MBytes, it is unnecessary as both numbers are the same value with a different unit, right? Its unrealistic for an architecture to change config file format without a technical reason.

1 kilobyte = 1 * 2^10 byte
1 page = 4 * 2^10 byte
1 megabyte = 1 * 2^20 byte
1 gigabyte = 1 * 2^30 byte

I suppose if you want to read your configs in a unit other then pages, you could write a simple wrapper script to read your config, and convert metrics in pages (vmguar, oomguar, privvm, etc) to megs or whatever you prefer, and print it out for display.





-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
 
Read Message icon10.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *RESOLVED* template generation
Next Topic: Private virtual network with multiple VPN and NAT
Goto Forum:
  


Current Time: Tue Oct 08 02:43:35 GMT 2024

Total time taken to generate the page: 0.05482 seconds