<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Just for public reference the solution was provided by Martin
      Audet which was to add the --kmp flag when building MOFED. So you
      want:</p>
    <p>mlnxofedinstall --add-kernel-support-build-only --kmp</p>
    <p>Thanks Martin!<br>
    </p>
    <p>-Paul Edmon-<br>
    </p>
    <div class="moz-cite-prefix">On 3/16/24 5:28 AM, Andreas Dilger
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:011CC972-5F17-4470-A11D-80E2CE249196@whamcloud.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      On Mar 15, 2024, at 09:18, Paul Edmon via lustre-discuss <<a
        href="mailto:lustre-discuss@lists.lustre.org"
        class="moz-txt-link-freetext" moz-do-not-send="true">lustre-discuss@lists.lustre.org</a>>
      wrote:<br class="">
      <div>
        <blockquote type="cite" class=""><br
            class="Apple-interchange-newline">
          <div class="">
            <div class="">I'm working on building Lustre 2.15.4 against
              recent versions of Mellanox OFED. I built OFED against the
              specific kernel and then install mlnx-ofa_kernel-modules
              for that specific kernel. After which I built lustre
              against that version of OFED using:<br class="">
              <br class="">
              rpmbuild --rebuild --without servers --without mpi --with
              mofed --define "_topdir `pwd`"
              SRPMS/lustre-2.15.4-1.src.rpm<br class="">
              <br class="">
              However once I finish building and install I get:<br
                class="">
              <br class="">
              Error: Transaction test error:<br class="">
                file /etc/depmod.d/zz01-mlnx-ofa_kernel-mlx_compat.conf
              from install of
              kmod-mlnx-ofa_kernel-23.10-OFED.23.10.2.1.3.1.rhel8u9.x86_64
              conflicts with file from package
mlnx-ofa_kernel-modules-23.10-OFED.23.10.2.1.3.1.kver.4.18.0_513.18.1.el8_9.x86_64.x86_64<br
                class="">
              <br class="">
              I saw this earlier message which matches my case: <a
href="http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/2020-December/017407.html"
                class="moz-txt-link-freetext" moz-do-not-send="true">
http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/2020-December/017407.html</a>
              But no resolution.<br class="">
              <br class="">
              Does anyone know the solution to this? Is there a work
              around?<br class="">
            </div>
          </div>
        </blockquote>
      </div>
      <div class=""><br class="">
      </div>
      You probably need to "rpm -Uvh" instead of "rpm -ivh" the new
      kmod-mlnx-ofa_kernel RPM?
      <div class=""><br class="">
      </div>
      <div class="">Or, if you want to keep both RPMs installed (e.g.
        for different kernels) then you can probably just use "--force"
        since it looks like the .conf file would likely be the same from
        both packages.
        <div class=""><br class="">
          <div class="">
            <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
              class="">
              <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
                class="">
                <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
                  class="">
                  <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
                    class="">
                    <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
                      class="">
                      <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
                        class="">
                        <div>Cheers, Andreas</div>
                        <div>--</div>
                        <div>Andreas Dilger</div>
                        <div>Lustre Principal Architect</div>
                        <div>Whamcloud</div>
                        <div><br class="">
                        </div>
                        <div><br class="">
                        </div>
                        <div><br class="">
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br class="Apple-interchange-newline">
            </div>
            <br class="Apple-interchange-newline">
            <br class="Apple-interchange-newline">
          </div>
          <br class="">
        </div>
      </div>
    </blockquote>
  </body>
</html>