1 2 3 Previous Next 33 Replies Latest reply on Jun 6, 2019 8:20 AM by Dude! Go to original post
      • 15. Re: Not able to upgrade kernel-uek
        Dude!

        What files do you have left in /boot?

        • 16. Re: Not able to upgrade kernel-uek
          dbanoob4ever

          Dear Dude,

           

          root@ol75-12201-se-client ~]# ls -lrth /boot/

          total 149M

          -rw-------. 1 root root  77M Sep 13  2018 initramfs-0-rescue-39ecd782e4ca43028671dd3ce3aba0c2.img

          -rwxr-xr-x. 1 root root 6.1M Sep 13  2018 vmlinuz-0-rescue-39ecd782e4ca43028671dd3ce3aba0c2

          drwx------. 3 root root   17 Nov  6  2018 efi

          -rw-------. 1 root root 3.4M May 15 08:46 System.map-3.10.0-957.12.2.el7.x86_64

          -rw-r--r--. 1 root root 149K May 15 08:46 config-3.10.0-957.12.2.el7.x86_64

          -rwxr-xr-x. 1 root root 6.4M May 15 08:46 vmlinuz-3.10.0-957.12.2.el7.x86_64

          -rw-r--r--. 1 root root 307K May 15 08:46 symvers-3.10.0-957.12.2.el7.x86_64.gz

          -rw-------. 1 root root  31M May 18 22:46 initramfs-3.10.0-957.12.2.el7.x86_64.img

          -rw-------. 1 root root  14M May 25 23:02 initramfs-4.1.12-112.16.4.el7uek.x86_64kdump.img

          -rw-------. 1 root root  12M May 25 23:55 initramfs-3.10.0-862.el7.x86_64kdump.img

          drwx------. 5 root root 4.0K May 27 21:10 grub2

           

          Now I'm doing this right now

          [root@ol75-12201-se-client ~]# uname -r

          3.10.0-862.el7.x86_64

          [root@ol75-12201-se-client ~]# rpm -qa kernel-uek kernel-uek-devel

          [root@ol75-12201-se-client ~]#

           

           

          [root@ol75-12201-se-client ~]# grub2-mkconfig -o /boot/grub2/grub.cfg

          Generating grub configuration file ...

          Found linux image: /boot/vmlinuz-3.10.0-957.12.2.el7.x86_64

          Found initrd image: /boot/initramfs-3.10.0-957.12.2.el7.x86_64.img

          Found linux image: /boot/vmlinuz-0-rescue-39ecd782e4ca43028671dd3ce3aba0c2

          Found initrd image: /boot/initramfs-0-rescue-39ecd782e4ca43028671dd3ce3aba0c2.img

          done

          [root@ol75-12201-se-client ~]# awk -F\' /^menuentry/{print\$2} /etc/grub2.cfg

          Oracle Linux Server (3.10.0-957.12.2.el7.x86_64 with Linux) 7.6

          Oracle Linux Server (0-rescue-39ecd782e4ca43028671dd3ce3aba0c2 with Linux) 7.6

          [root@ol75-12201-se-client ~]

           

          based on the above observation I have now booted in RHCK, right?

          Now I have completely remove kernel-uek and kernel-uek-devel, right?

          • 17. Re: Not able to upgrade kernel-uek
            Dude!

            Yes. Now install kernel-uek and see what it installs.

            • 18. Re: Not able to upgrade kernel-uek
              dbanoob4ever

              Dear Dude,

               

              [root@ol75-12201-se-client ~]# yum install kernel-uek kernel-uek-devel

              Loaded plugins: langpacks, ulninfo

              ol7_UEKR4                                                | 1.2 kB     00:00

              ol7_latest                                               | 1.4 kB     00:00

              Resolving Dependencies

              --> Running transaction check

              ---> Package kernel-uek.x86_64 0:4.1.12-124.27.1.el7uek will be installed

              --> Processing Dependency: kernel-firmware = 4.1.12-124.27.1.el7uek for package: kernel-uek-4.1.12-124.27.1.el7uek.x86_64

              ---> Package kernel-uek-devel.x86_64 0:4.1.12-124.27.1.el7uek will be installed

              --> Running transaction check

              ---> Package kernel-uek-firmware.noarch 0:4.1.12-124.27.1.el7uek will be installed

              --> Finished Dependency Resolution

               

               

              Dependencies Resolved

               

               

              ================================================================================

              Package                Arch      Version                    Repository    Size

              ================================================================================

              Installing:

              kernel-uek             x86_64    4.1.12-124.27.1.el7uek     ol7_UEKR4     44 M

              kernel-uek-devel       x86_64    4.1.12-124.27.1.el7uek     ol7_UEKR4     11 M

              Installing for dependencies:

              kernel-uek-firmware    noarch    4.1.12-124.27.1.el7uek     ol7_UEKR4    2.5 M

               

               

              Transaction Summary

              ================================================================================

              Install  2 Packages (+1 Dependent package)

               

               

              Total download size: 58 M

              Installed size: 201 M

              Is this ok [y/d/N]:

               

               

              ownloading packages:

              No Presto metadata available for ol7_UEKR4

              (1/3): kernel-uek-devel-4.1.12-124.27.1.el7uek.x86_64.rpm  |  11 MB   04:14

              (2/3): kernel-uek-firmware-4.1.12-124.27.1.el7uek.noarch.r | 2.5 MB   00:06

              (3/3): kernel-uek-4.1.12-124.27.1.el7uek.x86_64.rpm        |  44 MB   08:43

              --------------------------------------------------------------------------------

              Total                                              114 kB/s |  58 MB  08:43

              Running transaction check

              Running transaction test

              Transaction test succeeded

              Running transaction

                Installing : kernel-uek-firmware-4.1.12-124.27.1.el7uek.noarch            1/3

                Installing : kernel-uek-4.1.12-124.27.1.el7uek.x86_64                     2/3

                Installing : kernel-uek-devel-4.1.12-124.27.1.el7uek.x86_64               3/3

                Verifying  : kernel-uek-firmware-4.1.12-124.27.1.el7uek.noarch            1/3

                Verifying  : kernel-uek-4.1.12-124.27.1.el7uek.x86_64                     2/3

                Verifying  : kernel-uek-devel-4.1.12-124.27.1.el7uek.x86_64               3/3

               

               

              Installed:

                kernel-uek.x86_64 0:4.1.12-124.27.1.el7uek

                kernel-uek-devel.x86_64 0:4.1.12-124.27.1.el7uek

               

               

              Dependency Installed:

                kernel-uek-firmware.noarch 0:4.1.12-124.27.1.el7uek

               

               

              Complete!

              ------

              [root@ol75-12201-se-client ~]# grubby --info=ALL

              index=0

              kernel=/boot/vmlinuz-4.1.12-124.27.1.el7uek.x86_64

              args="ro crashkernel=auto rd.lvm.lv=ol_ol75-12102/root rd.lvm.lv=ol_ol75-12102/swap rhgb quiet LANG=en_US.UTF-8"

              root=/dev/mapper/ol_ol75--12102-root

              initrd=/boot/initramfs-4.1.12-124.27.1.el7uek.x86_64.img

              title=Oracle Linux Server 7.6, with Unbreakable Enterprise Kernel 4.1.12-124.27.1.el7uek.x86_64

              index=1

              kernel=/boot/vmlinuz-3.10.0-957.12.2.el7.x86_64

              args="ro crashkernel=auto rd.lvm.lv=ol_ol75-12102/root rd.lvm.lv=ol_ol75-12102/swap rhgb quiet"

              root=/dev/mapper/ol_ol75--12102-root

              initrd=/boot/initramfs-3.10.0-957.12.2.el7.x86_64.img

              title=Oracle Linux Server (3.10.0-957.12.2.el7.x86_64 with Linux) 7.6

              index=2

              kernel=/boot/vmlinuz-0-rescue-39ecd782e4ca43028671dd3ce3aba0c2

              args="ro crashkernel=auto rd.lvm.lv=ol_ol75-12102/root rd.lvm.lv=ol_ol75-12102/swap rhgb quiet"

              root=/dev/mapper/ol_ol75--12102-root

              initrd=/boot/initramfs-0-rescue-39ecd782e4ca43028671dd3ce3aba0c2.img

              title=Oracle Linux Server (0-rescue-39ecd782e4ca43028671dd3ce3aba0c2 with Linux) 7.6

              index=3

              non linux entry

              [root@ol75-12201-se-client ~]#

              thanks a lot!

              • 19. Re: Not able to upgrade kernel-uek
                dbanoob4ever

                Dear Dude,

                 

                after I reboot, default is kernel-uek

                 

                [root@ol75-12201-se-client ~]# uname -r

                4.1.12-112.16.4.el7uek.x86_64

                =>what the hell is happening? how can it be that 4.1.12-112 is still in disk

                 

                [root@ol75-12201-se-client ~]# awk -F\' /^menuentry/{print\$2} /etc/grub2.cfg

                Oracle Linux Server 7.6, with Unbreakable Enterprise Kernel 4.1.12-124.27.1.el7uek.x86_64

                Oracle Linux Server (3.10.0-957.12.2.el7.x86_64 with Linux) 7.6

                Oracle Linux Server (0-rescue-39ecd782e4ca43028671dd3ce3aba0c2 with Linux) 7.6

                [root@ol75-12201-se-client ~]# uname -r

                4.1.12-112.16.4.el7uek.x86_64

                [root@ol75-12201-se-client ~]# rpm -qa kernel-uek

                kernel-uek-4.1.12-124.27.1.el7uek.x86_64

                [root@ol75-12201-se-client ~]# rpm -qa kernel-uek-devel

                kernel-uek-devel-4.1.12-124.27.1.el7uek.x86_64

                 

                thanks

                • 20. Re: Not able to upgrade kernel-uek
                  Dude!

                  What files are in /boot?

                   

                  I recently moved my boot partition to LVM. Will the migration of boot partition affect this?

                   

                  You mentioned earlier that /boot is using LVM, however, that should not be possible. How did you determine that boot is LVM?

                  • 21. Re: Not able to upgrade kernel-uek
                    Dude!

                    To add to my last response, the following excerpt from the Grub2 manual at https://www.gnu.org/software/grub/manual/grub/grub.html  outlines which filesystems are supported and which file systems can be used for the /boot partition and hence secondary Grub bootloader.

                     

                    Support multiple filesystem types transparently, plus a useful explicit blocklist notation. The currently supported filesystem types are Amiga Fast FileSystem (AFFS), AtheOS fs, BeFS, BtrFS (including raid0, raid1, raid10, gzip and lzo), cpio (little- and big-endian bin, odc and newc variants), Linux ext2/ext3/ext4, DOS FAT12/FAT16/FAT32, exFAT, HFS, HFS+, ISO9660 (including Joliet, Rock-ridge and multi-chunk files), JFS, Minix fs (versions 1, 2 and 3), nilfs2, NTFS (including compression), ReiserFS, ROMFS, Amiga Smart FileSystem (SFS), Squash4, tar, UDF, BSD UFS/UFS2, XFS, and ZFS (including lzjb, gzip, zle, mirror, stripe, raidz1/2/3 and encryption in AES-CCM and AES-GCM).

                     

                    LVM is not on the list, which isn't a file system and requires special software, available after the Linux OS has been started.

                    • 22. Re: Not able to upgrade kernel-uek
                      dbanoob4ever

                      [root@ol75-12201-se-client ~]# df -mT

                      Filesystem                      Type     1M-blocks  Used Available Use% Mounted on

                      devtmpfs                        devtmpfs      1822     0      1822   0% /dev

                      tmpfs                           tmpfs         1846     0      1846   0% /dev/shm

                      tmpfs                           tmpfs         1846    10      1837   1% /run

                      tmpfs                           tmpfs         1846     0      1846   0% /sys/fs/cgroup

                      /dev/mapper/ol_ol75--12102-root xfs          13050 10588      2463  82% /

                      /dev/mapper/vg_boot-lv_boot     xfs           3058   239      2820   8% /boot

                      tmpfs                           tmpfs          370     1       370   1% /run/user/42

                      tmpfs                           tmpfs          370     0       370   0% /run/user/0

                      [root@ol75-12201-se-client ~]#

                       

                      It's my mistake to allocate only 500 MB for Redhat 7 boot space as a result I move to LVM which is a big mistake!

                      • 23. Re: Not able to upgrade kernel-uek
                        Dude!

                        I'm surprised your system boots at all. Perhaps it's not using the boot partition. I suggest you review How to Resize LVM Root in Oracle Linux 7 to backup you server as outlined, including the boot partition, and then remove the boot partition from your LVM setup and restore the data.

                        • 24. Re: Not able to upgrade kernel-uek
                          Tommy.Reynolds-Oracle

                          Having a /boot partition is not essential.  GRUB2 is able to understand many filesystem layouts.  If you are configured to use a boot partition pathnames in /boot/grub2/grub.cfg are relative to the boot partition:

                           

                          linux16 /vmlinuz-0-rescue-b016b1c73e7043ad8f69fe963a13fe66 root=

                           

                          but if a boot partition is not used, the filenames are relative to the root filesystem:

                           

                          linux16 /boot/vmlinuz-0-rescue-b016b1c73e7043ad8f69fe963a13fe66 root=

                                        

                          A 500MB /boot partition should be enough unless /etc/yum.conf is configured to keep lots of install-only packages:

                           

                          # installonly_limit=3
                          installonly_limit=300

                           

                          and I certainly do not recommend doing that.  All most people need is a current kernel and the last working kernel for fallback.

                          • 25. Re: Not able to upgrade kernel-uek
                            Dude!

                            Hi Tommy,

                             

                            Grub replaces the Master Boot Record (512 bytes) at sector 0 to execute the GRUB bootloader. Are you sure /boot is not required for GRUB? If I remember correctly, LILO did not use /boot, but GRUB requires files in /boot, but it does not have to be on a separate partition.

                             

                            The reason for the /boot partition are, or used to be many years ago:

                             

                            a) If the BIOS isn't int13h extended, it can only read the first 8 GB of a disk.

                            b) Grub does not understand LVM.

                             

                            I previously wrote that Grub does not understand LVM, but I double-checked and support for LVM was added in Grub 2 according to https://www.gnu.org/software/grub/manual/grub/grub.html#Changes-from-GRUB-Legacy. So it seems GRUB 2 can read files directly from LVM and RAID devices.

                             

                            If you check post #18, the config uses /boot.

                             

                            Update:

                             

                            If you want GRUB to put images under a directory other than/boot, you need to specify the option --boot-directory= with grub-install:

                            https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html

                            • 26. Re: Not able to upgrade kernel-uek
                              Dude!

                              Your file listing of /boot shows:

                               

                              drwx------. 3 root root   17 Nov  6  2018 efi

                               

                              Is it possible you're not using PC-BIOS but UEFI. Can you show the following output:

                               

                              # ls -R /boot/efi

                              • 27. Re: Not able to upgrade kernel-uek
                                Dude!

                                Although LVM should be supported according to the the grub2 manual, specifying LVM for the /boot partition fails using the OS installer (7.6), showing the following error that /boot file system cannot be type lvmlv.

                                 

                                • 28. Re: Not able to upgrade kernel-uek
                                  dbanoob4ever

                                  Dear Dude,

                                   

                                  [root@ol75-12201-se-client ~]# ls -R /boot/efi

                                  /boot/efi:

                                  EFI

                                   

                                   

                                  /boot/efi/EFI:

                                  BOOT  redhat

                                   

                                   

                                  /boot/efi/EFI/BOOT:

                                  BOOTX64.EFI  fbx64.efi

                                   

                                   

                                  /boot/efi/EFI/redhat:

                                  BOOT.CSV     fw            fwupx64.efi  shim.efi     shimx64-redhat.efi

                                  BOOTX64.CSV  fwupia32.efi  mmx64.efi    shimx64.efi

                                   

                                  thanks

                                  • 29. Re: Not able to upgrade kernel-uek
                                    Dude!

                                    [root@ol75-12201-se-client ~]# grub2-mkconfig -o /boot/grub2/grub.cfg

                                    Generating grub configuration file ...

                                     

                                    I suggest to try the following and see what happens:

                                     

                                    grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg