[lustre-discuss] Installing zfs and lustre

Kyriazis, George george.kyriazis at intel.com
Fri Oct 7 14:32:40 PDT 2016


I managed to avoid this problem by hacking the .spec file of the SRPM, but I am not hitting another problem.  When packaging the RPM files, there are some config files that are missing.  They exist in the original tarball (which is inside the SRPM), but not in the BUILDROOT.

Any ideas?

Thank you!

George

# buildrpm --rebuild --with zfs --without ldiskfs <rpm>
...
...

dwz: "./lib/modules/3.10.0-327.36.1.el7.x86_64/extra/kernel/fs/lustre/lov.ko.deb
ug" is not a shared library
dwz: "./lib/modules/3.10.0-327.36.1.el7.x86_64/extra/kernel/fs/lustre/osc.ko.deb
ug" is not a shared library
/usr/lib/rpm/sepdebugcrcfix: Updated 68 CRC32s, 18 CRC32s did match.
18347 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: lustre-2.8.0-3.10.0_327.36.1.el7.x86_64.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7
.x86_64.x86_64/usr/libexec/lustre/lc_common
error: File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7
.x86_64.x86_64/usr/libexec/lustre/haconfig
error: File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7
.x86_64.x86_64/usr/bin/lustre_req_history
error: File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7
.x86_64.x86_64/etc/sysconfig/lustre
error: File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7
.x86_64.x86_64/etc/init.d/lustre


RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7.x8
6_64.x86_64/usr/libexec/lustre/lc_common
    File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7.x8
6_64.x86_64/usr/libexec/lustre/haconfig
    File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7.x8
6_64.x86_64/usr/bin/lustre_req_history
    File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7.x8
6_64.x86_64/etc/sysconfig/lustre
    File not found: /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.36.1.el7.x8
6_64.x86_64/etc/init.d/lustre


From: Kyriazis, George
Sent: Wednesday, October 5, 2016 5:24 PM
To: lustre-discuss at lists.lustre.org
Subject: Installing zfs and lustre

Hello lustre-discuss,

I am trying to setup lustre + zfs on a set of virtual machines, for testing purposes.

I have managed to get plain lustre + ldiskfs working, which is great!

The main problem that I'm having is that the osd-zfs kernel module has symbol version mismatches.  Initially I went down the path of trying to download the right version of zfs, to match symbol versions, but had trouble with it.

I then came across a post, here, in lustre-discuss, by Christopher Morrone, saying not to do that, but rather, compile lustre from an SRPM using stock kernel.  I am having a problem doing that, though, last few lines of compilation below.

Any help is appreciated!

Thank you!
George

[root at l-2 lustre]# rpmbuild --rebuild --with zfs --without ldiskfs lustre-2.8.0-3.10.0_327.3.1.el7_lustre.x86_64.src.rpm

...

make[3]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre/lov'
make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre/lov'
Making install in osc
make[2]: Entering directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre/osc'
make[3]: Entering directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre/osc'
make[3]: Nothing to be done for `install-exec-am'.
/usr/bin/mkdir -p '/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.3.1.el7_lustre.x86_64.x86_64/lib/modules/3.10.0-327.36.1.el7.x86_64/extra/kernel/fs/lustre'
/usr/bin/install -c -m 644 osc.ko '/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.3.1.el7_lustre.x86_64.x86_64/lib/modules/3.10.0-327.36.1.el7.x86_64/extra/kernel/fs/lustre'
make[3]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre/osc'
make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre/osc'
make[2]: Entering directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
make[3]: Entering directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
make[1]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
+ :
+ ln -s Lustre.ha_v2 /root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.3.1.el7_lustre.x86_64.x86_64/etc/ha.d/resource.d/Lustre
ln: failed to create symbolic link '/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.3.1.el7_lustre.x86_64.x86_64/etc/ha.d/resource.d/Lustre': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.AoDpo8 (%install)


RPM build errors:
    user jenkins does not exist - using root
    group jenkins does not exist - using root
    user jenkins does not exist - using root
    group jenkins does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.AoDpo8 (%install)
[root at l-2 lustre]#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20161007/d14934b6/attachment.htm>


More information about the lustre-discuss mailing list