2005-03-01 22:57:20 +00:00
|
|
|
Summary: Tools to manage multipath devices using device-mapper.
|
|
|
|
Name: device-mapper-multipath
|
2005-04-05 17:51:09 +00:00
|
|
|
Version: 0.4.4
|
2005-12-04 19:33:56 +00:00
|
|
|
Release: 2.6
|
2005-03-01 22:57:20 +00:00
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Base
|
|
|
|
URL: http://christophe.varoqui.free.fr/
|
2005-04-19 17:55:28 +00:00
|
|
|
Source0: multipath-tools-0.4.4.2.tar.bz2
|
2005-03-02 20:01:43 +00:00
|
|
|
Patch0: old_dev_t_long.patch
|
|
|
|
Patch1: old_dev_t_int.patch
|
|
|
|
Patch2: old_dev_t_short.patch
|
|
|
|
Patch3: makefile.patch
|
2005-04-19 14:02:47 +00:00
|
|
|
Patch4: move_cache_file.patch
|
2005-04-19 17:55:28 +00:00
|
|
|
Patch5: cache_open_mode.patch
|
2005-05-06 17:41:26 +00:00
|
|
|
Patch6: init.patch
|
2005-12-01 19:40:11 +00:00
|
|
|
Obsoletes: kpartx = 0.4.4-2.4
|
2005-03-01 22:57:20 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
2005-12-04 19:33:56 +00:00
|
|
|
BuildRequires: sysfsutils-devel, device-mapper >= 1.02.02-2
|
2005-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{name} provides tools to manage multipath devices by instructing the
|
|
|
|
device-mapper multipath kernel module what to do.
|
|
|
|
The tools are :
|
|
|
|
* multipath : Scan the system for multipath devices and assemble them.
|
|
|
|
* multipathd : Detects when paths fail and execs multipath to update things.
|
2005-11-15 05:12:57 +00:00
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
%prep
|
2005-04-19 17:55:28 +00:00
|
|
|
%setup -q -n multipath-tools-0.4.4.2
|
2005-03-01 22:57:20 +00:00
|
|
|
|
2005-03-02 20:01:43 +00:00
|
|
|
%ifarch ppc64 x86_64
|
|
|
|
%patch0 -p1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc ia64
|
|
|
|
%patch1 -p1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch i386 s390 s390x
|
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%patch3 -p1
|
2005-04-05 17:51:09 +00:00
|
|
|
%patch4 -p1
|
2005-04-19 17:55:28 +00:00
|
|
|
%patch5 -p1
|
2005-05-06 17:41:26 +00:00
|
|
|
%patch6 -p1
|
2005-03-02 20:01:43 +00:00
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
%build
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-03-02 20:01:43 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT bindir=/sbin rcdir=/etc/rc.d/init.d
|
2005-04-08 16:50:52 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/pp_balance_units
|
2005-04-19 14:02:47 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/pp_emc
|
|
|
|
install -m 0700 -d $RPM_BUILD_ROOT/var/cache/multipath
|
2005-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-04-05 17:51:09 +00:00
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add multipathd
|
2005-03-01 22:57:20 +00:00
|
|
|
|
2005-04-05 17:51:09 +00:00
|
|
|
%preun
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
/sbin/chkconfig --del multipathd
|
|
|
|
fi
|
2005-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2005-12-01 19:40:11 +00:00
|
|
|
/sbin/kpartx
|
2005-03-01 22:57:20 +00:00
|
|
|
/sbin/multipath
|
|
|
|
/sbin/multipathd
|
2005-03-02 20:01:43 +00:00
|
|
|
%{_mandir}/man8/kpartx.8.gz
|
2005-03-01 22:57:20 +00:00
|
|
|
%{_mandir}/man8/multipath.8.gz
|
2005-03-02 20:01:43 +00:00
|
|
|
%{_mandir}/man8/multipathd.8.gz
|
2005-03-01 22:57:20 +00:00
|
|
|
%config /etc/rc.d/init.d/multipathd
|
2005-03-02 20:01:43 +00:00
|
|
|
%doc AUTHOR COPYING README* FAQ multipath.conf.* multipath/01_udev multipath/02_multipath multipath/multipath.dev
|
2005-04-19 14:02:47 +00:00
|
|
|
/var/cache/multipath
|
2005-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%changelog
|
2005-12-04 19:33:56 +00:00
|
|
|
* Sun Dec 4 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.6
|
|
|
|
- rebuild for newer libs
|
|
|
|
|
2005-12-01 19:40:11 +00:00
|
|
|
* Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.5
|
|
|
|
- unsplit kpartx. parted knows how to do this now, so we don't
|
|
|
|
need this in a separate package.
|
|
|
|
|
2005-11-15 05:12:57 +00:00
|
|
|
* Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.4
|
|
|
|
- split kpartx out into its own package
|
|
|
|
|
2005-05-06 17:41:26 +00:00
|
|
|
* Fri May 06 2005 Bill Nottingham <notting@redhat.com> - 0.4.4-2.3
|
|
|
|
- Fix last fix.
|
|
|
|
|
2005-05-05 14:43:28 +00:00
|
|
|
* Thu May 05 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.2
|
|
|
|
- Fix last fix.
|
|
|
|
|
2005-05-04 14:11:38 +00:00
|
|
|
* Wed May 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.1
|
|
|
|
- By default, disable the multipathd service.
|
|
|
|
|
2005-04-19 17:55:28 +00:00
|
|
|
* Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.0
|
|
|
|
- Fix core dump from last build.
|
|
|
|
|
2005-04-19 14:02:47 +00:00
|
|
|
* Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-1.0
|
|
|
|
- Move cache file into /var/cache/multipath.
|
|
|
|
|
2005-04-08 16:50:52 +00:00
|
|
|
* Fri Apr 08 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.1
|
|
|
|
- Remove pp_balance_units.
|
|
|
|
|
2005-04-05 17:51:09 +00:00
|
|
|
* Mon Apr 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.0
|
|
|
|
- Incorporate numerous upstream fixes.
|
|
|
|
- Update init script to distribution standards.
|
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
* Tue Mar 01 2005 Alasdair Kergon <agk@redhat.com> - 0.4.2-1.0
|
|
|
|
- Initial import based on Christophe Varoqui's spec file.
|