<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>FranGarcia.me (Posts about rhel)</title><link>https://www.frangarcia.me/</link><description></description><atom:link href="https://www.frangarcia.me/categories/rhel.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 06 Apr 2025 10:15:18 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Reminder: Linux disk device names are not persistent or predictable</title><link>https://www.frangarcia.me/posts/reminder-linux-disk-device-names-are-not-persistent-or-predictable/</link><dc:creator>Fran Garcia</dc:creator><description>&lt;p&gt;Repeat with me:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Linux disk device names are not persistent or predictable&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These two Red Hat KCS notes provide lots of information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://access.redhat.com/solutions/3962551"&gt;https://access.redhat.com/solutions/3962551&lt;/a&gt; - How to make disk letter /dev/sdX more likely to be consistent at each reboot&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://access.redhat.com/solutions/2975361#RHEL9_ASYNC"&gt;https://access.redhat.com/solutions/2975361#RHEL9_ASYNC&lt;/a&gt; - How are custom persistent names assigned for SCSI devices using udev in Red Hat Enterprise Linux 7 and later kernels?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;... but TLDR: disk under &lt;code&gt;/dev/sd*&lt;/code&gt; and &lt;code&gt;/dev/vd*&lt;/code&gt; are not persistent nor 
guaranteed to be predictable in any newer kernel version.&lt;/p&gt;
&lt;p&gt;DO:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rely on filesystem's UUID for &lt;code&gt;/etc/fstab&lt;/code&gt; mount settings (see &lt;code&gt;blkid&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Use persistent names like: DM multipath, LVM device names, kernel persistent names (&lt;code&gt;/dev/disk-by-*&lt;/code&gt;), or udev-assigned custom names.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DO NOT:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Try to create names in the &lt;code&gt;/dev/sd*&lt;/code&gt; namespace.&lt;/li&gt;
&lt;li&gt;Try to ensure &lt;code&gt;/dev/sd*&lt;/code&gt; are consisent across machines, or even reboots of the same machine. They won't be.&lt;/li&gt;
&lt;li&gt;Try to implement kernel or module options, they will fail.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you find any software that tries to impose any logic into the &lt;code&gt;/dev/sd*&lt;/code&gt; 
namespace, that software is buggy and must be rewritten accordingly.&lt;/p&gt;
&lt;p&gt;Happy hacking!&lt;/p&gt;</description><category>kernel</category><category>linux</category><category>rhel</category><guid>https://www.frangarcia.me/posts/reminder-linux-disk-device-names-are-not-persistent-or-predictable/</guid><pubDate>Sun, 06 Apr 2025 09:50:47 GMT</pubDate></item><item><title>Registering old RHEL systems into new Satellite versions</title><link>https://www.frangarcia.me/posts/registering-old-rhel-systems-into-new-satellite-versions/</link><dc:creator>Fran Garcia</dc:creator><description>&lt;p&gt;Sometimes you find out you need to register really ancient Red Hat Enterprise Linux
systems into a new Satellite, but this poses a number of challenges, namely around
support, and having the right tools in the system (subscription-manager, curl and
others) available so the system can be successfully managed by Red Hat Satellite.&lt;/p&gt;
&lt;h2&gt;Supported Satellite client operating systems&lt;/h2&gt;
&lt;p&gt;Red Hat maintains a list of supported operating systems per version on Satellite here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://access.redhat.com/solutions/5607011"&gt;https://access.redhat.com/solutions/5607011&lt;/a&gt; - What are the supported operating systems for hosts of Red Hat Satellite 6 ?&lt;/p&gt;
&lt;p&gt;The reality is a bit more complex, as Red Hat only tests new Satellite versions
with actively supported RHEL operating systems. For RHEL6, this means that the
only tested combinations are those using RHEL 6.10 using the ELS (&lt;a href="https://www.redhat.com/en/resources/els-datasheet"&gt;Extended Lifecycle Support&lt;/a&gt;)
add-on.&lt;/p&gt;
&lt;p&gt;For ancient RHEL 7.0 and RHEL 7.1 versions, it's even more complicated because
curl lacks some cryptographic cyphers, which make connecting to Satellite impossible.&lt;/p&gt;
&lt;p&gt;The workaround is to upgrade the relevant system packages to the latest version
PRIOR to attempting to register the system into Satellite 6.x .&lt;/p&gt;
&lt;p&gt;So here are some notes on how to accomplish that:&lt;/p&gt;
&lt;h3&gt;Registering RHEL 6 older than 6.10 are not supported with Satellite 6.10+. Registration does not work.&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;It is required to update the subscription-manager,  rpm, and other components to those provided by RHEL 6.10 prior to onboarding the system into Satellite 6.12 .&lt;/li&gt;
&lt;li&gt;This process might render the "subscription-manager" inoperable. It is recommended to perform a full backup of the system, and implement access to the RHEL 6.10 DVD prior to attempting this upgrade.&lt;/li&gt;
&lt;li&gt;The RHEL 6.10 content can be made available via the RHEL ISO, or hosted in a web server or NFS server.&lt;/li&gt;
&lt;li&gt;Red Hat Engineering does not certify a full list of packages that need to be upgraded. However, when testing the following list of packages seems to be sufficient to allow a successful registration:&lt;/li&gt;
&lt;li&gt;&lt;code&gt;yum upgrade -y "yum*" "subscription-manager*" "rpm" python-requests.noarch python-rhsm.x86_64 python-six.noarch python-urlgrabber.noarch python-urllib3.noarch openssl&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;More packages might be required depending on the installed packages in the managed system that needs to be migrated.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;RHEL 7.0 and RHEL 7.1 cannot be registered with Satellite.&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;In a similar way to RHEL 6, RHEL 7.0 and RHEL 7.1 cannot connect to a new satellite because of openssl ciphers and because of subscription-manager components. Registration errors might include &lt;code&gt;curl: (35) Peer reports incompatible or unsupported protocol version.&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The problem can be solved by upgrading the following packages prior to registration. Packages should come from RHEL 7.9.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;yum upgrade -y openssl curl "yum*" "subscription-manager*" "rpm" python-six python-rhsm&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Again, this process might render the "subscription-manager" inoperable. It is recommended to perform a full backup of the system, and implement access to the RHEL 7.9 DVD prior to attempting this upgrade.&lt;/li&gt;
&lt;li&gt;The RHEL 7.9 content can be made available via the RHEL ISO, or hosted in a web server or NFS server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Happy Satellite-ing!&lt;/p&gt;</description><category>rhel</category><category>satellite</category><guid>https://www.frangarcia.me/posts/registering-old-rhel-systems-into-new-satellite-versions/</guid><pubDate>Mon, 24 Apr 2023 10:37:03 GMT</pubDate></item><item><title>Configurar mDNS en RHEL6</title><link>https://www.frangarcia.me/posts/configurar-mdns-en-rhel6/</link><dc:creator>Fran Garcia</dc:creator><description>&lt;p&gt;Por alguna razón que no alcanzo a comprender, RHEL6 no incluye de forma
predeterminada el paquete nss-mDNS necesario para que el DNS multicast
funcione (Avahi/Zeroconf et al).&lt;/p&gt;
&lt;p&gt;Aquí va una pequeña guía de instalación y configuración, incluyendo el
repositorio externo EPEL:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# yum install -y avahi avahi-tools  &lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# yum install -y --nogpgcheck http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm  &lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# yum install -y nss-mdns&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Modificar en el /etc/nsswitch.conf :&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="c1"&gt;# grep hosts /etc/nsswitch.conf  &lt;/span&gt;
hosts:&lt;span class="w"&gt; &lt;/span&gt;files&lt;span class="w"&gt; &lt;/span&gt;dns4_minimal&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;NOTFOUND&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;mdns4_minimal&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;NOTFOUND&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;dns
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Y finalmente reiniciar DBus y Avahi-daemon:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# chkconfig messagebus on  &lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# chkconfig avahi-daemon on  &lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# service messagebus restart  &lt;/span&gt;
Stopping&lt;span class="w"&gt; &lt;/span&gt;system&lt;span class="w"&gt; &lt;/span&gt;message&lt;span class="w"&gt; &lt;/span&gt;bus:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;FAILED&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;
Starting&lt;span class="w"&gt; &lt;/span&gt;system&lt;span class="w"&gt; &lt;/span&gt;message&lt;span class="w"&gt; &lt;/span&gt;bus:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;OK&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;root@rhel6&lt;span class="w"&gt; &lt;/span&gt;~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# /etc/init.d/avahi-daemon restart  &lt;/span&gt;
Shutting&lt;span class="w"&gt; &lt;/span&gt;down&lt;span class="w"&gt; &lt;/span&gt;Avahi&lt;span class="w"&gt; &lt;/span&gt;daemon:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;FAILED&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;
Starting&lt;span class="w"&gt; &lt;/span&gt;Avahi&lt;span class="w"&gt; &lt;/span&gt;daemon...&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;OK&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;De esta forma, todos los dispositivos que estén directamente conectados
en nuestra red local (VLAN) serán capaces de conocernos bajo el nombre
&lt;code&gt;rhel6.local&lt;/code&gt; , o el hostname que tengamos configurado y &lt;code&gt;.local&lt;/code&gt; . Muy
cómodo si no tenemos ningún servidor DNS en nuestra red o para
dispositivos itinerantes :-)&lt;/p&gt;</description><category>dns</category><category>mdns</category><category>rhel</category><guid>https://www.frangarcia.me/posts/configurar-mdns-en-rhel6/</guid><pubDate>Sun, 05 Aug 2012 21:03:00 GMT</pubDate></item></channel></rss>