Friday, May 25, 2012

OpenVZ main node error

I rebooted VPS main node and when i give the vps listing command its giving me errors. Please see below for the exact error message:
[hari][$] vzlist -a
Unable to open /proc/vz/veinfo: No such file or directory
Unable to open /proc/user_beancounters: No such file or directory

After googling for a few minutes i found that i rebooted the server to wrong kernel. I made the change in grub.conf and rebooted the server to fix this error. Please see below the exact steps to resolve this issue. 

[hari][$] cat /etc/grub/grub.conf | grep stab
title CentOS (2.6.32-042stab053.5)
kernel /vmlinuz-2.6.32-042stab053.5 ro root=/dev/mapper/vg_179-lv_root nomodeset rd_NO_LUKS rd_MD_UUID=90d05456:5cf49c55:aa2da9fc:f4b9ed2b LANG=en_US.UTF-8 rd_LVM_LV=vg_179/lv_swap quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_179/lv_root rd_NO_DM KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=7283aea2:e08d4c5d:93ee888c:eaa32978
initrd /initramfs-2.6.32-042stab053.5.img

Select this Kernal from grub when the system reboots if you have KVM else open  /etc/grub/grub.conf and give default as this kernal.

In my case i had 3 kernels:
-----------
 kernel /vmlinuz-2.6.32-220.7.1.el6.x86_64 ro root=/dev/mapper/vg_179-lv
 kernel /vmlinuz-2.6.32-042stab053.5 ro root=/dev/mapper/vg_179-lv
 kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=/dev/mapper/vg_179-lv
-----------
The kernel with stab is 2nd one. Hence i gave
default=1
timeout=5
in grub.conf file. default=1 because the numbering goes like 0,1,2..

[hari][$] reboot
or
[hari][$] init 6


While the server goes for reboot pray to god ;) When the server is up thank god :D 

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews