Commit Graph

26 Commits

Author SHA1 Message Date
Julian Sikorski
3665f77990 Fix invalid substitution type error
Resolves bz1740662, bz1749859
2019-12-15 11:36:15 +01:00
Adam Williamson
f8c5cc46d4 Fix DM_MULTIPATH_DEVICE_PATH check in mdadm.rules (#1628192)
This value can be explicitly set to 0 (meaning 'not a multipath
device'). The check as currently written will match on this, as
it just matches absolutely any one or more characters at all,
including 0. Fix the check to only look for '1', the value that
indicates the device is multipath. This is the same as how
68-del-part-nodes.rules and 69-dm-lvm-metad.rules do it.

Resolves: bz1628192

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-09-13 15:46:35 -07:00
Xiao Ni
89f3275e06 Fix degraded raid1 array becomes inactive after rebooting
Resolves: bz#1337004

Signed-off-by: Xiao Ni <xni@redhat.com>
2016-05-31 09:43:21 +08:00
Jes Sorensen
0a54d98388 Fix race when assembling or stopping IMSM RAID arrays
Resolves: bz#1268955

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2015-10-22 12:31:52 -04:00
Jes Sorensen
5901b88a33 Revert "Make mdadm.rules honor 'change' events"
This reverts commit e77c97f845.

Acting on change events has side affects I hadn't taken into
account. While upstream does it per default, this requires more
testing before we do this in Fedora.
2014-06-12 09:04:38 +02:00
Jes Sorensen
e77c97f845 Make mdadm.rules honor 'change' events
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2014-06-10 13:35:15 +02:00
Jes Sorensen
a73c68d519 Use DM_UDEV_DISABLE_OTHER_RULES_FLAG in rules files
Resolves bz1015514

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
2013-10-09 16:28:38 +02: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
Doug Ledford
fd5690991d Fix minor issue in last patch
Signed-off-by: Doug Ledford <dledford@redhat.com>
2011-08-25 15:30:10 -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
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
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
03abcff039 - Minor update to mdadm.rules to make anaconda happy 2010-04-13 23:24:07 +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
1a750b7679 - Clean up directory mess once and for all
- Add incremental remove support
2010-04-06 16:32:12 +00:00
Doug Ledford
e4f4111870 - Slightly tweak the udev rules to make sure we don't start arrays while
running in rc.sysinit...leave array starting to it instead
- Modify mdadm to put its mapfile in /dev/md instead of /var/run/mdadm
    since at startup /var/run/mdadm is read-only by default and this breaks
    incremental assembly
- Change how mdadm decides to assemble incremental devices using their
    preferred name or a random name to avoid possible conflicts when
    plugging a foreign array into a host
2009-03-20 21:13:38 +00:00
Doug Ledford
f37e19d541 - Change around the mdadm udev rules we ship to avoid a udev file conflict 2009-03-18 18:55:49 +00:00
Doug Ledford
67385865bb - Update to latest devel release
- Remove the no longer necessary udev patch
- Remove the no longer necessary warn patch
- Remove the no longer necessary alias patch
- Update the mdadm.rules file to only pay attention to device adds, not
    changes and to enable incremental assembly
- Add a cron job to run a weekly repair of the array to correct bad sectors
- Resolves: bz474436, bz490972
2009-03-18 18:25:56 +00:00
Doug Ledford
4709789787 - Readd our old mdadm rules file that does incremental assembly
- Remove the new mdadm rules file from upstream as we already have this in
    our udev package (and the one in the udev package already has a bug
    fixed)
2009-02-19 21:11:13 +00:00
Doug Ledford
e48e5efc33 - Update to latest upstream devel release
- Use the udev rules file included with mdadm instead of our own
- Drop all the no longer relevant patches
- Fix a build error in mdopen.c
- Fix the udev rules path in Makefile
2009-02-12 15:40:59 +00:00
Doug Ledford
7e22e636df - Updated to latest upstream stable release (#466803)
- Change udev rule to not assemble degraded arrays (#453314)
- Fix metadata matching in config file (#466078)
- Fix assembly of raid10 devices (#444237)
- Fix incremental assembly of partitioned raid devices (#447818)
2008-10-29 18:31:10 +00:00
Doug Ledford
a8863c5bdb - Update to latest upstream version (should resolve #444237)
- Drop incremental patch as it's now part of upstream
- Clean up all the open() calls in the code (#437145)
- Fix the build process to actually generate mdassemble (#446988)
- Update the udev rules to get additional info about arrays being assembled
    from the /etc/mdadm.conf file (--scan option) (#447818)
- Update the udev rules to run degraded arrays (--run option) (#452459)
2008-06-26 23:48:40 +00:00
Bill Nottingham
8ef1ac1e07 - add a udev rules file for device assembly (#429604) 2008-02-01 22:01:46 +00:00