Posted by Vanessa | Tagged under howto,tips | Posted on Fri Jul, 2010
0
When troubleshooting load issues on a node, top is still an effective command for a quick glance at what’s going on. However, since the PIDs for processes in a container do not correlate with users on the parent node, it can sometimes be unclear as to what container is running the processes.
Virtuozzo has a built-in command called vzpid which identifies the container running a given process. For example, if I wanted to find out which container was running process ID #31299:
[root@server ~]# vzpid 31299
Pid VEID Name
31299 102 mysqld
Posted by Vanessa | Tagged under howto,tips | Posted on Sun Jan, 2010
0
Sometimes you may need to remove Virtuozzo, either to reinstall or just remove it, but are not able to completely reinstall the OS. I’ll stress though that if possible, you should reinstall the OS entirely to completely remove VZ. But in case you can’t, here are the steps to uninstall:
1. Stop Virtuozzo
service vz stop
2. Uninstall all Virtuozzo packages
rpm -qa|grep swsoft|grep vz|xargs yum remove -y
rpm -qa|grep swsoft|grep -E “virtu|-ez-|-tmpl-”|xargs yum remove -y
3. Remove contents from /vz : actionlog, backups, lock, private, root, template, vzup2date
cd /vz/ && mkdir _before_reinstall && mv * _before_reinstall
I usually have /vz on a separate partion, so I move all its contents to another partition on the server and just reformat using mkfs.
4. Remove configs from /etc
mkdir -p /vz/_before_reinstall/etc && find /etc -name vz\* -exec mv {} /vz/_before_reinstall/etc \;
5. Check /etc/grub.conf and make sure the boot kernel is standard (meaning, the parent OS and not VZ)
6. Reboot the server