[lustre-discuss] can't install Lustre 2.12.7

Riccardo Veraldi riccardo.veraldi at cnaf.infn.it
Mon Sep 27 09:36:04 PDT 2021


hello,

after debugging the lustre-zfs dkms building I realized for some reasons 
the lustre pre build script does not have the correct parameters,

or the correct parameters are not passed to it for some reason so that 
the include and object dir for building the dkms modules are wrong and 
then the configure script fails.

my solution was to patch lustre-dkms_pre-build.sh in a way that it would 
work, at least for me.

In this way lustre-dkms will build. Also I did not need spl at all since 
I am using zfs 0.8.6


--- lustre-2.12.7/lustre-dkms_pre-build.sh    2021-07-14 
22:06:05.000000000 -0700
+++ lustre-2.12.7-dkms-pcds/lustre-dkms_pre-build.sh 2021-09-26 
08:30:54.096000000 -0700
@@ -20,18 +20,16 @@
      fi

      # ZFS and SPL are version locked
-    ZFS_VERSION=$(dkms status -m zfs -k $3 -a $5 | awk -F', ' '{print 
$2; exit 0}' | grep -v ': added$')
+    ZFS_VERSION=$(dkms status -m zfs | awk ' { print $1 } ' | sed -e 
's/zfs\///' -e 's/,//')
+
      if [ -z $ZFS_VERSION ] ; then
          echo "zfs-dkms package must already be installed and built 
under DKMS control"
          exit 1
      fi

      SERVER="--enable-server $LDISKFS \
-        --with-linux=$4 --with-linux-obj=$4 \
-        --with-spl=$6/spl-${ZFS_VERSION} \
-        --with-spl-obj=$7/spl/${ZFS_VERSION}/$3/$5 \
-        --with-zfs=$6/zfs-${ZFS_VERSION} \
-        --with-zfs-obj=$7/zfs/${ZFS_VERSION}/$3/$5"
+        --with-zfs=/usr/src/zfs-${ZFS_VERSION} \
+        --with-zfs-obj=/var/lib/dkms/zfs/${ZFS_VERSION}/$(uname -r)/x86_64"

      KERNEL_STUFF="--with-linux=$4 --with-linux-obj=$4"
      ;;

