spl(required by zfs), zfs and lustre-zfs are all using dkms on all OSS to build their kernel modules automatically once the system has a new kernel.
To manually build and install the kernel modules from dkms, please note spl needs to be built before zfs.
#dkms build spl -v 0.7.13 -k 3.10.0-1062.1.1.el7_lustre.x86_64 #dkms build zfs -v 0.7.13 -k 3.10.0-1062.1.1.el7_lustre.x86_64 #dkms build lustre-zfs -v 2.12.3 -k 3.10.0-1062.1.1.el7_lustre.x86_64 #dkms install spl -v 0.7.13 -k 3.10.0-1062.1.1.el7_lustre.x86_64 #dkms install zfs -v 0.7.13 -k 3.10.0-1062.1.1.el7_lustre.x86_64 #dkms install lustre-zfs -v 2.12.3 -k 3.10.0-1062.1.1.el7_lustre.x86_64 #modprobe zfs #modprobe lustre-- WenjingWu - 07 Feb 2020