Saturday, January 25, 2014

Kernel panic - not syncing: Attempted to kill init! while booting Cent OS/RHEL 6


I encountered this error upon reboot on my CENT OS/RHEL 6 server after I renamed the volume group on my system without syncing with /etc/fstab and /etc/grub.conf.
Same error will occur if there are issues related to these files including /etc/inittab. To resolve the problem, you will need to use a rescue disk. 1. Run rescue disk 2. The / is mounted to /mnt/sysimage # chroot /mnt/sysimage 3. Edit files appropriately: Replace the your old volume group name with new volume group name  in the below files          # vi /etc/fstab # vi /etc/grub.conf # vi /etc/inittab If grub is missing: # /sbin/grub-install /dev/cdrom 4. Exit the rescue disk (It will reboot automagically) # reboot During reboot, SElinux will sync the renamed vg and will take quite some time. After that you can already have a successful logon.

No comments:

Post a Comment