On 9/27/21 7:05 AM, Thomas Roth wrote:
> Hi Riccardo
>
> (no solution for you problem here)
> out of curiosity, I have just upgraded a test server to centos 7.9 and 
> Lustre 2.12.7.
>
> Kernel is 3.10.0-1160.42.2.el7.x86_64
>
> But I installed kmod-lustre, lustre, kmod-lustre-osd-zfs. The Lustre 
> modules went to /lib/modules/3.10.0-1160.25.1.el7.x86_64/extra, with 
> symlinks to the weak-updates of the previous kernel 
> (3.10.0-1160.2.1.el7.x86_64).
>
> I symlinked those directories in 3.10.0-1160.25.1.el7.x86_64/extra to 
> 3.10.0-1160.42.2.el7.x86_64/extra and mounted my OSTs.
> = Dirty workaround, if you quickly need 2.12.7, but of course not 
> sustainable - at some point the kernel version will have deviated too 
> much and dkms is needed again.
>
> Regards
> Thomas
>
> On 9/24/21 03:13, Riccardo Veraldi wrote:
>> Hello,
>>
>> I am not successful installing lustre 2.12.7 I run into a problem 
>> with dkms on RHEL 7.9
>>
>> kernel 3.10.0-1160.42.2.el7.x86_64
>>
>> I am using rpm from 
>> https://downloads.whamcloud.com/public/lustre/lustre-2.12.7/el7.9.2009/server/RPMS/x86_64/
>>
>> the lustre dkms module fails building, seems like something is 
>> missing or there is a wrong path somewhere so that the proper headers 
>> are not found, but I Could not figure out what. I Tried both with 
>> zfs-0.7.13 and zfs-0.8.6 but same result. So I am missing something
>>
>> Any hints ? I am stuck.
>>
>> ZFS is:
>>
>> libnvpair1-0.7.13-1.el7.x86_64
>> spl-0.7.13-1.el7.x86_64
>> libzfs2-0.7.13-1.el7.x86_64
>> spl-dkms-0.7.13-1.el7.noarch
>> libuutil1-0.7.13-1.el7.x86_64
>> zfs-dkms-0.7.13-1.el7.noarch
>> libzfs2-devel-0.7.13-1.el7.x86_64
>> libzpool2-0.7.13-1.el7.x86_64
>> zfs-0.7.13-1.el7.x86_64
>>
>>
>> yum install lustre-dkms
>> Loaded plugins: langpacks
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package lustre-zfs-dkms.noarch 0:2.12.7-1.el7 will be installed
>> --> Processing Dependency: lustre-osd-zfs-mount for package: 
>> lustre-zfs-dkms-2.12.7-1.el7.noarch
>> --> Running transaction check
>> ---> Package lustre-osd-zfs-mount.x86_64 0:2.12.7-1.el7 will be 
>> installed
>> --> Finished Dependency Resolution
>>
>> Dependencies Resolved
>>
>> ======================================================================================================================== 
>>
>>   Package                              Arch 
>> Version                       Repository              Size
>> ======================================================================================================================== 
>>
>> Installing:
>>   lustre-zfs-dkms                      noarch 
>> 2.12.7-1.el7                  lustre                  12 M
>> Installing for dependencies:
>>   lustre-osd-zfs-mount                 x86_64 
>> 2.12.7-1.el7                  lustre                  12 k
>>
>> Transaction Summary
>> ======================================================================================================================== 
>>
>> Install  1 Package (+1 Dependent package)
>>
>> Total download size: 12 M
>> Installed size: 38 M
>> Is this ok [y/d/N]: y
>> Downloading packages:
>> (1/2): lustre-osd-zfs-mount-2.12.7-1.el7.x86_64.rpm |  12 kB 00:00:00
>> (2/2): lustre-zfs-dkms-2.12.7-1.el7.noarch.rpm |  12 MB 00:00:00
>> ------------------------------------------------------------------------------------------------------------------------ 
>>
>> Total 26 MB/s |  12 MB  00:00:00
>> Running transaction check
>> Running transaction test
>> Transaction test succeeded
>> Running transaction
>>    Installing : lustre-osd-zfs-mount-2.12.7-1.el7.x86_64 1/2
>>    Installing : lustre-zfs-dkms-2.12.7-1.el7.noarch 2/2
>> Loading new lustre-zfs-2.12.7 DKMS files...
>> Building for 3.10.0-1160.42.2.el7.x86_64
>> Building initial module for 3.10.0-1160.42.2.el7.x86_64
>> configure: WARNING:
>>
>> Disabling ldiskfs support because complete ext4 source does not exist.
>>
>> If you are building using kernel-devel packages and require ldiskfs
>> server support then ensure that the matching kernel-debuginfo-common
>> and kernel-debuginfo-common-<arch> packages are installed.
>>
>> ./configure: line 33341: test: zfs: integer expression expected
>> configure: error:
>>
>> Required zfs osd cannot be built due to missing zfs development headers.
>>
>> Support for zfs can be enabled by downloading the required packages 
>> for your
>> distribution.  See http://zfsonlinux.org/ to determine is zfs is 
>> supported by
>> your distribution.
>>
>> Error! Bad return status for module build on kernel: 
>> 3.10.0-1160.42.2.el7.x86_64 (x86_64)
>> Consult /var/lib/dkms/lustre-zfs/2.12.7/build/make.log for more 
>> information.
>> warning: %post(lustre-zfs-dkms-2.12.7-1.el7.noarch) scriptlet failed, 
>> exit status 10
>> Non-fatal POSTIN scriptlet failure in rpm package 
>> lustre-zfs-dkms-2.12.7-1.el7.noarch
>>    Verifying  : lustre-osd-zfs-mount-2.12.7-1.el7.x86_64 1/2
>>    Verifying  : lustre-zfs-dkms-2.12.7-1.el7.noarch 2/2
>>
>> Installed:
>>    lustre-zfs-dkms.noarch 0:2.12.7-1.el7
>>
>> Dependency Installed:
>>    lustre-osd-zfs-mount.x86_64 0:2.12.7-1.el7
>>
>>
>> cat /var/lib/dkms/lustre-zfs/2.12.7/build/make.log
>> DKMS make.log for lustre-zfs-2.12.7 for kernel 
>> 3.10.0-1160.42.2.el7.x86_64 (x86_64)
>> Thu Sep 23 17:42:12 PDT 2021
>> make: *** No targets specified and no makefile found.  Stop.
>>
>> _______________________________________________
>> lustre-discuss mailing list
>> lustre-discuss at lists.lustre.org
>> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


More information about the lustre-discuss mailing list