OpenVZ Forum


Home » General » Support » Bug in vzsplit ?
Bug in vzsplit ? [message #942] Fri, 20 January 2006 21:34 Go to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
Hi,

maybe there is a bug in vzsplit?
I told the script to split the servers resources into 10 pieces.

My harddrive in the test-system is 80 GB big (? Wink).
Nethertheless, in the sample-script:

DISKSPACE="694733:764207"
DISKINODES="836174:919792"

694733 is around 670 MB. Wouldn´t be 6700 MB correct?
Also, in my Suse Linux Template, only 670 MB had been shown.
Bug?

Size for cpuunits are correc, but I don´t know whether the following parameters were correctly calcuted (1 GB total mem)

NUMPROC="800:800"
AVNUMPROC="253:253"
NUMTCPSOCK="800:800"
NUMOTHERSOCK="800:800"
VMGUARPAGES="152227:9223372036854775807"

# Secondary parameters
KMEMSIZE="20784087:22862495"
TCPSNDBUF="3651229:6928029"
TCPRCVBUF="3651229:6928029"
OTHERSOCKBUF="1825614:5102414"
DGRAMRCVBUF="1825614:1825614"
OOMGUARPAGES="152227:9223372036854775807"
PRIVVMPAGES="152227:167449"


Maybe someone has some ideas Smile?
Thanks
Ronny
Re: Bug in vzsplit ? [message #946 is a reply to message #942] Sat, 21 January 2006 18:51 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
As far as I remember vzsplit calculated discspace and discinodes values based on the size of /vz partition. and rules are very simple: reserve some place for the templates and the rest divide to number of VPS-es.

I would note that you can set any resonable values and you can change it in any time, even on started VPS.

Rules for other parameters are more difficult, they depend on the total memory size, swap size, size of normal zone and probably some other parameters. more detailed the rules are described in the SLMGuide.

I believe your values are correct and you may check your config file via vzcfgvalidate utility.

Thank you
Vasily Averin
Previous Topic: Routing in VPS?
Next Topic: Mounting USB External HDD
Goto Forum:
  


Current Time: Sun Aug 11 10:11:33 GMT 2024

Total time taken to generate the page: 0.03080 seconds