2007-02-05 20:47:32 +00:00
|
|
|
Summary: Tools to manage multipath devices using device-mapper
|
2005-03-01 22:57:20 +00:00
|
|
|
Name: device-mapper-multipath
|
2008-05-20 04:37:41 +00:00
|
|
|
Version: 0.4.8
|
2008-08-20 21:48:41 +00:00
|
|
|
Release: 6%{?dist}
|
2008-02-29 18:45:25 +00:00
|
|
|
License: GPL+
|
2005-03-01 22:57:20 +00:00
|
|
|
Group: System Environment/Base
|
|
|
|
URL: http://christophe.varoqui.free.fr/
|
2008-08-20 21:48:41 +00:00
|
|
|
Source0: multipath-tools-080804.tgz
|
|
|
|
Patch0: linking_change.patch
|
|
|
|
Patch1: uevent_fix.patch
|
|
|
|
Patch2: sparc64fix.patch
|
|
|
|
Patch3: directio_fix.patch
|
|
|
|
Patch4: config_files.patch
|
|
|
|
Patch5: redhatification.patch
|
|
|
|
Patch6: mpath_wait.patch
|
|
|
|
Patch7: multipath_rules.patch
|
|
|
|
Patch8: cciss_id.patch
|
|
|
|
Patch9: scsi_id_change.patch
|
|
|
|
Patch10: static_libaio.patch
|
|
|
|
Patch11: config_space_fix.patch
|
|
|
|
Patch12: fix_devt.patch
|
2006-08-31 22:21:44 +00:00
|
|
|
Requires: kpartx = %{version}-%{release}
|
2007-01-31 18:24:57 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
2007-02-05 20:47:32 +00:00
|
|
|
Requires: device-mapper >= 1.02.02-2
|
2008-05-20 04:37:41 +00:00
|
|
|
BuildRequires: libaio-devel, device-mapper-devel
|
2006-05-22 14:34:16 +00:00
|
|
|
BuildRequires: libselinux-devel, libsepol-devel
|
2006-07-12 22:08:47 +00:00
|
|
|
BuildRequires: readline-devel, ncurses-devel
|
2005-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%description
|
2008-05-20 04:37:41 +00:00
|
|
|
%{name} provides tools to manage multipath devices by
|
|
|
|
instructing the device-mapper multipath kernel module what to do.
|
2005-03-01 22:57:20 +00:00
|
|
|
The tools are :
|
|
|
|
* multipath : Scan the system for multipath devices and assemble them.
|
|
|
|
* multipathd : Detects when paths fail and execs multipath to update things.
|
2006-08-31 22:21:44 +00:00
|
|
|
|
|
|
|
%package -n kpartx
|
2007-02-05 20:47:32 +00:00
|
|
|
Summary: Partition device manager for device-mapper devices
|
2006-08-31 22:21:44 +00:00
|
|
|
Group: System Environment/Base
|
|
|
|
Provides: kpartx = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n kpartx
|
|
|
|
kpartx manages partition creation and removal for device-mapper devices.
|
2005-11-15 05:12:57 +00:00
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
%prep
|
2008-08-20 21:48:41 +00:00
|
|
|
%setup -q -n multipath-tools
|
|
|
|
%patch0 -p1 -b .linking_change
|
|
|
|
%patch1 -p1 -b .uevent_fix
|
|
|
|
%patch2 -p1 -b .sparc64fix
|
|
|
|
%patch3 -p1 -b .directio_fix
|
|
|
|
%patch4 -p1 -b .config_files
|
|
|
|
%patch5 -p1 -b .redhatification
|
|
|
|
%patch6 -p1 -b .mpath_wait
|
|
|
|
%patch7 -p1 -b .multipath_rules
|
|
|
|
%patch8 -p1 -b .cciss_id
|
|
|
|
%patch9 -p1 -b .scsi_id_change
|
|
|
|
%patch10 -p1 -b .static_libaio
|
|
|
|
%patch11 -p1 -b .config_space_fix
|
|
|
|
%patch12 -p1 -b .fix_devt
|
2005-03-02 20:01:43 +00:00
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
%build
|
2008-05-20 04:37:41 +00:00
|
|
|
make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT
|
2005-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%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-03-01 22:57:20 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-04-05 17:51:09 +00:00
|
|
|
%post
|
2008-05-20 04:37:41 +00:00
|
|
|
/sbin/ldconfig
|
2005-04-05 17:51:09 +00:00
|
|
|
/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
|
2008-05-20 04:37:41 +00:00
|
|
|
/sbin/service multipathd stop /dev/null 2>&1
|
2005-04-05 17:51:09 +00:00
|
|
|
/sbin/chkconfig --del multipathd
|
|
|
|
fi
|
2005-03-01 22:57:20 +00:00
|
|
|
|
2008-05-20 04:37:41 +00:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2008-08-20 21:48:41 +00:00
|
|
|
if [ "$1" -ge "1" ]; then
|
2008-05-20 04:37:41 +00:00
|
|
|
/sbin/service multipathd condrestart >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/sbin/multipath
|
|
|
|
/sbin/multipathd
|
2008-05-20 04:37:41 +00:00
|
|
|
/sbin/cciss_id
|
2007-01-15 23:41:05 +00:00
|
|
|
/sbin/mpath_wait
|
2008-05-20 04:37:41 +00:00
|
|
|
/lib/libmultipath.so
|
|
|
|
/lib/multipath
|
|
|
|
/etc/rc.d/init.d/multipathd
|
|
|
|
%{_mandir}/man5/multipath.conf.5.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
|
2008-05-20 04:37:41 +00:00
|
|
|
%config /etc/udev/rules.d/40-multipath.rules
|
2005-12-17 03:27:44 +00:00
|
|
|
%config(noreplace) /etc/multipath.conf
|
2008-05-20 04:37:41 +00:00
|
|
|
%doc AUTHOR COPYING README* FAQ multipath.conf.annotated multipath.conf.defaults multipath.conf.synthetic
|
2007-01-15 23:41:05 +00:00
|
|
|
%dir /var/lib/multipath
|
2005-03-01 22:57:20 +00:00
|
|
|
|
2008-05-20 04:37:41 +00:00
|
|
|
|
2006-08-31 22:21:44 +00:00
|
|
|
%files -n kpartx
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/sbin/kpartx
|
|
|
|
%{_mandir}/man8/kpartx.8.gz
|
|
|
|
|
2005-03-01 22:57:20 +00:00
|
|
|
%changelog
|
2008-08-20 21:48:41 +00:00
|
|
|
* Wed Aug 20 2008 Benjamin Marzinski <bmarzins@redhat.com> 0.4.8-6
|
|
|
|
- Updated to latest upstream 0.4.8 code: multipath-tools-080804.tgz
|
|
|
|
(git commit id: eb87cbd0df8adf61d1c74c025f7326d833350f78)
|
|
|
|
- fixed 451817, 456397 (scsi_id_change.patch), 457530 (config_space_fix.patch)
|
|
|
|
457589 (static_libaio.patch)
|
|
|
|
|
2008-06-13 18:35:55 +00:00
|
|
|
* Fri Jun 13 2008 Alasdair Kergon <agk@redhat.com> - 0.4.8-5
|
|
|
|
- Rebuild (rogue vendor tag). (451292)
|
|
|
|
|
2008-05-20 06:30:55 +00:00
|
|
|
* Mon May 19 2008 Benjamin Marzinksi <bmarzins@redhat.com> 0.4.8-4
|
|
|
|
- Fixed Makefile issues.
|
|
|
|
|
2008-05-20 05:27:05 +00:00
|
|
|
* Mon May 19 2008 Benjamin Marzinksi <bmarzins@redhat.com> 0.4.8-3
|
|
|
|
- Fixed ownership build error.
|
|
|
|
|
2008-05-20 04:42:36 +00:00
|
|
|
* Mon May 19 2008 Benjamin Marzinksi <bmarzins@redhat.com> 0.4.8-2
|
|
|
|
- Forgot to commit some patches.
|
|
|
|
|
2008-05-20 04:37:41 +00:00
|
|
|
* Mon May 19 2008 Benjamin Marzinski <bmarzins@redhat.com> 0.4.8-1
|
|
|
|
- Updated to latest Upstream 0.4.8 code: multipath-tools-080519.tgz
|
|
|
|
(git commit id: 42704728855376d2f7da2de1967d7bc71bc54a2f)
|
|
|
|
|
2008-05-06 16:32:43 +00:00
|
|
|
* Tue May 06 2008 Alasdair Kergon <agk@redhat.com> - 0.4.7-15
|
|
|
|
- Remove unnecessary multipath & kpartx static binaries. (bz 234928)
|
|
|
|
|
2008-02-29 18:45:25 +00:00
|
|
|
* Fri Feb 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.7-14
|
|
|
|
- fix sparc64
|
|
|
|
- fix license tag
|
|
|
|
|
2008-02-19 12:57:26 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.7-13
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-11-14 21:19:40 +00:00
|
|
|
* Wed Nov 14 2007 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-12
|
|
|
|
- Fixed the dist tag so building will work properly.
|
|
|
|
|
2007-02-05 20:47:32 +00:00
|
|
|
* Mon Feb 05 2007 Alasdair Kergon <agk@redhat.com> - 0.4.7-11.fc7
|
|
|
|
- Add build dependency on new device-mapper-devel package.
|
|
|
|
- Add dependency on device-mapper.
|
|
|
|
|
2007-01-31 18:24:57 +00:00
|
|
|
* Wed Jan 31 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-10.fc7
|
|
|
|
- Update BuildRoot and PreReq lines.
|
|
|
|
|
2007-01-15 23:41:05 +00:00
|
|
|
* Mon Jan 15 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-9.fc7
|
|
|
|
- Fixed spec file.
|
|
|
|
|
2007-01-15 22:48:02 +00:00
|
|
|
* Mon Jan 15 2007 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-8.fc7
|
|
|
|
- Update to latest code (t0_4_7_head2)
|
|
|
|
|
2006-12-13 18:41:53 +00:00
|
|
|
* Wed Dec 13 2006 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-7.fc7
|
|
|
|
- Update to latest code (t0_4_7_head1)
|
|
|
|
|
2006-09-08 00:38:02 +00:00
|
|
|
* Thu Sep 7 2006 Peter Jones <pjones@redhat.com> - 0.4.7-5
|
|
|
|
- Fix kpartx to handle with drives >2TB correctly.
|
|
|
|
|
2006-08-31 22:21:44 +00:00
|
|
|
* Thu Aug 31 2006 Peter Jones <pjones@redhat.com> - 0.4.7-4.1
|
|
|
|
- Split kpartx out into its own package so dmraid can use it without
|
|
|
|
installing multipathd
|
|
|
|
- Fix a segfault in kpartx
|
|
|
|
|
2006-07-17 23:44:02 +00:00
|
|
|
* Mon Jul 17 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-4.0
|
|
|
|
- Updated to latest source. Fixes bug in default multipath.conf
|
|
|
|
|
2006-07-12 22:08:47 +00:00
|
|
|
* Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.1
|
|
|
|
- Added ncurses-devel to BuildRequires
|
|
|
|
|
2006-07-12 20:53:39 +00:00
|
|
|
* Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.0
|
|
|
|
- Updated to latest source. deals with change in libsysfs API
|
|
|
|
|
2006-07-12 05:35:44 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.4.7-2.2.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-07-12 20:53:39 +00:00
|
|
|
* Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.2
|
2006-07-10 22:50:04 +00:00
|
|
|
- fix tagging issue.
|
|
|
|
|
2006-07-10 22:33:48 +00:00
|
|
|
* Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.1
|
|
|
|
- changed BuildRequires from sysfsutils-devel to libsysfs-devel
|
|
|
|
|
2006-06-28 22:20:47 +00:00
|
|
|
* Wed Jun 28 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.0
|
|
|
|
- Updated to latest upstream source, fixes kpartx udev rule issue
|
|
|
|
|
2006-06-06 21:27:31 +00:00
|
|
|
* Mon Jun 06 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-1.0
|
|
|
|
- Updated to Christophe's latest source
|
|
|
|
|
2006-05-22 15:10:25 +00:00
|
|
|
* Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-16.0
|
|
|
|
- Newer upstream source (t0_4_5_post59).
|
|
|
|
|
2006-05-22 14:34:16 +00:00
|
|
|
* Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-12.3
|
|
|
|
- BuildRequires: libsepol-devel, readline-devel
|
|
|
|
|
2006-02-27 18:05:22 +00:00
|
|
|
* Mon Feb 27 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.5-12.2
|
|
|
|
- Prereq: chkconfig
|
|
|
|
|
2006-02-20 12:05:35 +00:00
|
|
|
* Mon Feb 20 2006 Karsten Hopp <karsten@redhat.de> 0.4.5-12.1
|
|
|
|
- BuildRequires: libselinux-devel
|
|
|
|
|
2006-02-11 02:25:14 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-12.0.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-10 00:40:15 +00:00
|
|
|
* Tue Feb 07 2006 Benjamin Marzinski <bmarzins@redhat.com> -0.4.5-12.0
|
|
|
|
- Updated to latest upstream source (t0_4_5_post56)
|
|
|
|
|
2006-02-07 11:22:54 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-9.1.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-19 17:30:31 +00:00
|
|
|
* Mon Dec 19 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.1
|
|
|
|
- added patch for fedora changes
|
|
|
|
|
|
|
|
* Fri Dec 16 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.0
|
2005-12-17 03:27:44 +00:00
|
|
|
- Updated to latest upstream source (t)_4_5_post52)
|
|
|
|
|
2005-12-09 22:40:11 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
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.
|