Commit Graph

231 Commits

Author SHA1 Message Date
Jes Sorensen
34d880fc4c Launch mdmon via systemctl to avoid it ending up in the wrong cgroup
Resolves bz879327

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-01-21 14:42:51 +01:00
Jes Sorensen
d047b34df2 Fix code to make mdmon leave the udev cgroup correctly
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-01-08 16:35:00 +01:00
Jes Sorensen
4335bd6f0f Add missing changelog entry for 3.2.6-10
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-01-08 16:32:44 +01:00
Jes Sorensen
157ee38ddb Fix mdmonitor-takeover.service dangling symlink for real this time
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-01-07 17:50:35 +01:00
Jes Sorensen
fe785fe1f6 Reintroduce fix for dangling systemd symlink for mdmonitor-takeover.service
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-01-07 10:53:55 +01:00
Jes Sorensen
b1a4d82044 Remove mdmonitor-takeover.service
Resolves bz834245

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-01-04 16:56:10 +01:00
Jes Sorensen
5e97b2a025 Update version number for this build correctly
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-12-11 16:54:25 +01:00
Jes Sorensen
ca9ac096b5 Fix problem with failed disks in failed RAID volume not being removed
Resolves bz886123

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-12-11 16:50:43 +01:00
Jes Sorensen
6093eddf83 Obsolete mdadm-sysvinit as we no longer support sysvinit booting
Resolves bz#884993

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-12-10 18:39:38 +01:00
Jes Sorensen
ef87d82060 Fix typo in error message in fix for 880972. No functional changes
Resolves bz880972

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-12-10 18:05:19 +01:00
Jes Sorensen
bbba7e024c Fix two IMSM bugs
- Disallow creating a second IMSM RAID array size 0 (bz880972)
- Disallow creating IMSM RAIDs that spans multiple controllers (bz880974)

