<div dir="ltr"><div> If it can be of any help, here is the script I use in a throwaway Openstack VM to build Lustre+ZFS without LDISKFS on a vanilla Centos kernel:</div><div><br></div><div>yum install -y epel-release<br>yum install -y wget git<br>yum install -y asciidoc audit-libs-devel automake bc binutils-devel bison device-mapper-devel elfutils-devel elfutils-libelf-devel expect flex gcc gcc-c++ git glib2 glib2-devel hmaccalc keyutils-libs-devel krb5-devel ksh libattr-devel libblkid-devel libselinux-devel libtool libuuid-devel libyaml-devel lsscsi make ncurses-devel net-snmp-devel net-tools newt-devel numactl-devel parted patchutils pciutils-devel perl-ExtUtils-Embed pesign python-devel redhat-rpm-config rpm-build systemd-devel tcl tcl-devel tk tk-devel wget xmlto yum-utils zlib-devel kabi-whitelists libaio-devel python-cffi libffi-devel python-setuptools<br>yum install -y kernel-devel<br></div>mkdir -p releases/zfs<br><br>echo Downloading and building ZFS<br>git clone <a href="https://github.com/zfsonlinux/zfs.git" target="_blank">https://github.com/zfsonlinux/zfs.git</a><br>cd zfs<br>git checkout zfs-0.8.1<br>sh autogen.sh<br>./configure --with-spec=redhat<br>make pkg-utils pkg-kmod rpm-dkms<br><br>cd ..<br>mv zfs/*.rpm releases/zfs<br><br>echo Installing ZFS packages<br>yum install -y releases/zfs/kmod-zfs-*-1.el7.x86_64.rpm releases/zfs-s/kmod-zfs-devel-*.el7.x86_64.rpm releases/zfs/zfs-*.el7.x86_64.rpm releases/zfs/zfs-kmod-*.el7.src.rpm releases/zfs/libzfs2-*.el7.x86_64.rpm releases/zfs/libzfs2-devel-*.el7.x86_64.rpm releases/zfs/libzpool2-*.el7.x86_64.rpm releases/zfs/libuutil1-*.el7.x86_64.rpm releases/zfs/libnvpair1-*.el7.x86_64.rpm<br><br>echo Downloading and building Lustre<br>git clone git://<a href="http://git.whamcloud.com/fs/lustre-release.git" target="_blank">git.whamcloud.com/fs/lustre-release.git</a><br>cd lustre-release<br>git checkout 2.12.2<br>sh autogen.sh<br>./configure --enable-server --disable-ldiskfs<br>make rpms<br><br>cd ..<br>mkdir -p releases/lustre-server<br>mv lustre-release/*.rpm releases/lustre-server<br><br>cd lustre-release<br>./configure --disable-server --enable-client<br>make rpms<br><br>cd ..<br>mkdir -p releases/lustre-client<br>mv lustre-release/*.rpm releases/lustre-client<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 7, 2019 at 3:46 PM Shaun Tancheff <<a href="mailto:stancheff@cray.com" target="_blank">stancheff@cray.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">Hi<br>
<br>
I have never gotten dkms route to work (although I only tried a couple of times).<br>
I do have a working setup for the kmod route.<br>
<br>
$ git clone zfs<br>
$ cd zfs<br>
$ git checkout zfs-0.8.1<br>
$ ./autogen.sh<br>
$ ./configure --with-spec=redhat --with-linux=/usr/src/kernels/3.10.0-957.27.2.ldiskfs.el7.x86_64<br>
$ make pkg-utils pkg-kmod<br>
## install the -devel packages: <br>
 kmod-zfs-0.8.1-1.el7.x86_64.rpm<br>
 kmod-zfs-devel-0.8.1-1.el7.x86_64.rpm<br>
 libnvpair1-0.8.1-1.el7.x86_64.rpm<br>
 libuutil1-0.8.1-1.el7.x86_64.rpm<br>
 libzfs2-0.8.1-1.el7.x86_64.rpm<br>
 libzfs2-devel-0.8.1-1.el7.x86_64.rpm<br>
## you will now have a /usr/src/zfs-0.8.1/ and /usr/src/spl-0.8.1/<br>
<br>
$ <git clone lustre><br>
$ cd <lustre><br>
$ git checkout <branch><br>
$ sh ./autogen.sh<br>
$ ./configure --enable-server --enable-client --with-linux=/usr/src/kernels/3.10.0-957.27.2.ldiskfs.el7.x86_64 --without-o2ib --with-zfs=/usr/src/zfs-0.8.1 --with-spl=/usr/src/spl-0.8.1 --enable-ldiskfs --enable-modules<br>
$ make rpms<br>
<br>
NOTE:<br>
3.10.0-957.27.2.ldiskfs.el7.x86_64 is a kernel with 'ldiskfs' support<br>
You can drop the --enable-ldiskfs and use a vanilla kernel instead.<br>
<br>
If you are still having trouble I'll do a run sans ldiskfs and send that along.<br>
<br>
Regards,<br>
Shaun<br>
<br>
<br>
On 8/7/19, 2:18 PM, "lustre-discuss on behalf of James Watson" <<a href="mailto:lustre-discuss-bounces@lists.lustre.org" target="_blank">lustre-discuss-bounces@lists.lustre.org</a> on behalf of <a href="mailto:James.Watson@pgs.com" target="_blank">James.Watson@pgs.com</a>> wrote:<br>
<br>
    Hi<br>
<br>
    Has anyone got Lustre 2.12.2 compiled with ZFS 0.8.1 on CentOS 7.6? Is there a guide out there?<br>
<br>
    I've tried: <br>
    ./configure --enable-server --with-linux=/usr/src/kernels/3.10.0-957.10.1.el7_lustre.x86_64 --with-zfs=/var//lib/dkms/zfs/0.8.1/source/include --with-spl=/var/lib/dkms/zfs/0.8.1/source/include/spl<br>
<br>
    Also tried --without-spl support since spl is now integrated in zfs but get the below error message:<br>
<br>
    checking whether to build ldiskfs... yes<br>
    checking whether to enable zfs... yes<br>
    checking spl source directory... no<br>
    checking spl build directory... ls: cannot access no/[0-9]*/: No such file or directory<br>
    Not found<br>
    checking zfs source directory... /var//lib/dkms/zfs/0.8.1/source/include<br>
    checking zfs build directory... ls: cannot access /var//lib/dkms/zfs/0.8.1/source/include/[0-9]*/: No such file or directory<br>
    Not found<br>
    checking user provided zfs devel headers...<br>
    checking zfs devel headers... -I/usr/include/libspl -I /usr/include/libzfs<br>
    configure: error:<br>
<br>
    Required zfs osd cannot be built due to missing zfs development headers.<br>
<br>
    The directories source do exist but it's looking for /[0-9]*/ which isn't there since it's the exact location. Also tried not specifying zfs locations and /var/lib/dkms/zfs/0.8.1 but still complains that it can't find the development headers as the directory doesn't exist.<br>
<br>
    Thanks <br>
<br>
    James Watson<br>
<br>
    _______________________________________________<br>
    lustre-discuss mailing list<br>
    <a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
    <a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
<br>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</blockquote></div>