Re: Trying to learn and asking some questions [message #33584 is a reply to message #33391] |
Fri, 24 October 2008 05:22 |
locutius
Messages: 125 Registered: August 2007
|
Senior Member |
|
|
use vzsplit to divide the hardware into chunks
e.g. if you have 8GB of memory use vzsplit to create config of 8ths and 16ths and 32nds then you get an idea of what you have available at 1GB RAM, 512MB RAM and 256MB RAM
you might want to use a sample config of 32nds and set the RAM and disk size separately
vzsplit -n 32 -f vps.32
cd /etc/sysconfig/vz-scripts
vzcfgvalidate ve-vps.32.conf-sample
here is how to set RAM:
(512MB or 131072 pages)
vzctl set $VEID --privvmpages 512m:512m --save
vzctl set $VEID --vmguarpages 512m:512m --save
vzctl set $VEID --oomguarpages 512m:512m --save
vzctl set $VEID --shmpages 13106:13106 --save
and disk size:
(3GB = 3145728 = 3 x 1048576 = 3 x 1024 x 1024)
vzctl set $VEID --diskspace 3145728:3145728 --save
(6GB = 6291456 = 6 x 1048576 = 6 x 1024 x 1024)
vzctl set $VEID --diskspace 6291456:6291456 --save
(10GB = 10485760 = 10 x 1048576 = 10 x 1024 x 1024)
vzctl set $VEID --diskspace 10485760:10485760 --save
(i have never had to adjust the disk nodes from the default but i run websites which dont use the disks much)
watch the beancounters for any further adjustments you might need (according to your hardware)
[Updated on: Fri, 24 October 2008 05:25] Report message to a moderator
|
|
|