Resolves bz880972, bz880974

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-11-30 17:52:41 +01:00
Jes Sorensen
d631eadf39 Only apply cgroups workaround on Fedora 18 and higher
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-11-30 16:31:39 +01:00
Doug Ledford
14c7631f2d Try to resolve cgroup issue
Udev wants us to not start mdmon under its cgroup (it kills mdmon if we
leave it in udev's cgroup), so as part of the mdmon startup process, set
the child process to be part of the systemd cgroup instead.  However, if
we don't have cgroups, or there is no systemd cgroup, then just silently
move on.

Signed-off-by: Doug Ledford <dledford@redhat.com>
2012-11-15 17:15:05 -05:00
Jes Sorensen
5fca48bd6d Upgrade to mdadm-3.2.6
Resolves bz#869930

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-25 11:03:41 +02:00
Jes Sorensen
41680b0eaa Bump revision to work around bodhi breakage
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-19 18:18:37 +02:00
Jes Sorensen
70a5b98ce5 Relax requirements for abrt script to depend on just libreport-filesystem
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-19 10:28:46 +02:00
Jes Sorensen
eb7fecee11 Add abrt script to retrieve /proc/mdstat output in case of crash
Resolves bz#867842

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-18 14:49:42 +02:00
Jes Sorensen
dee78ce96b Remove package requirements for udev and initscripts for F18+
Resolves bz#864562

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-17 12:11:07 +02:00
Jes Sorensen
7a29d2e669 dummy update - bump release to match f15/f16
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-17 11:57:25 +02:00
Jes Sorensen
50f2b3362c Resolve issue with ambiguous licenses
This resolves bz#862761

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-10-03 15:50:44 +02:00
Jes Sorensen
6e6b5143a1 Switch to new systemd macros for F18+
Resolves bz850202

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-09-10 10:05:43 +02:00
Jes Sorensen
ddb12f7a60 Remove bogus rogue patch applied in 3.2.5-5 with justification and
without following the structure of the mdadm package.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-08-07 20:02:53 +02:00
Dennis Gilmore
d0e7bf320d Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-27 00:53:16 -05:00
Karsten Hopp
8233a5a683 include <linux/types.h> in some to avoid type clashes.
same problem as rhbz #840902
2012-07-18 16:47:43 +02:00
Jes Sorensen
d4500164ba Move /etc/tmpfiles.d/mdadm.conf to /lib/tmpfiles.d/
Resolves bz840187

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-07-16 13:34:18 +02:00
Jes Sorensen
44f4b5d516 Bugfix release:
- Fix problem where reshape of RAID volume is broken after trying to
  stop all MD devices.
- Enhance raid-check to allow the adming to specify the max number of
  concurrent arrays to be checked at any given time.
- Resolves bz830177, bz820124

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-06-25 19:47:51 +02:00
Jes Sorensen
d45e40da1b Fix uninstall script to remove dangling symlink
This fix removes a dangling symlink to mdmonitor-takeover.service, if
the mdadm package is uninstalled from the system.

Resolves bz828354

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-06-13 17:57:26 +02:00
Jes Sorensen
96e611c399 Update to mdadm-3.2.5
Resolves: bz#822850

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-05-21 13:04:33 +02:00
Jes Sorensen
aa53f3daa8 Fix mdadm-3.2.4 introduced bug where --add fails in common cases
Resolves: bz821717 (f17) bz821718 (f16) bz821719 (f15)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-05-15 14:30:56 +02:00
Jes Sorensen
d8666fccff Fix mdadm.conf to use 'd' for /var/run/mdadm creation, to avoid the map file getting deleted during boot.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-05-10 14:08:42 +02:00
Jes Sorensen
76ff773cd6 Upgrade to mdadm-3.2.4
Resolves: bz820534 (rawhide) bz820527 (f17) bz820531 (f16) bz820532 (f15)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-05-10 13:08:42 +02:00
Jes Sorensen
6148d71c1d Fix a large number of bzs:
- Fix Monitor mode sometimes crashes when a resync completes
- Fix missing symlink for mdadm container device when incremental creates
  the array
- Make sure when creating a second array in a container that the second
  array uses all available space since leaving space for a third array
  is invalid
- Validate the number of imsm volumes per controller
- Fix issues with imsm arrays and disks larger than 2TB
- Add support for expanding imsm arrays/containers
- The support for expanding imsm arrays/containers was accepted upstream,
  update to the official patches from there
- Fix for the issue of --add not being very smart
- Fix an issue causing rebuilds to fail to restart on reboot (data
  corrupter level problem)
- Reset the bad flag on map file updates
- Correctly fix failure when trying to add internal bitmap to 1.0 arrays
- Resolves: bz817023 (f17) bz817024 (f17) bz817026 (f17) bz817028 (f17)
- Resolves: bz817029 (f17) bz817032 (f17) bz817038 (f17) bz808774 (f17)
- Resolves: bz817039 (f17) bz817042 (f17)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-04-30 17:50:18 +02:00
Jes Sorensen
4ac0f8fa3e Fix bug where IMSM arrays stay inactive in case of reboot during reshape
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-04-30 14:29:26 +02:00
Jes Sorensen
71165988bf Fix issue when re-adding drive to a raid1 array with bitmap
Resolves: bz807743 (f17) bz769323 (f16) bz791159 (f15)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-03-28 17:24:12 +02:00
Jes Sorensen
e2bea3e210 Fix a double free and a segfault bug
Fix double free on buggy old kernel sysfs read
Fix segfault if trying to write superblock to non existing device
Resolves: bz795707 (f17) bz795747 (f16) bz795748 (f15)
Resolves: bz795461 (f17) bz795749 (f16) bz795750 (f15)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-02-23 11:19:49 +01:00
Jes Sorensen
15adacde4b Fix failure of devices refusing to add to raids using bitmaps
This fixes an issue with devices failing to be added to a raid using
bitmaps, due to trying to write the bitmap with mis-aligned buffers
using O_DIRECT

Resolves bz789898 (f16) bz791189 (f15)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-02-16 13:43:22 +01:00
Jes Sorensen
c68d736ff4 Backport --offroot patches from upstream
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-01-30 17:05:23 +01:00
Jes Sorensen
9d26a69f72 Make sure to retry in case a remove fails due to an array being busy
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-01-12 13:39:08 +01:00
Jes Sorensen
531f600e0a Fix gcc-4.7 build breakage
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-01-05 14:21:58 +01:00
Jes Sorensen
09420a0c0f Update to mdadm-3.2.3
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2012-01-04 11:16:25 +01:00
Jes Sorensen
82fbb33bf7 Backport memory leak fix for RAID5, and fix for mounting device during reshape
Resolves: bz755005 bz755009

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2011-11-21 17:01:10 +01:00
Jes Sorensen
d01dbca186 Fix problem with 0.9 metadata and > 2TB drives + systemd script fix
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2011-11-09 17:58:29 +01:00
Dennis Gilmore
06636a8bfc - Rebuilt for glibc bug#747377 2011-10-26 19:12:54 -05:00
Jes Sorensen
3010f9bec6 Backport proper upstream version of fix for IMSM RAID assembly problem,
which resolves issues when booting off sysvinit based system.

Resolves: bz736387 (Fedora 15) bz744217 (Fedora 16)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2011-10-22 10:58:41 +02:00
Jes Sorensen
2e29e0e588 Fix dependency problem in mdmonitor-takeover.service
This fixes bz741115 (F16) bz744226 (rawhide)

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2011-10-19 18:49:23 +02:00
Jes Sorensen
6c5cfe0908 Fix problem with IMSM raid not being started correctly during boot
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2011-10-19 16:46:54 +02:00
Doug Ledford
c6a442ba3e Fix failed boot
Older imsm arrays, or arrays created by something other than mdadm,
might have one of two unused bits in the attributes field set.  If
they do, we need to ignore them, not fail to assemble the array.

Signed-off-by: Doug Ledford <dledford@redhat.com>
(cherry picked from commit 22ef59a98600f5900f957e2a0bdc16139aa528da)
2011-08-31 15:59:46 -04:00
Doug Ledford
6ffc771fa2 mdadm: fix udev incremental assembly rules file
Added support for nested md devices, md on top of LVM devices such as
encrypted partitions (although I don't recommend that, I recommend
encrypting the md device instead), and support for md devices on top
of multipath dm devices.

Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-08-25 15:24:06 -04:00
Doug Ledford
cd8bc2a97a A couple minor bugfixes 2011-07-27 14:43:27 -04:00
Doug Ledford
58e33d8227 Bump and rebuild to stay ahead of f15 again
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-07-18 13:02:16 -04:00
Doug Ledford
36bc21a4c0 Simple bump and rebuild to keep the version ahead of the f15 version
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-07-15 14:11:34 -04:00
Doug Ledford
40a50da058 Update the default superblock type when passing just '1' in the man page
as it was incorrect according to the man page versus what was actually
happening.
2011-07-14 20:28:36 -04:00
Milan Broz
d00f539784 Use unit files with systemd. (thanks to johannbg)
Add sub-package sysvinit for SysV init script.
Resolves: bz713573
2011-07-07 13:42:10 +02:00
Milan Broz
b979607a1c Fix build on PPC.
Resolves: bz719379
2011-07-06 15:27:18 -04:00
Milan Broz
6a0405ae85 Update to latest upstream version
Resolves: bz714083
2011-06-28 19:24:00 +02:00
Doug Ledford
430833937e Fix for uname version update (bz710646)
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-06-14 15:26:25 -04:00
Doug Ledford
e7f10cb663 Somehow the 64-md-raid.rules file went missing. Put it back.
Resolves: bz692248
2011-03-31 13:04:21 -04:00
Doug Ledford
43ea33bd96 Fix SELinux directory perms in mdmonitor init script
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-31 12:33:07 -04:00
Doug Ledford
a1a27cff98 Restore the build command in the spec file to a normal one
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-28 12:24:56 -04:00
Doug Ledford
111113da02 More fixes for uninitialized variable usage
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-28 11:34:48 -04:00
Doug Ledford
87aedf51a9 Fix up the param patch and renumber n-v-r
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-28 11:22:21 -04:00
Doug Ledford
0278b6d64f Update to latest upstream release
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-28 10:27:34 -04:00
Doug Ledford
47d1109592 Fix compile issues on build system
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-26 13:39:20 -04:00
Doug Ledford
7d8ba69d0d Update to latest stable upstream release, resolve multiple outstanding
bugzillas against F15.

Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-03-25 17:05:48 -04:00
Dennis Gilmore
bd6cba269b - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 10:24:46 -06:00
Doug Ledford
73d2cf2972 Merge remote branch 'origin/f13/master'
Conflicts:
	.gitignore
	mdadm-2.5.2-static.patch
	mdadm.rules
	mdadm.spec
	sources
2010-08-04 17:04:17 -04:00
Doug Ledford
0167dcdf9a * Wed Aug 04 2010 Doug Ledford <dledford@redhat.com> - 3.1.3-0.git20100804.2
- Add udev patch to not have incremental assembly in two rules files
2010-08-04 11:29:22 -04:00
Doug Ledford
abe95e800b * Wed Aug 04 2010 Doug Ledford <dledford@redhat.com> - 3.1.3-0.git20100804.2
- Add udev patch to not have incremental assembly in two rules files
2010-08-04 11:23:45 -04:00
Doug Ledford
a6b97325ff * Wed Aug 04 2010 Doug Ledford <dledford@redhat.com> - 3.1.3-0.git20100804.1
- Update to latest upstream release (resolves an issue with stale lock
  files on the md device map file)
2010-08-04 10:47:50 -04:00
Doug Ledford
7996d70593 - Remove the glibc-static buildreq and don't build the static mdadm since
we don't install it anyway
- Remove the udev file since adding it was supposed to be a rawhide only
    change
2010-07-22 16:42:56 +00:00
Doug Ledford
d614064a7a - Comment out the incremental assembly rules from the main udev rule file
so we can control it in our own incremental assembly specific rule file
- Don't build the static package, we don't install it, also remove the
    glibc-static buildreq
2010-07-22 16:24:11 +00:00
Doug Ledford
337638c822 - Change git date format to the correct format (YYYYMMDD)
- Update to latest upstream push (fixes bz604023)
2010-07-22 14:57:44 +00:00
Doug Ledford
fda5bdd37a - Change git date format to the correct format (YYYYMMDD)
- Update to latest upstream push (fixes bz604023)
2010-07-22 14:55:56 +00:00
Doug Ledford
7b2267d85b - Fix racy locking of mapfile (bz600900) 2010-07-20 22:01:40 +00:00
Doug Ledford
adf9d7af43 - Fix racy locking of mapfile (bz616596) 2010-07-20 21:51:06 +00:00
Doug Ledford
8808fe53de - Update to latest git repo (3.1.2 plus pending changes, fixes bz602457)
- Add in 64-md-raid.rules to compensate for it no longer being in udev
    (bz581905)
- Remove mdadm.static as its no longer used in initrd creation
2010-07-20 16:57:55 +00:00
Doug Ledford
91d87d269f - Update to latest git repo (3.1.2 plus pending changes, fixes bz602457)
- Add in 64-md-raid.rules to compensate for it no longer being in udev
    (bz581905)
- Remove mdadm.static as its no longer used in initrd creation
2010-07-20 16:45:36 +00:00
Doug Ledford
03abcff039 - Minor update to mdadm.rules to make anaconda happy 2010-04-13 23:24:07 +00:00
Doug Ledford
e0d3e8aae9 - Minor update to mdadm.rules to make anaconda happy 2010-04-13 23:18:29 +00:00
Doug Ledford
d6f29f1fb8 - Slight fix on container patch 2010-04-08 21:35:32 +00:00
Doug Ledford
55a63e9bdf - Slight fix on container patch 2010-04-08 21:35:28 +00:00
Doug Ledford
2d6de14b74 - Updated container patch that also enables mdadm -IRs for imsm devices 2010-04-08 20:57:35 +00:00
Doug Ledford
a2b3d7f053 - Fix up directory in mdmonitor init script so that we restart mdmon like
we are supposed to
- Add a rule to run incremental assembly on containers in case there are
    multiple volumes in a container and we only started some of them in the
    initramfs
- Make -If work with imsm arrays. We had too restrictive of a test in
    sysfs_unique_holder.
- Make incremental assembly of containers act like incremental assembly of
    regular devices (aka, --run is needed to start a degraded array)
2010-04-08 17:09:28 +00:00
Doug Ledford
f44c832cb2 - Fix up directory in mdmonitor init script so that we restart mdmon like
we are supposed to
- Add a rule to run incremental assembly on containers in case there are
    multiple volumes in a container and we only started some of them in the
    initramfs
- Make -If work with imsm arrays. We had too restrictive of a test in
    sysfs_unique_holder.
- Make incremental assembly of containers act like incremental assembly of
    regular devices (aka, --run is needed to start a degraded array)
2010-04-08 16:55:45 +00:00
Doug Ledford
f2098b61d7 - Fix up directory in mdmonitor init script so that we restart mdmon like
we are supposed to
- Add a rule to run incremental assembly on containers in case there are
    multiple volumes in a container and we only started some of them in the
    initramfs
- Make -If work with imsm arrays. We had too restrictive of a test in
    sysfs_unique_holder.
2010-04-07 14:51:17 +00:00
Doug Ledford
01d2c9db17 - Typo in new rules file 2010-04-07 00:17:01 +00:00
Doug Ledford
79e72e66fd - Enable incremental support for imsm devices 2010-04-06 21:59:00 +00:00
Doug Ledford
ff435833ff - One line fix for ppc64 compiles 2010-04-06 18:18:45 +00:00
Doug Ledford
efe92bcae0 - Clean up directory mess once and for all
- Add incremental remove support
2010-04-06 16:45:46 +00:00
Doug Ledford
1a750b7679 - Clean up directory mess once and for all
- Add incremental remove support
2010-04-06 16:32:12 +00:00
Doug Ledford
114a7df1cb - Grab latest upstream release instead of git repo snapshot (bz552344,
bz572561)
- The lack of /dev/md is causing problems, so add code to mapfile.c to
    cause us to create /dev/md if it doesn't exist (bz569019)
2010-03-17 03:34:43 +00:00
Doug Ledford
877588c610 - Newer version of imsm patch that leaves warning, but only when there
actually are too many devices on the command line (bz554974)
2010-02-23 14:53:10 +00:00
Doug Ledford
fd9c51472d - Newer version of imsm patch that leaves warning, but only when there
actually are too many devices on the command line (bz554974)
2010-02-23 14:51:42 +00:00
Doug Ledford
20929c0606 - The uuid patch cause a different problem during assembly, so use a gross
hack to work around the uuid issue that won't break assembly until
    fixed properly upstream (bz567132)
2010-02-22 00:28:48 +00:00
Doug Ledford
3bb9c33abd - The uuid patch cause a different problem during assembly, so use a gross
hack to work around the uuid issue that won't break assembly until
    fixed properly upstream (bz567132)
2010-02-22 00:26:22 +00:00
Doug Ledford
b370167f46 - Fix problem with booting multiple imsm containers when they aren't listed
"just so" in the mdadm.conf file (bz554974)
2010-02-21 15:33:20 +00:00
Doug Ledford
6a8463e3ea - Fix problem with booting multiple imsm containers when they aren't listed
"just so" in the mdadm.conf file (bz554974)
2010-02-21 15:17:14 +00:00
Doug Ledford
6aac98e8e7 - Don't run the raid-check script if the kernel doesn't support md devices
(bz557053)
- Don't report any mismatch_cnt issues on raid1 devices as there are
    legitimate reasons why the count may not be 0 and we are getting enough
    false positives that it renders the check useless (bz554217, bz547128)
2010-02-19 23:54:16 +00:00
Doug Ledford
5a027cad75 - Don't run the raid-check script if the kernel doesn't support md devices
(bz557053)
- Don't report any mismatch_cnt issues on raid1 devices as there are
    legitimate reasons why the count may not be 0 and we are getting enough
    false positives that it renders the check useless (bz554217, bz547128)
2010-02-19 19:24:53 +00:00
Doug Ledford
25ef040df7 - Fix s390/ppc64 UUID byte swap issue 2010-02-18 18:02:36 +00:00