Linux

Centos6.2 kernel panic on boot

it seems that boot system (and many other things) on centos6 changed a little bit. Since today when I want to move disks from one server to another it was enough to boot the centos system in rescue, chroot, update kernel (to rebuild initrd needed for software raid and other modules), reinstall grub on boot partitions and voila all was fine. Now Centos6 have a new feature called “dracut” which does not agree with the above solution (just...

Read More

How to compile custom kernel on Centos/Xen or optimize CS:S server

To be able to perform a successful kernel build, you will need to install the following packages:yum groupinstall "Development Tools" # This will ensure that you have all the required tools for the build. yum install ncurses-devel # This is required to enable a make *config command to execute correctly. yum install qt-devel # This is only necessary if you wish to use make xconfig instead of make gconfig or make menuconfig. The...

Read More

How to free up some memory when using Java on OpenVZ VPS

First two easy way to free up some resources on a vps running java are: stopping java process and second, not even try to use java in a openvz VPS If you are forced to use java you can lower it’s memory usage by adding following option to java startup: -Xmx32m so you lower maximum heap size . You can try different values of heap size regarding of you java applications usage. On Plesk panel you can set this in :...

Read More

How To Install yum on Virtuozzo VPS using Package Manager Utility

Parallels provides a packages manager for the vps management which can be used for range of tasks e.g. it can be used to install a new template , to cache a new OS template or to list packages installed on some vps or node. The same package manager utility can be used to install packages , update packages or remove packages from the vps. In this short how to , I will describe the vz package manager command syntax for installing yum inside a...

Read More

virtuozzo nfs backup

I had problems when using nfs storage to store virtuozzo backups . I don’t like to enable remote mount on startup time because network issues which could happen , and which can generate long startup delays. so, if you mount nfs partition after node boots up, and virtuozzo already started you will not see backups in PIM or PMC. finally received solution from parallels is: > It should be sufficient to restart Virtuozzo Agent upon mounting...

Read More

How to optimize mysql server/queries

On a mysql server there are a lot of queries to optimize and a lot of load generated by them. I’ll try to present the most usual optimization issues and how to identify them. First you’ll have to check mysql service settings . You can check them manually by following commands in mysql command line: mysql>show variables; or mysql>show variables like ‘%cache%’; and mysql> show status; you can check the counters and increase or...

Read More