<h2>Update notification by Red Hat</h2>
<p>Last month we have informed about an important kernel panic case with kernel version greater than <strong>3.10.0-1160.<code>10.1</code>.el7</strong> while using LVM in terms of <strong>pvmove</strong> command:</p>
<blockquote>
<p><a href="https://imagefactory.otc.t-systems.com/home/known-issue-kernel-panic-red-hat-linux-enterprise-7-9">Known LVM issue</a></p>
</blockquote>
<p>Red Hat has officially published an update regarding this case which also covers many more known CVEs:</p>
<blockquote>
<p><a href="https://access.redhat.com/errata/RHSA-2021:0856">RHSA-2021:0856</a></p>
</blockquote>
<div class="notices green">
<p>A new kernel version <strong>3.10.0-1160.<code>21.1</code>.el7</strong> has been released and successfully tested by OTC. </p>
</div>
<h2>Customer advice</h2>
<div class="notices red">
<p>This advice is usually only valid for customers which currently use <strong>an existing VM</strong> with LVM or plan to use LVM with a <strong>new VM</strong>!</p>
</div>
<p><strong>Existing RHEL 7.9 customers with LVM usage</strong></p>
<p>We strongly recommend to <strong>update</strong> your existing environments by executing the following commands:</p>
<ol>
<li>Login
<pre><code>$ ssh username@hostname</code></pre></li>
<li>Switch to root
<pre><code>$ sudo -i</code></pre></li>
<li>Update and check yum updates
<pre><code>$ yum clean all
$ yum repolist all
$ yum check-udpate
#
##
###
==========================================================================================================================================================================================================================================
Package                                                      Arch                                       Version                                                   Repository                                                        Size
==========================================================================================================================================================================================================================================
Installing:
kernel                                                       x86_64                                     3.10.0-1160.21.1.el7                                      rhui-rhel-7-server-rhui-rpms                                      50 M
Updating:
cloud-init                                                   x86_64                                     19.4-7.el7_9.4                                            rhui-rhel-7-server-rhui-rpms                                     933 k
device-mapper                                                x86_64                                     7:1.02.170-6.el7_9.4                                      rhui-rhel-7-server-rhui-rpms                                     297 k
device-mapper-event                                          x86_64                                     7:1.02.170-6.el7_9.4                                      rhui-rhel-7-server-rhui-rpms                                     192 k
device-mapper-event-libs                                     x86_64                                     7:1.02.170-6.el7_9.4                                      rhui-rhel-7-server-rhui-rpms                                     192 k
device-mapper-libs                                           x86_64                                     7:1.02.170-6.el7_9.4                                      rhui-rhel-7-server-rhui-rpms                                     325 k
dmidecode                                                    x86_64                                     1:3.2-5.el7_9.1                                           rhui-rhel-7-server-rhui-rpms                                      82 k
grub2                                                        x86_64                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                      34 k
grub2-common                                                 noarch                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                     732 k
grub2-pc                                                     x86_64                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                      34 k
grub2-pc-modules                                             noarch                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                     858 k
grub2-tools                                                  x86_64                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                     1.8 M
grub2-tools-extra                                            x86_64                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                     1.0 M
grub2-tools-minimal                                          x86_64                                     1:2.02-0.87.el7_9.6                                       rhui-rhel-7-server-rhui-rpms                                     177 k
kernel-tools                                                 x86_64                                     3.10.0-1160.21.1.el7                                      rhui-rhel-7-server-rhui-rpms                                     8.1 M
kernel-tools-libs                                            x86_64                                     3.10.0-1160.21.1.el7                                      rhui-rhel-7-server-rhui-rpms                                     8.0 M
lvm2                                                         x86_64                                     7:2.02.187-6.el7_9.4                                      rhui-rhel-7-server-rhui-rpms                                     1.3 M
lvm2-libs                                                    x86_64                                     7:2.02.187-6.el7_9.4                                      rhui-rhel-7-server-rhui-rpms                                     1.1 M
python-perf                                                  x86_64                                     3.10.0-1160.21.1.el7                                      rhui-rhel-7-server-rhui-rpms                                     8.1 M
redhat-release-server                                        x86_64                                     7.9-6.el7_9                                               rhui-rhel-7-server-rhui-rpms                                      30 k
=========================================================================================================================================================================================================================================
###
##
#
$ yum update -y</code></pre></li>
<li>In some cases a <strong>grubby</strong> error occurs during kernel upgrade
<pre><code>$ grubby fatal error: unable to find a suitable template</code></pre></li>
<li>Please check grub configuration file! This must include a new entry for the latest kernel version <strong>3.10.0-1160.<code>21.1</code>.el7</strong>
<pre><code>$ cat /boot/grub2/grub.cfg
#
##
###
menuentry 'Red Hat Enterprise Linux Server (3.10.0-1160.21.1.el7.x86_64) 7.9 (Maipo)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-d56fc274-de06-499a-959c-c83d53db1fa9' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root  d56fc274-de06-499a-959c-c83d53db1fa9
    else
      search --no-floppy --fs-uuid --set=root d56fc274-de06-499a-959c-c83d53db1fa9
    fi
    linux16 /boot/vmlinuz-3.10.0-1160.21.1.el7.x86_64 root=LABEL=ROOT ro  console=ttyS0,115200n8 console=tty0 net.ifnames=0 root=UUID=d56fc274-de06-499a-959c-c83d53db1fa9 rw LANG=en_US.UTF-8
    initrd16 /boot/initramfs-3.10.0-1160.21.1.el7.x86_64.img
}
###
##
#</code></pre></li>
<li>A new grub configuration is required, if the above menu entry was <strong>not</strong> automatically added. Please reboot!
<pre><code>$ grub2-mkconfig -o /boot/grub2/grub.cfg
$ reboot</code></pre></li>
<li>Check kernel version after reboot.
<pre><code>$ uname -r
$ 3.10.0-1160.21.1.el7.x86_64</code></pre></li>
</ol>
<p><strong>New RHEL 7.9 customers which plan to use LVM</strong></p>
<p>We strongly recommend to use an image with the following <strong>image-id</strong> and kernel version <strong>3.10.0-1160.<code>21.1</code>.el7</strong>:</p>
<blockquote>
<p>6ee08cbf-920b-42d6-8c54-ed779a46410a</p>
</blockquote>
<p>Or just use our latest <strong>Red Hat Enterprise Linux 7.9</strong> image called <strong>Enterprise_RedHat_7_latest</strong>.</p>