<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi again,</p>
<p>I managed to install the kmod rpms in the overcloud-full.qcow2
image:</p>
<p>
</p>
<div class="container" title="Hint: double-click to select code">
<div class="line number1 index0 alt2"><code class="java plain">sudo
yum -y install https:</code><code class="java comments">//www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm</code></div>
<div class="line number2 index1 alt1"><code class="java plain">sudo
yum -y install --downloadonly --downloaddir=. kmod-mptsas</code></div>
<div class="line number3 index2 alt2"><code class="java plain">sudo
yum -y install --downloadonly --downloaddir=.
kmod-megaraid_sas</code></div>
<div class="line number3 index2 alt2"><code class="java plain"><br>
</code></div>
<div class="line number3 index2 alt2"><code class="java plain">The
deployment works fine, but as soon as the node reboots it is
just stuck with a blinking cursor after loading the kernel.</code></div>
<div class="line number3 index2 alt2"><code class="java plain"><br>
</code></div>
<div class="line number3 index2 alt2"><code class="java plain">Do
I have to add something else to the overcloud-full image as
well?<br>
</code></div>
<div class="line number3 index2 alt2"><code class="java plain"><br>
</code></div>
</div>
<div class="moz-cite-prefix">Am 15.09.2020 um 00:15 schrieb Donny
Davis:<br>
</div>
<blockquote type="cite"
cite="mid:CAMHmko-boJaKfvcuQzPr7tKXm7UyYbxZEPPf7EA5dUrp=xQ_sA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Sep 11, 2020 at 3:25
PM Oliver Weinmann <<a
href="mailto:oliver.weinmann@icloud.com"
moz-do-not-send="true">oliver.weinmann@icloud.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div>Hi,<br>
</div>
<div><br>
</div>
<div>I already asked this question on serverfault. But I
guess here is a better place.<br>
</div>
<div><br>
</div>
<div>I have a very ancient hardware with a MPTSAS
controller. I use this for TripleO deployment testing.
With the release of Ussuri which is running CentOS8, I
can no longer provision my overcloud nodes as the MPTSAS
driver has been removed in CentOS8:</div>
<div>
<p><a
href="https://www.reddit.com/r/CentOS/comments/d93unk/centos8_and_removal_mpt2sas_dell_sas_drivers/"
rel="nofollow" target="_blank"
moz-do-not-send="true">https://www.reddit.com/r/CentOS/comments/d93unk/centos8_and_removal_mpt2sas_dell_sas_drivers/</a><br>
</p>
<p>I managed to include the driver provided from ELrepo
in the introspection image but It is not loaded
automatically:</p>
<p>All commands are run as user "stack". </p>
<p>Extract the introspection image:<br>
</p>
<p>cd ~<br>
mkdir imagesnew<br>
cd imagesnew<br>
tar xvf ../ironic-python-agent.tar<br>
mkdir ~/ipa-tmp<br>
cd ~/ipa-tmp<br>
/usr/lib/dracut/skipcpio
~/imagesnew/ironic-python-agent.initramfs | zcat |
cpio -ivd | pax -r<br>
</p>
<p>Extract the contents of the mptsas driver rpm:<br>
</p>
<p>rpm2cpio
~/kmod-mptsas-3.04.20-3.el8_2.elrepo.x86_64.rpm | pax
-r<br>
</p>
<p>Put the kernel module in the right places. To figure
out where the module has to reside I installed the rpm
on a already deployed node and used find to locate it.</p>
<p>xz -c
./usr/lib/modules/4.18.0-193.el8.x86_64/extra/mptsas/mptsas.ko
>
./usr/lib/modules/4.18.0-193.6.3.el8_2.x86_64/kernel/drivers/message/fusion/mptsas.ko.xz<br>
mkdir
./usr/lib/modules/4.18.0-193.6.3.el8_2.x86_64/weak-updates/mptsas<br>
sudo ln -sf
/lib/modules/4.18.0-193.el8.x86_64/extra/mptsas/mptsas.ko
lib/modules/4.18.0-193.6.3.el8_2.x86_64/weak-updates/mptsas.ko<br>
sudo chown root . -R<br>
find . 2>/dev/null | sudo cpio --quiet -c -o | gzip
-8 > ~/images/ironic-python-agent.initramfs<br>
</p>
<p>Upload the new image<br>
</p>
<p>cd ~/images<br>
openstack overcloud image upload --update-existing
--image-path /home/stack/images/</p>
<p>Now when I start the introspection and ssh into the
host I see no disks:<br>
</p>
<p>[root@localhost ~]# fdisk -l<br>
[root@localhost ~]# lsmod | grep mptsas</p>
<p>Once i manually load the driver, I can see the disks:</p>
<p><br>
[root@localhost ~]# modprobe mptsas<br>
[root@localhost ~]# lsmod | grep mptsas<br>
mptsas 69632 0<br>
mptscsih 45056 1 mptsas<br>
mptbase 98304 2 mptsas,mptscsih<br>
scsi_transport_sas 45056 1 mptsas<br>
[root@localhost ~]# fdisk -l<br>
Disk /dev/sda: 67.1 GiB, 71999422464 bytes, 140623872
sectors<br>
Units: sectors of 1 * 512 = 512 bytes<br>
Sector size (logical/physical): 512 bytes / 512 bytes<br>
I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
</p>
<p>But how can I make it so that it will automatically
load on boot?<br>
</p>
<p>Best Regards,<br>
</p>
<p>Oliver<br>
</p>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div>I guess you could try using modules-load to load the module
at boot. </div>
<div><br>
</div>
<div>> sudo ln -sf
/lib/modules/4.18.0-193.el8.x86_64/extra/mptsas/mptsas.ko
lib/modules/4.18.0-193.6.3.el8_2.x86_64/weak-updates/mptsas.ko<br>
</div>
<div>echo "mptsas" > ./etc/modules-load.d/mptsas.conf<br>
> sudo chown root . -R<br>
</div>
<div><br>
</div>
<div>Also I would have a look see at these docs to build an
image using ipa builder </div>
<div><a
href="https://docs.openstack.org/ironic-python-agent-builder/latest/"
moz-do-not-send="true">https://docs.openstack.org/ironic-python-agent-builder/latest/</a></div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>~/DonnyD</div>
<div>C: 805 814 6800</div>
<div>"No mission too difficult. No sacrifice too great. Duty
First"</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>