Create a VPS from command line
----------------------------------------------
vzctl create VEID --ipadd 192.168.1.111 --hostname <hostname> --ostemplate centos-6-x86_64
Change inodelimit
-----------------------------
vzctl set VEID --diskinodes LIMIT:LIMIT --save
Execute a command in all VPS's from node
---------------------------------------------------------
for i in `vzlist -a | grep -v CTID | awk {'print $1'} `; do echo ---------------------; echo $i; vzctl exec $i w ; done;
----------------------------------------------
vzctl create VEID --ipadd 192.168.1.111 --hostname <hostname> --ostemplate centos-6-x86_64
Increase disk space from node
-----------------------------------------
vzctl set 717 --diskspace 50G:50G --save
increase memory to 4Gb
--------------------------------
vzctl set 200 --slmmode slm --slmmemorylimit 4G --save
Install a package from node.
------------------------------------
# vzpkg install -p 277 yumChange inodelimit
-----------------------------
Execute a command in all VPS's from node
---------------------------------------------------------
for i in `vzlist -a | grep -v CTID | awk {'print $1'} `; do echo ---------------------; echo $i; vzctl exec $i w ; done;
0 comments:
Post a Comment