Announcement

Collapse
No announcement yet.

CloudLinux Kernel Wont Boot initrd Missing in grub.conf

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CloudLinux Kernel Wont Boot initrd Missing in grub.conf

    Hello,

    I am using CloudLinux for years now and it is great product. We never had problem with cloudlinux unless the current one which is headache since 2 days.

    When I convert cpanel centos to cloudlinux, after reboot my server will never reboot. From rescue mode, I removed the cloudlinux kernel my server worked perfectly.

    Now here is my gub.conf, I want to boot with cloudlinux kernel, please keep in mind that initrd is missing in kernel and also the *.img file is not available in the /boot

    Code:
    # grub.conf generated by anaconda
    
    #
    
    # Note that you do not have to rerun grub after making changes to this file
    
    # NOTICE:  You have a /boot partition.  This means that
    
    #          all kernel and initrd paths are relative to /boot/, eg.
    
    #          root (hd0,1)
    
    #          kernel /vmlinuz-version ro root=/dev/md2
    
    #          initrd /initrd-[generic-]version.img
    
    #boot=/dev/sda
    
    default=0
    
    timeout=5
    
    splashimage=(hd0,1)/grub/splash.xpm.gz
    
    hiddenmenu
    
    title CloudLinux Server (2.6.32-604.16.2.lve1.3.54.el6.x86_64)
    
    root (hd0,1)
    
    kernel /vmlinuz-2.6.32-604.16.2.lve1.3.54.el6.x86_64 ro root=UUID=1249db1c-7c02-4b68-b30e-d051806e6080 rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys SYSFONT=latarcyrheb-sun16 rd_MD_UUID=08a9343f:bd527607:40916d5b:25a59e89 crashkernel=auto rd_NO_LVM LANG=de_DE.UTF-8 rd_NO_DM rhgb quiet
    
    title CentOS (2.6.32-573.1.1.el6.x86_64)
    
    root (hd0,1)
    
    kernel /vmlinuz-2.6.32-573.1.1.el6.x86_64 ro root=UUID=1249db1c-7c02-4b68-b30e-d051806e6080 rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys SYSFONT=latarcyrheb-sun16 rd_MD_UUID=08a9343f:bd527607:40916d5b:25a59e89 crashkernel=auto rd_NO_LVM LANG=de_DE.UTF-8 rd_NO_DM rhgb quiet
    
    initrd /initramfs-2.6.32-573.1.1.el6.x86_64.img
    
    title CentOS 6 (2.6.32-573.el6.x86_64)
    
    root (hd0,1)
    
    kernel /vmlinuz-2.6.32-573.el6.x86_64 ro root=UUID=1249db1c-7c02-4b68-b30e-d051806e6080 rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys SYSFONT=latarcyrheb-sun16 rd_MD_UUID=08a9343f:bd527607:40916d5b:25a59e89 crashkernel=auto rd_NO_LVM LANG=de_DE.UTF-8 rd_NO_DM rhgb quiet
    
    initrd /initramfs-2.6.32-573.el6.x86_64.img

  • #2
    Hello,

    Please try to reinstall kernel package: $ yum reinstall kernel-2.6.32-604.16.2.lve1.3.54.el6.x86_64

    initramfs file should be generated. Also please make sure that you have sufficient free space on /boot

    Comment


    • #3
      Thank you for reply, I already tried such commands, it is not working. Here is the below reply when I try yum reinstall kernel-2.6.32-604.16.2.lve1.3.54.el6.x86_64

      Code:
      root@server1 [~]# yum reinstall kernel-2.6.32-604.16.2.lve1.3.54.el6.x86_64
      
      Loaded plugins: fastestmirror, rhnplugin, security
      
      Setting up Reinstall Process
      
      Loading mirror speeds from cached hostfile
      
      * cloudlinux-x86_64-server-6: cl-mirror.veriteknik.com
      
      Installed package kernel-2.6.32-604.16.2.lve1.3.54.el6.x86_64 not available.
      
      Error: Nothing to do

      Comment


      • #4
        Well actually following command worked for me:
        yum reinstall kernel.x86_64 2.6.32-604.16.2.lve1.3.54.el6

        Thank You Igor Ghertesco

        Comment


        • #5
          Thanks for sharing this. It solved my issue too, but have not tested to reboot into the new kernel yet.

          But, why was not initrd added correctly in the first place when doing a yum update?

          I also got a warning with the cpuspeed:
          kernel-2.6.32-604.30.3.lve1.3.63.el6.x86_64.rpm | 32 MB 00:09
          Running rpm_check_debug
          Running Transaction Test
          Transaction Test Succeeded
          Running Transaction
          Installing : kernel-2.6.32-604.30.3.lve1.3.63.el6.x86_64 1/1
          Verifying : kernel-2.6.32-604.30.3.lve1.3.63.el6.x86_64 1/2
          1:cpuspeed-1.5-22.el6.x86_64 was supposed to be removed but is not!
          Verifying : 1:cpuspeed-1.5-22.el6.x86_64 2/2

          Installed:
          kernel.x86_64 0:2.6.32-604.30.3.lve1.3.63.el6

          Failed:
          cpuspeed.x86_64 1:1.5-22.el6

          Complete!

          Comment


          • #6
            We are really not sure how it interacts with initrd originally.

            About the cpuspeed was supposed to be removed but is not - seems like somehow yum cached data and the rpm database got out of sync with each other. Please backup /var/lib/rpm database to be on safe side then try running following:

            Code:
            yum clean all
            
            rpm --rebuilddb
            
            yum erase cpuspeed

            Comment


            • #7
              So cpuspeed it not necessary with kernel 2.6.32-604.30.3.lve1.3.63.el6.x86_64 for example?

              Comment


              • #8
                Yes, cpuspeed is not needed. Even more, it makes things worst in most cases as it reduce CPU speed to save the power. http://kb.cloudlinux.com/2014/12/hig...ing-kondemand/

                Comment

                Working...
                X