[lustre-discuss] ksym errors on kmod-lustre RPM after 2.10.4 build against MOFED 4.3

2018-08-09 Thread Ms. Megan Larko
Hi!

I concur with Gin Tan.

I built my successful Lustre-2.10.4 on an older linux-3.10.0-693.[ 2.2..x
or 17.1 ].
After booting into the 693 kernel, I then built MLNX_OFED_LINUX-4.3-1.0.1.0
via command:
"./mlnxofedinstall --skip-distro-check --add-kernel-support"

Then I start that version of mlnx (/etc/init.d/openibd start).

Then I build spl and zfs if the box is a Lustre server.
I go right to building Lustre if the goal is to install a client.

Lustre Client:
./configure --disable-server --disable-ldiskfs
--with-o2ib=/usr/src/ofa_kernel/default
--with-linux=/usr/src/kernels/3.10.0-693.17.1.el7.x86_64

Then the usual and customary "make" and "make rpms".
I do have a kmod-lustre-* rpm.   I have no symbol errors and my test bed of
Lustre-2.10.4 is behaving nicely.

I have found that order matters.  I seem to need to do the kernel first,
then Mellanox on that kernel and build the Lustre part on the kernel with
the new MLNX active.

Cheers,
megan
___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


[lustre-discuss] ksym errors on kmod-lustre RPM after 2.10.4 build against MOFED 4.3

2018-08-07 Thread Matt Rásó-Barnett

Hello,

I've been trying to build a fresh set of RPMs to reproduce the publicly 
available build of Lustre v2_10_4 against RHEL7.5 
kernel-3.10.0-862.2.3.el7 with MOFED 4.3-3.0.2.1:

https://downloads.whamcloud.com/public/lustre/lustre-2.10.4-ib/MOFED-4.3-3.0.2.1/

To do this I've been closely following the instructions at 
http://wiki.lustre.org/Compiling_Lustre


The build process itself is successful, however I am running into an 
error when I try to install the lustre RPMs, and specifically get the 
following:


[root@build ~]# yum --enablerepo=lustre-server install lustre 
kmod-lustre kmod-lustre-osd-ldiskfs lustre-osd-ldiskfs-mount

Loaded plugins: product-id, search-disabled-repos, subscription-manager
...
Resolving Dependencies
--> Running transaction check
---> Package kmod-lustre.x86_64 0:2.10.4-1.el7 will be installed
--> Processing Dependency: ksym(ib_get_dma_mr) = 0x9add141e for package: 
kmod-lustre-2.10.4-1.el7.x86_64
--> Processing Dependency: ksym(backport_dependency_symbol) = 0xb43a926b for 
package: kmod-lustre-2.10.4-1.el7.x86_64
--> Processing Dependency: ksym(__rdma_create_id) = 0x4f20f8d2 for package: 
kmod-lustre-2.10.4-1.el7.x86_64
--> Processing Dependency: ksym(__rdma_accept) = 0x2962f069 for package: 
kmod-lustre-2.10.4-1.el7.x86_64
---> Package kmod-lustre-osd-ldiskfs.x86_64 0:2.10.4-1.el7 will be installed
---> Package lustre.x86_64 0:2.10.4-1.el7 will be installed
---> Package lustre-osd-ldiskfs-mount.x86_64 0:2.10.4-1.el7 will be installed
--> Running transaction check
---> Package kmod-lustre.x86_64 0:2.10.4-1.el7 will be installed
--> Processing Dependency: ksym(ib_get_dma_mr) = 0x9add141e for package: 
kmod-lustre-2.10.4-1.el7.x86_64
--> Processing Dependency: ksym(__rdma_create_id) = 0x4f20f8d2 for package: 
kmod-lustre-2.10.4-1.el7.x86_64
--> Processing Dependency: ksym(__rdma_accept) = 0x2962f069 for package: 
kmod-lustre-2.10.4-1.el7.x86_64
---> Package kmod-mlnx-ofa_kernel.x86_64 
0:4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5 will be installed
--> Finished Dependency Resolution
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(__rdma_create_id) = 0x4f20f8d2
  Installing: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(__rdma_create_id) = 0x9b63e879
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(ib_get_dma_mr) = 0x9add141e
  Installing: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(ib_get_dma_mr) = 0x87f4f63d
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(__rdma_accept) = 0x2962f069
  Installing: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(__rdma_accept) = 0x530ea333
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(ib_get_dma_mr) = 0x9add141e
  Available: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(ib_get_dma_mr) = 0x87f4f63d
**
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in 
/etc/yum/pluginconf.d/search-disabled-repos.conf
**

Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(__rdma_create_id) = 0x4f20f8d2
  Installing: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(__rdma_create_id) = 0x9b63e879
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(ib_get_dma_mr) = 0x9add141e
  Installing: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(ib_get_dma_mr) = 0x87f4f63d
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(__rdma_accept) = 0x2962f069
  Installing: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(__rdma_accept) = 0x530ea333
Error: Package: kmod-lustre-2.10.4-1.el7.x86_64 (lustre-server)
  Requires: ksym(ib_get_dma_mr) = 0x9add141e
  Available: 
kmod-mlnx-ofa_kernel-4.3-OFED.4.3.3.0.2.1.gcf60532.rhel7u5.x86_64 (mlnx-ofed)
  ksym(ib_get_dma_mr) = 0x87f4f63d
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

My build process has roughly been:

* Download lustre-src and checkout tag v2_10_4
* Build patched kernel RPMs against kernel-3.10.0-862.2.3.el7 as 
described in lustre wiki:


 rpmbuild -ba --with firmware --with baseonly --without kabichk 
 --without perf --define "buildid _lustre" --target x86_64 
 SPECS/kernel.spec