Fix problem with failed disks in failed RAID volume not being removed
Resolves bz886123 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
parent
6093eddf83
commit
ca9ac096b5
12
mdadm.rules
12
mdadm.rules
@ -26,8 +26,12 @@ ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="md_end"
|
|||||||
# array members either)
|
# array members either)
|
||||||
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \
|
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \
|
||||||
RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
||||||
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_FS_TYPE}=="linux_raid_member", \
|
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}=="?*", \
|
||||||
|
ENV{ID_FS_TYPE}=="linux_raid_member", \
|
||||||
RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
||||||
|
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}!="?*", \
|
||||||
|
ENV{ID_FS_TYPE}=="linux_raid_member", \
|
||||||
|
RUN+="/sbin/mdadm -If $name"
|
||||||
|
|
||||||
# Next, check to make sure the BIOS raid stuff wasn't turned off via cmdline
|
# Next, check to make sure the BIOS raid stuff wasn't turned off via cmdline
|
||||||
IMPORT{cmdline}="noiswmd"
|
IMPORT{cmdline}="noiswmd"
|
||||||
@ -36,8 +40,12 @@ ENV{noiswmd}=="?*", GOTO="md_imsm_inc_end"
|
|||||||
ENV{nodmraid}=="?*", GOTO="md_imsm_inc_end"
|
ENV{nodmraid}=="?*", GOTO="md_imsm_inc_end"
|
||||||
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="isw_raid_member", \
|
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="isw_raid_member", \
|
||||||
RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
||||||
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_FS_TYPE}=="isw_raid_member", \
|
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}=="?*", \
|
||||||
|
ENV{ID_FS_TYPE}=="isw_raid_member", \
|
||||||
RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
||||||
|
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}!="?*", \
|
||||||
|
ENV{ID_FS_TYPE}=="isw_raid_member", \
|
||||||
|
RUN+="/sbin/mdadm -If $name"
|
||||||
LABEL="md_imsm_inc_end"
|
LABEL="md_imsm_inc_end"
|
||||||
|
|
||||||
# Next make sure that this isn't a dm device we should skip for some reason
|
# Next make sure that this isn't a dm device we should skip for some reason
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: The mdadm program controls Linux md devices (software RAID arrays)
|
Summary: The mdadm program controls Linux md devices (software RAID arrays)
|
||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 3.2.6
|
Version: 3.2.6
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
||||||
Source1: mdmonitor.init
|
Source1: mdmonitor.init
|
||||||
Source2: raid-check
|
Source2: raid-check
|
||||||
@ -160,6 +160,13 @@ rm -rf %{buildroot}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 10 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.6-5
|
||||||
|
- Fix issue with udev scripts where if an raid volume with one of
|
||||||
|
the disks failing, the failed disk is still present in the volume
|
||||||
|
and container. The raid volume stays is in normal state (should be
|
||||||
|
degraded) and the rebuild cannot start.
|
||||||
|
- Resolves bz886123
|
||||||
|
|
||||||
* Mon Dec 10 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.6-5
|
* Mon Dec 10 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.6-5
|
||||||
- mdadm-sysvinit is obsolete given that we no longer support booting
|
- mdadm-sysvinit is obsolete given that we no longer support booting
|
||||||
using sysvinit scripts
|
using sysvinit scripts
|
||||||
|
Loading…
Reference in New Issue
Block a user