%define unit_name iml-zfs-import-none.service Name: lustre-ldiskfs Version: 3.0.0 Release: 1%{?dist} Summary: Package to install a Lustre storage server with just ldiskfs support License: MIT URL: https://github.com/intel-hpdd/%{name} Source0: %{unit_name} Source1: 00-zfs-import-none.preset Requires: lustre Requires: kmod-lustre-osd-ldiskfs BuildRequires: systemd %description This is a package you can install if you want to create a Lustre storage server capable of creating just ldiskfs targets. %package zfs Summary: Package to install a Lustre storage server with both ldiskfs and ZFS support Requires: lustre Requires: lustre-dkms Requires: kmod-lustre-osd-ldiskfs Requires: zfs %{?systemd_requires} %description zfs This is a package you can install if you want to create a Lustre storage server capable of creating both ldiskfs and ZFS targets. %prep %build %install mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_presetdir} cp %{SOURCE0} %{buildroot}%{_unitdir} cp %{SOURCE1} %{buildroot}%{_presetdir} %files %post zfs systemctl preset zfs-import-scan.service systemctl stop zfs-import-scan.service systemctl preset zfs-import-cache.service systemctl stop zfs-import-cache.service systemctl preset zfs-mount.service systemctl stop zfs-mount.service %systemd_post %{unit_name} %systemd_post zfs.target systemctl start zfs.target %files zfs %{_unitdir}/%{unit_name} %{_presetdir}/00-zfs-import-none.preset %preun zfs %systemd_preun %{unit_name} systemctl enable zfs-import-scan.service systemctl enable zfs-import-cache.service systemct enable zfs-mount.service %changelog * Tue May 8 2018 Brian J. Murrell 3-1 - produce both a lustre-ldiskfs and lustre-ldiskfs-zfs package * Fri Mar 2 2018 Joe Grund 2-1 - Add unit to start ZFS services post install. - Fixup spec to enable / disable correct units. * Tue Aug 22 2017 Brian J. Murrell 1-3 - Remove LU-9745 hack now that that is fixed upstream * Tue Jul 11 2017 Brian J. Murrell 1-2 - Add post to work around LU-9745 by removing the autoinstalled lustre module and re-installing it * Fri Jul 7 2017 Brian J. Murrell 1-1 - Initial package