Summary: The mdadm program controls Linux md devices (software RAID arrays) Name: mdadm Version: 4.0 Release: 13%{?dist} Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz Source1: mdmonitor.init Source2: raid-check Source3: mdadm.rules Source4: mdadm-raid-check-sysconfig Source5: mdadm-cron Source6: mdmonitor.service Source7: mdadm.conf Source8: mdadm_event.conf Patch1: Makefile-Fix-date-to-be-output-in-ISO-format.patch Patch2: imsm-fix-missing-error-message-during-migration1.patch Patch3: Fix-oddity-where-mdadm-did-not-recognise-a-relative-.patch Patch4: mdadm-fix-typo1-in-comment.patch Patch5: mdadm-check-the-nodes-when-operate-clustered1-array.patch Patch6: examine-tidy-up-some-code.patch Patch7: add-man-page-for-symlinks.patch Patch8: mdadm-add-checking-clustered2-bitmap-in-assemble-mode.patch Patch9: mdadm-Add-Wimplicit-fallthrough-0-in-Makefile.patch Patch10: specify-enough-length-when-write-to-buffer.patch Patch11: mdadm-fixed-some-trivial-typos-in-comments-of-mdadm.patch Patch12: mdadm-it-doesn-t-make-sense-to-set-bitmap-twice.patch Patch13: mdadm-mdmon-deleted-the-abort_reshape-never-invoked.patch Patch14: mdadm-Monitor-Fix-NULL-pointer-dereference-when-stat.patch Patch15: Replace-snprintf-with-strncpy-at-some-places-to-avoi.patch Patch16: mdadm-Forced-type-conversion-to-avoid-truncation.patch Patch17: super1-ignore-failfast-flag-for-setting-device-role.patch Patch18: mdadm-bitmap-fixed-typos-in-comments1-of-bitmap.h.patch Patch19: udev-md-raid-assembly.rules-Skip-non-ready-devices.patch Patch20: Retry-HOT_REMOVE_DISK-a-few-times.patch Patch21: mdadm-Build1-check-the-level-parameter-when-build-new.patch Patch22: Introduce1-sys_hot_remove_disk.patch Patch23: Add-force-flag1-to-hot_remove_disk.patch Patch24: Detail-handle-non-existent-arrays-better.patch Patch25: generic-support-for-consistency-policy-and-PPL.patch Patch26: detail-show-consistency-policy.patch Patch27: imsmppl-support.patch Patch28: super1ppl-support.patch Patch29: add-ppl-and-no-ppl-options-for-update.patch Patch30: support-consistency-policy1-change.patch Patch31: mdadm.h-struct-mdinfo-reorganize-ppl-elements-for-be.patch Patch32: super1-replace-hard-coded-values-with-bit-definition.patch Patch33: mdadm-Clean-up-some-ugly-multiple-actions-on-single-.patch Patch34: mdadm-Fixup-a-number-of-whitespace-inconsistency-cas.patch Patch35: util-Cosmetic-changes.patch Patch36: Grow-Fixup-a-pile-of-cosmetic-issues.patch Patch37: util-Introduce2-md_get_array_info.patch Patch38: Incremental-Remove-redundant-call-for-GET_ARRAY_INFO.patch Patch39: util-Introduce3-md_get_disk_info.patch Patch40: util-Introduce4-md_set_array_info.patch Patch41: md_u-Remove-some-unused-ioctl-declarations.patch Patch42: Grow-Remove-unnecessary-optimization.patch Patch43: Grow-Do-not-shadow-an-existing-variable.patch Patch44: mdadm-grow-reshape-would1-be-stuck-from-raid1-to-raid.patch Patch45: imsm-use-rounded-size-for-metadata-initialization.patch Patch46: mdadm.c-fix-compile-error-switch-condition-has-boole.patch Patch47: sysfs-Use-the-presence-of-sys-block-dev-md-as-indica.patch Patch48: sysfs-Make-sysfs_init-return-an-error-code.patch Patch49: mdadm-Create-declaring1-an-existing-struct-within-sam.patch Patch50: Create-Fixup-bad-placement-of-logical-in-multi-line-.patch Patch51: Create-Fixup-various-whitespace-issues1.patch Patch52: util-must_be-container1-Use-sysfs_read-GET_VERSION-to.patch Patch53: util-set_array_info-Simplify-code-since-md_get-versi.patch Patch54: Assemble-Assemble-Stop-checking-kernel-md-driver-ver.patch Patch55: Build2-Stop-bothering-about-supporting-md-driver-olde.patch Patch56: Grow-Stop-bothering-about-md-driver-versions-older-t.patch Patch57: Detail-Stop-bothering1-about-md-drivers-older-than-0..patch Patch58: Create-Remove-all-attemps-to-handle-md-driver-older-.patch Patch59: Manage-Remove-all-references1-to-md_get_version.patch Patch60: Query-Remove-all-references-to-md_get_version.patch Patch61: bitmap-Remove-use-of-md-get-version1.patch Patch62: mdmon-Stop-bothering-about-md-get-version2.patch Patch63: mdopen-open_mddev-Use-md_get_array_info-to-determine1.patch Patch64: mdassemble-Use-md_get_array_info-to-check-for-valid-.patch Patch65: Assemble-Assemble-Get-rid-of-last-use-of-md_get-vers.patch Patch66: util-Finally-kill-off-md_get_version.patch Patch67: mdadm-Fail-for-kernels-older-than-2.6.15.patch Patch68: mdadm.c-fix-compile-warning-mdfd-is-uninitialized.patch Patch69: Revert-mdadm-grow-reshape-would-be-stuck-from-raid1-.patch Patch70: Retire-mdassemble.patch Patch71: super1-Clean-up-various-style-abuses.patch Patch72: mdopen-use-parameters-new_array-to-create-arrays-whe.patch Patch73: mdadm-manpage-update-manpage-for-readonly-parameter.patch Patch74: mdadm-manpage-clustered3-arrays-don-t-support-array-s.patch Patch75: Assemble-Clean1-up-start_array.patch Patch76: Detail-Remove-pre-2.6-code-for-printing-info-on-rebu.patch Patch77: Assemble-Remove-obsolete-test-for-kernels1-older-than.patch Patch78: Detail-Fixup-ugly-if-foo-abuse.patch Patch79: Query-Handle-error-returned-by-fstat.patch Patch80: Query-Use-sysfs-to-obtain-data-if-possible.patch Patch81: sysfs-Parse-array_state-in-sysfs_read.patch Patch82: util-Introduce6-md_array_active-helper.patch Patch83: maps-Terminate-modes-map-correctly.patch Patch84: maps-Use-keyvalue-for-null-terminator-to-indicate-un.patch Patch85: util-Get-rid-of-unused-enoughfd.patch Patch86: mdadm-retire-mdassemble-in-make-everything.patch Patch87: Grow_continue_command-ensure-content-is-properly-ini.patch Patch88: systemd-mdadm-last-resort-use-ConditionPathExists-in.patch Patch89: Detail-ensure-export-names-are-acceptable-as-shell-v.patch Patch90: Query-Quiet-gcc-since-it-cannot-know-errno-0-in-this.patch Patch91: Makefile-Default-to-O2-optimization1.patch Patch92: maps-Remove-incorrect-comment-about-strcmp.patch Patch93: maps-Simplify-implementation-of-map_name.patch Patch94: Don-t-use-UnSet-with-consistency_policy.patch Patch95: Detail-determine2-array-state-from-sysfs.patch Patch96: Detail-Respect-code-lines-are-80-character-wide.patch Patch97: Detail-Reinstate-support-for-not-having-sysfs.patch Patch98: Incremental-Use-md_array_active-where-applicable.patch Patch99: Incremental-Cleanup-some-if-statement-spaghetti.patch Patch100: Create-tell-udev-md-device-is-not-ready-when-first-c.patch Patch101: Incremental-Use-md_array_active-to-determine3-state-o.patch Patch102: Manage-Manage-ro-Use-md_array_active.patch Patch103: IMSM-Initialize-my_vol_raid_dev_num-during-vol-creat.patch Patch104: Grow-Grow_continue_command-Avoid-aliasing-array-vari.patch Patch105: change-back-0644-permission-for-Grow.c.patch Patch106: util-md_array_valid-Introduce5-md_array_valid-helper.patch Patch107: kernel-patch-Remove-obsolete-kernel-patches-against-.patch Patch108: mdassemble-Kill-off-the-last-remains.patch Patch109: mdadm-util-unify-fstat-checking-blkdev1-into-function.patch Patch110: mdadm-util-unify-stat-checking-blkdev-into-function.patch Patch111: Fix-typo2-in-new-udev-rule.patch Patch112: Incremental-returnis-not-a-function.patch Patch113: sysfs-sysfs_read-Count-activedisks-and-failed_disks.patch Patch114: container_members_max-degradation-Switch-to-using-sy.patch Patch115: IncrementalScan-Use-md_array_active-instead-of-mdge.patch Patch116: Mention-endian-in-documentation-for-update-byte-orde.patch Patch117: Monitor-Use-md_array_active-instead-of-manually-fidd.patch Patch118: Monitor-Code-is-80-characters-per-line.patch Patch119: mdadm-md.4-set-page-length-as-1000-to-avoid-warnings.patch Patch120: allow-drives-in-a-container-regardless-of-sector-size.patch Patch121: allocate-buffer-to-support-maximum-sector-size.patch Patch122: dont-allow-disks-with-different-sector-sizein-one.patch Patch123: Allow-more-spare-selection-criteria.patch Patch124: Add-sector-size-as-spare-selection-criterion.patch Patch125: Monitor-check_array-Centralize-exit-path.patch Patch126: Monitor-check_array-reduce-duplicated-error-handling.patch Patch127: Monitor-check_array-declate-mdinfo-instance-globally.patch Patch128: Monitor-check_array-Read-sysfs-entry-earlier.patch Patch129: Monitor-check_array-Obtain-RAID-level-fromsyfs.patch Patch130: Monitor-check_array-Get-faileddisks-from-sysfs.patch Patch131: Monitor-check_array-Get-arraydisks-from-sysfs.patch Patch132: Monitor-check_array-Get-nrdisks-active_disks-and-sp.patch Patch133: sysfs-sysfs_read-Count-workingdisks.patch Patch134: Monitor-checkarray-Use-working_disks-from-sysfs.patch Patch135: Correct-examine-output-for-4kdisks.patch Patch136: retire-the-APIs-that-driver-nolonger-supports.patch Patch137: Monitor-Not-much-point-declaring-mdlist-in-both-fork.patch Patch138: Monitor-mailfrom-is-initialized-correctly.patch Patch139: Monitor-Fixup-apile-of-whitespace-issues.patch Patch140: mdadm-Uninitialized-variable-rdev.patch Patch141: super-ddf-sysfs_read-takes-a-pointer-as-devicename-.patch Patch142: mdadm-Fixup-a-large-number-of-bad-formatting-of-logi.patch Patch143: mdadm-Fixup-morebroken-logical-operator-formatting.patch Patch144: mdadm-Fix-broken-formatting1.patch Patch145: mdadm-Fixup-broken-formatting2.patch Patch146: manpage-badblock-support-for-IMSM.patch Patch147: Detail-don-t-exit-if-ioctl-has-been-successful.patch Patch148: super1-fix-sb-max_dev-when-adding-a-new-disk-inline.patch Patch149: md_u-Remove-unused-ioctl-declaration-of-START_ARRAY.patch Patch150: Grow-set-component-size-prior-to-array-size.patch Patch151: Get-failed-disk-count-fromarray-state.patch Patch152: dont-allow-array-geometry-change-with-ppl-enabled.patch Patch153: dont-allow-to-enable-PPL-reshape-in-progress.patch Patch154: mdadm-test-Convert-code-formatto-use-Tab.patch Patch155: mdadm-test-Refactor-and-revamp-test-script.patch Patch156: mdadm-test-Add-raidtype-to-run-different-raidlevel-c.patch Patch157: mdadm-test-Add-disks-to-support-testing-phsical-devi.patch Patch158: Monitor-don-t-assume-mdadm-parameter-is-a-blockdevi.patch Patch159: super1-Always-round-data-offset-to-1M.patch Patch160: mdadm-r5cache-allow-adding-journal-to-array-without-.patch Patch161: Detail-correct-outputfor-active-arrays.patch Patch162: imsm-rebuild-from-2-disk-RAID10.patch Patch163: Error-messages-should-end-with-a-newline-character.patch Patch164: Use-correct-syntax-for-passing-DEVLINKS-to-mdadm-fro.patch Patch165: super1-only-set-clustered4-flag2-when-bitmap-is-presen.patch Patch166: Don-t-use-exit-ERANGE.patch Patch167: Monitor-containers-don-t-have-the-same-sysfs-propert.patch Patch168: Monitor-Include-containers-in-spare-migration2.patch Patch169: Detail-differentiate-between-container-and-inactive-.patch Patch170: mdadm-bitmap-examine-bitmap-failed1-when-bitmap-is-ex.patch Patch171: mdadm-install-twomore-udev-rules-in-mdadm.spec.patch Patch172: mdadm-set-journal_clean-after-scanning-all-disks.patch Patch173: lib-devid2kname-should-take-a-dev_t.patch Patch174: sysfs_init_dev-takea-dev_t-argument.patch Patch175: Manage-subdevs-Use-a-dev_t.patch Patch176: util-Code-is-80-characterswide.patch #The above patches are backported from RHEL7.5 upstream rebase Patch177: Don-t-abort-starting-the-array-if-kernel-does-not-su.patch Patch178: super1add-support-for-multiple-ppls.patch Patch179: imsmadd-support-for-multiple-ppls.patch Patch180: imsm-validate-multiple-ppls-during-assemble.patch Patch181: Zeroout-whole-ppl-space-during-creation-force-assemb.patch Patch182: imsm-switch-to-multiple-ppls-automatically-during-as.patch Patch183: Grow-fix-switching-on-PPL-during-recovery.patch Patch184: imsm-don-t-skip-resync-when-an-invalid-ppl-header-is.patch Patch185: imsm-Write-empty-PPL-header-if-assembling-regular-cl.patch Patch186: imsm-always-do-ppl-recovery-when-starting-a-rebuildi.patch Patch187: imsm-use-correct-map-when-validating-ppl.patch Patch188: imsm-write-initial-ppl-on-a-disk-added-for-rebuild.patch Patch189: mdmon-get-safe-mode-delay-file.patch Patch190: imsm-continue-resync-on-3disk-RAID10.patch Patch191: imsm-Set-disk-slot-number.patch Patch192: managemon-Dont-add-disk-to-the-array-after-it.patch Patch193: Avoid-to-take-spare-without-defined-domain-by-imsm.patch Patch194: stop-previous-reshape-process-first.patch # RHEL customization patches Patch195: mdadm-3.4-udev-race.patch Patch196: mdadm-3.3.2-skip-rules.patch Patch197: mdadm-3.3-udev.patch Patch198: mdadm-2.5.2-static.patch Patch199: disable-journal.patch URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ License: GPLv2+ Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Obsoletes: mdctl,raidtools Obsoletes: mdadm-sysvinit Conflicts: dracut < 024-25 Requires(post): systemd-units chkconfig coreutils BuildRequires: systemd-units binutils-devel Requires(preun): systemd-units Requires(postun): systemd-units coreutils Requires: libreport-filesystem %define _hardened_build 1 %description The mdadm program is used to create, manage, and monitor Linux MD (software RAID) devices. As such, it provides similar functionality to the raidtools package. However, mdadm is a single program, and it can perform almost all functions without a configuration file, though a configuration file can be used to help with some common tasks. %prep %setup -q %patch1 -p1 -b .ISO %patch2 -p1 -b .migration1 %patch3 -p1 -b .oddity %patch4 -p1 -b .typo1 %patch5 -p1 -b .clustered1 %patch6 -p1 -b .tidy %patch7 -p1 -b .symlinks %patch8 -p1 -b .clustered2 %patch9 -p1 -b .Wimplicit %patch10 -p1 -b .specify %patch11 -p1 -b .trivial %patch12 -p1 -b .twice %patch13 -p1 -b .invoked %patch14 -p1 -b .dereference %patch15 -p1 -b .Replace %patch16 -p1 -b .Forced %patch17 -p1 -b .ignore %patch18 -p1 -b .comments1 %patch19 -p1 -b .assembly %patch20 -p1 -b .Retry %patch21 -p1 -b .Build1 %patch22 -p1 -b .Introduce1 %patch23 -p1 -b .force %patch24 -p1 -b .existent %patch25 -p1 -b .generic %patch26 -p1 -b .detail %patch27 -p1 -b .imsmppl %patch28 -p1 -b .super1ppl %patch29 -p1 -b .options %patch30 -p1 -b .policy1 %patch31 -p1 -b .reorganize %patch32 -p1 -b .hard %patch33 -p1 -b .multiple %patch34 -p1 -b .inconsistency %patch35 -p1 -b .Cosmetic %patch36 -p1 -b .cosmetic %patch37 -p1 -b .Introduce2 %patch38 -p1 -b .redundant %patch39 -p1 -b .Introduce3 %patch40 -p1 -b .Introduce4 %patch41 -p1 -b .declarations %patch42 -p1 -b .unnecessary %patch43 -p1 -b .shadow %patch44 -p1 -b .would1 %patch45 -p1 -b .rounded %patch46 -p1 -b .switch %patch47 -p1 -b .presence %patch48 -p1 -b .Make %patch49 -p1 -b .declaring1 %patch50 -p1 -b .multi %patch51 -p1 -b .issues1 %patch52 -p1 -b .container1 %patch53 -p1 -b .versi %patch54 -p1 -b .ver %patch55 -p1 -b .Build2 %patch56 -p1 -b .versions %patch57 -p1 -b .bothering1 %patch58 -p1 -b .attemps %patch59 -p1 -b .references1 %patch60 -p1 -b .references %patch61 -p1 -b .version1 %patch62 -p1 -b .version2 %patch63 -p1 -b .determine1 %patch64 -p1 -b .valid %patch65 -p1 -b .vers %patch66 -p1 -b .Finally %patch67 -p1 -b .kernels %patch68 -p1 -b .uninitialized %patch69 -p1 -b .Revert %patch70 -p1 -b .Retire %patch71 -p1 -b .abuses %patch72 -p1 -b .parameters %patch73 -p1 -b .readonly %patch74 -p1 -b .clustered3 %patch75 -p1 -b .Clean1 %patch76 -p1 -b .pre %patch77 -p1 -b .kernels1 %patch78 -p1 -b .abuse %patch79 -p1 -b .Handle %patch80 -p1 -b .obtain %patch81 -p1 -b .Parse %patch82 -p1 -b .Introduce6 %patch83 -p1 -b .Terminate %patch84 -p1 -b .keyvalue %patch85 -p1 -b .enoughfd %patch86 -p1 -b .everything %patch87 -p1 -b .ini %patch88 -p1 -b .ConditionPathExists %patch89 -p1 -b .export %patch90 -p1 -b .Quiet %patch91 -p1 -b .optimization1 %patch92 -p1 -b .incorrect %patch93 -p1 -b .implementation %patch94 -p1 -b .UnSet %patch95 -p1 -b .determine2 %patch96 -p1 -b .Respect %patch97 -p1 -b .Reinstate %patch98 -p1 -b .applicable %patch99 -p1 -b .Cleanup %patch100 -p1 -b .first %patch101 -p1 -b .determine3 %patch102 -p1 -b .ro %patch103 -p1 -b .Initialize %patch104 -p1 -b .vari %patch105 -p1 -b .back %patch106 -p1 -b .Introduce5 %patch107 -p1 -b .against %patch108 -p1 -b .remains %patch109 -p1 -b .blkdev1 %patch110 -p1 -b .blkdev %patch111 -p1 -b .typo2 %patch112 -p1 -b .returnis %patch113 -p1 -b .activedisks %patch114 -p1 -b .degradation %patch115 -p1 -b .mdge %patch116 -p1 -b .orde %patch117 -p1 -b .fidd %patch118 -p1 -b .characters %patch119 -p1 -b .warnings %patch120 -p1 -b .regardless %patch121 -p1 -b .allocate %patch122 -p1 -b .sizein %patch123 -p1 -b .criteria %patch124 -p1 -b .criterion %patch125 -p1 -b .Centralize %patch126 -p1 -b .reduce %patch127 -p1 -b .declate %patch128 -p1 -b .earlier %patch129 -p1 -b .fromsyfs %patch130 -p1 -b .faileddisks %patch131 -p1 -b .arraydisks %patch132 -p1 -b .nrdisks %patch133 -p1 -b .workingdisks %patch134 -p1 -b .checkarray %patch135 -p1 -b .4kdisks %patch136 -p1 -b .nolonger %patch137 -p1 -b .fork %patch138 -p1 -b .mailfrom %patch139 -p1 -b .apile %patch140 -p1 -b .rdev %patch141 -p1 -b .devicename %patch142 -p1 -b .logi %patch143 -p1 -b .morebroken %patch144 -p1 -b .formatting1 %patch145 -p1 -b .formatting2 %patch146 -p1 -b .badblock %patch147 -p1 -b .successful %patch148 -p1 -b .inline %patch149 -p1 -b .declaration %patch150 -p1 -b .prior %patch151 -p1 -b .fromarray %patch152 -p1 -b .pplgeometry %patch153 -p1 -b .pplreshape %patch154 -p1 -b .formatto %patch155 -p1 -b .revamp %patch156 -p1 -b .raidlevel %patch157 -p1 -b .phsical %patch158 -p1 -b .blockdevi %patch159 -p1 -b .offset %patch160 -p1 -b .without %patch161 -p1 -b .outputfor %patch162 -p1 -b .rebuild %patch163 -p1 -b .newline %patch164 -p1 -b .fro %patch165 -p1 -b .flag2 %patch166 -p1 -b .ERANGE %patch167 -p1 -b .propert %patch168 -p1 -b .migration2 %patch169 -p1 -b .differentiate %patch170 -p1 -b .failed1 %patch171 -p1 -b .twomore %patch172 -p1 -b .scanning %patch173 -p1 -b .devid2kname %patch174 -p1 -b .takea %patch175 -p1 -b .subdevs %patch176 -p1 -b .characterswide %patch177 -p1 -b .abort %patch178 -p1 -b .super1add %patch179 -p1 -b .imsmadd %patch180 -p1 -b .validate %patch181 -p1 -b .Zeroout %patch182 -p1 -b .automatically %patch183 -p1 -b .switching %patch184 -p1 -b .invalid %patch185 -p1 -b .assembling %patch186 -p1 -b .rebuildi %patch187 -p1 -b .validating %patch188 -p1 -b .initial %patch189 -p1 -b .safe %patch190 -p1 -b .3disk %patch191 -p1 -b .slot %patch192 -p1 -b .Dont %patch193 -p1 -b .defined %patch194 -p1 -b .previous # RHEL customization patches %patch195 -p1 -b .race %patch196 -p1 -b .rules %patch197 -p1 -b .udev %patch198 -p1 -b .static %patch199 -p1 -b .disable %build make %{?_smp_mflags} CXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm mdmon %install rm -rf %{buildroot} make DESTDIR=%{buildroot} MANDIR=%{_mandir} BINDIR=%{_sbindir} SYSTEMD_DIR=%{_unitdir} install install-systemd install -Dp -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/raid-check install -Dp -m 644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/65-md-incremental.rules install -Dp -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/raid-check install -Dp -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/cron.d/raid-check mkdir -p -m 700 %{buildroot}/var/run/mdadm # systemd mkdir -p %{buildroot}%{_unitdir} install -m644 %{SOURCE6} %{buildroot}%{_unitdir} # tmpfile mkdir -p %{buildroot}%{_tmpfilesdir} install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf mkdir -p %{buildroot}%{_localstatedir}/run/ install -d -m 0710 %{buildroot}%{_localstatedir}/run/%{name}/ # abrt mkdir -p %{buildroot}/etc/libreport/events.d install -m644 %{SOURCE8} %{buildroot}/etc/libreport/events.d %clean rm -rf %{buildroot} %post %systemd_post mdmonitor.service /usr/bin/systemctl disable mdmonitor-takeover.service >/dev/null 2>&1 || : %preun %systemd_preun mdmonitor.service %postun %systemd_postun_with_restart mdmonitor.service %triggerun -- %{name} < 3.2.2-3 %{_bindir}/systemd-sysv-convert --save mdmonitor >/dev/null 2>&1 || : /bin/systemctl --no-reload enable mdmonitor.service >/dev/null 2>&1 || : /sbin/chkconfig --del mdmonitor >/dev/null 2>&1 || : /bin/systemctl try-restart mdmonitor.service >/dev/null 2>&1 || : %files %defattr(-,root,root,-) %doc TODO ChangeLog mdadm.conf-example COPYING misc/* %{_udevrulesdir}/* %{_sbindir}/* %{_unitdir}/* %{_mandir}/man*/md* /usr/lib/systemd/system-shutdown/* %config(noreplace) %{_sysconfdir}/cron.d/* %config(noreplace) %{_sysconfdir}/sysconfig/* %dir %{_localstatedir}/run/%{name}/ %config(noreplace) %{_tmpfilesdir}/%{name}.conf /etc/libreport/events.d/* %changelog * Wed Feb 07 2018 Xiao Ni - 4.0-13 - stop previous reshape process first - Resolves rhbz#1507415 * Wed Jan 31 2018 Xiao Ni - 4.0-12 - Don't take spare without defined domain by imsm - Resolves rhbz#1535436 * Fri Jan 12 2018 Xiao Ni - 4.0-11 - Fix some IMSM bugs - Resolves rhbz#1507439 rhbz#1516800 rhbz#1528267 * Mon Dec 11 2017 Xiao Ni - 4.0-10 - Disable raid5 journal function - Resolves rhbz#1518477 * Fri Nov 03 2017 Xiao Ni - 4.0-9 - Enable raid5 journal function - Resolves rhbz1505611 * Fri Nov 03 2017 Xiao Ni - 4.0-8 - Support for multiple-ppl in mdadm - Resolves rhbz#1500638 * Fri Nov 03 2017 Xiao Ni - 4.0-7 - Support adding flags for mdmonitor.service - Resolves rhbz#1320018 * Mon Sep 18 2017 Xiao Ni - 4.0-6 - Update to the latest upstream - Resolves rhbz#1455936 * Mon Jun 12 2017 Nigel Croxon - 4.0-5 - RAID array grow not blocked when PPL is enabled - Resolves rhbz#1460141 * Wed May 31 2017 Xiao Ni - 4.0-4 - Imsm should not allow combing 512 and 4096 sector size disks in one volume and Wrong array size shown for array built on 4096 sector size disks - Resolves rhbz#1454390 and rhbz#1454379 * Wed May 17 2017 Xiao Ni - 4.0-3 - Support for Partial Parity Log - Resolves rhbz#1450057 * Thu Apr 13 2017 Nigel Croxon - 4.0-2 - Rebuilt for submission - Resolves rhbz#1385946 * Sun Feb 26 2017 Xiao Ni - 4.0-1 - Update to upstream 4.0 - Resolves rhbz#1380017 * Wed Nov 16 2016 Jes Sorensen - 3.4-15 - Resolve case where a reshape could hang if started right after the completion of a resync. - Resolves rhbz#1386700 * Tue Sep 27 2016 Jes Sorensen - 3.4-14 - The fix for 1331709 caused a problem with container arrays (IMSM) as these can show up with a valid size of 0. Work around this to only exit for non container arrays. - Resolves rhbz#1379194 * Wed Sep 14 2016 Jes Sorensen - 3.4-13 - Make udev-md-array-arrays.rules more resilient to races if arrays are assembled and stopped and reassembled quick after each other. - Resolves rhbz#1331709 * Thu Aug 25 2016 Jes Sorensen - 3.4-12 - Apply additional required patch to fix buffer overrun using long device names - Resolves rhbz#1369891 * Wed Aug 24 2016 Jes Sorensen - 3.4-11 - Fix problem when creating more than 127 md arrays leading to overruns - Resolves rhbz#1369891 * Thu Aug 11 2016 Jes Sorensen - 3.4-10 - Fix fix to enable security through obscurity - Resolves rhbz#1225025 * Tue Aug 9 2016 Xiao Ni - 3.4-9 - Fix problem about reshape stuck at beginning - Resolves rhbz#1172937 * Fri Aug 5 2016 Jes Sorensen - 3.4-8 - Disable support for creating and reshaping into arrays with journals. - Resolves rhbz#1360464 * Mon Jun 20 2016 Jes Sorensen - 3.4-7 - Fix problem with mdadm large device names overflowing an internal buffer - Resolves rhbz#1347749 * Mon Jun 20 2016 Jes Sorensen - 3.4-6 - Fix problem with reshaping IMSM arrays, where a new reshape could be launched before the first reshape had fully completed, leading to unpected results. - Resolves rhbz#1347762 * Thu Jun 9 2016 Jes Sorensen - 3.4-5 - Enable security through obscurity - Resolves rhbz#1225025 * Thu Jun 9 2016 Jes Sorensen - 3.4-4 - Fix problem with raid0 arrays not being detected by Anaconda due to it setting MALLOC_PERTURB_ - Resolves rhbz#1324637 * Thu Apr 28 2016 Xiao Ni - 3.4-3 - Fix Degraded Raid1 array becomes inactive after rebooting - Resolves rhbz#1290494 * Tue Mar 1 2016 Jes Sorensen - 3.4-2 - Fix problem where it was not possible to stop an IMSM array during reshape - Resolves rhbz#1312837 * Tue Feb 9 2016 Xiao Ni - 3.4-1 - Update to mdadm-3.4 - Resolves rhbz#1273351 * Thu Sep 17 2015 Xiao Ni - 3.3.2-6 - Fix issue reshape is stuck - Resolves rhbz#1246035 * Tue Aug 25 2015 Jes Sorensen - 3.3.2-5 - Add support for IMSM over NVME storage - Resolves rhbz#1173504 * Thu Jul 2 2015 Xiao Ni - 3.3.2-4 - Fix issue mdadm --grow --size does not work for >2TB - Resolves rhbz#1236538 * Tue Mar 24 2015 Jes Sorensen - 3.3.2-3 - Fix issue where migration record was not always cleared after successful reshape. - Resolves rhbz#1183724 * Mon Jan 19 2015 Jes Sorensen - 3.3.2-2 - Do not install 64-md-raid-assembly.rules - Resolves rhbz#1181620 * Wed Aug 27 2014 Jes Sorensen - 3.3.2-1 - Update to upstream mdadm-3.3.2 - Resolves rhbz#1085533 * Fri Jul 25 2014 Jes Sorensen - 3.2.6-33 - Fix problem with spare disk not being added correctly to IMSM array because mdmon is unable to write metadata to it. - Resolves bz1072979 * Thu Jul 24 2014 Jes Sorensen - 3.2.6-32 - Fix issue with mdmon not being launched correctly after reboot during container reshape second of a second RAID5 array, resulting in it being read-only and cannot be mounted. - Resolves bz1074970 * Mon Mar 10 2014 Jes Sorensen - 3.2.6-31 - Fix problem of IMSM platform capabilities not being detected in UEFI mode when only the second SATA controller is enabled. - Resolves bz1074161 * Mon Mar 3 2014 Jes Sorensen - 3.2.6-30 - Fix problem where Resync and recovery of RAID10 stopped at more than 50% does not continue after reassemblation - Resolves bz1068154 * Wed Jan 29 2014 Jes Sorensen - 3.2.6-29 - Fix problem with mdadm crashing, if trying to create an IMSM array, with missing devices. - Resolves bz1056466 * Wed Jan 29 2014 Jes Sorensen - 3.2.6-28 - Fix problem with policy with path=* not working if there is no /dev/disk/by-path/ directory, as is the case with (S)ATA only systems - Resovles bz1045510 * Wed Jan 29 2014 Jes Sorensen - 3.2.6-27 - Fix problem with failed disk staying available in IMSM volume/container - Resolves bz1052904 * Wed Jan 29 2014 Jes Sorensen - 3.2.6-26 - Fix problem with reshape not proceeding after reboot on RAID 0 and RAID 5 - Resolves bz1046064 * Fri Jan 24 2014 Daniel Mach - 3.2.6-25 - Mass rebuild 2014-01-24 * Fri Dec 27 2013 Daniel Mach - 3.2.6-24 - Mass rebuild 2013-12-27 * Thu Nov 21 2013 Jes Sorensen - 3.2.6-23 - Fix problem with rebuild not restarting on stopped RAID1/10 IMSM arrays - Resolves bz1032911 * Thu Oct 10 2013 Jes Sorensen - 3.2.6-22 - Check for DM_UDEV_DISABLE_OTHER_RULES_FLAG instead of DM_UDEV_DISABLE_DISK_RULES_FLAG in 65-md-incremental.rules - Resolves bz1015515 * Thu Aug 29 2013 Jes Sorensen - 3.2.6-21 - Fix pointless rpmbuild noise over mismatching date info - Remove Fedora 17 support - Fix problem where first stop command doesn't stop container during IMSM volume's bz956059 * Wed Apr 24 2013 Jes Sorensen - 3.2.6-19 - Fix problem where rebuild of IMSM RAID5 volume started in OROM, does not proceed in OS - Resolves bz956021 (f18), bz956026 (f17), bz956031 (f19) * Tue Apr 23 2013 Jes Sorensen - 3.2.6-18 - Fix problem with IMSM metadata where resync progress would be lost if an array was stopped during ongoing expansion of a RAID1/5 volume. - Resolves bz948745 * Tue Apr 23 2013 Jes Sorensen - 3.2.6-17 - Reorder patches to allow for udev query patch to be applied on Fedora 17 as well. * Mon Apr 22 2013 Jes Sorensen - 3.2.6-16 - Rely on rpm macros to place files in correct directories, and match /usr move - Resolves bz955248 * Thu Mar 7 2013 Jes Sorensen - 3.2.6-15 - Cleanup .spec file handling of different Fedora versions - Resolves bz914629 * Tue Feb 5 2013 Jes Sorensen - 3.2.6-14 - Resync with final version of upstream patches for launching mdmon via systemctl. Require dracut 024-025 or later to match. - Resolves bz879327 * Fri Feb 1 2013 Jes Sorensen - 3.2.6-13 - Update to upstream solution for launching mdmon via systemctl - Resolves bz879327 * Mon Jan 21 2013 Jes Sorensen - 3.2.6-12 - Launch mdmon via systemctl to avoid it ending up in the wrong cgroup and getting killed in the boot process when switching from the initrd to the real root. - Resolves bz879327 * Tue Jan 8 2013 Jes Sorensen - 3.2.6-11 - Move code to leave udev cgroup into mdmon and excute it after we work, to make sure it actually does the right thing. * Mon Jan 7 2013 Jes Sorensen - 3.2.6-10 - Fix mdmonitor-takeover.service dangling symlink problem for real * Mon Jan 7 2013 Jes Sorensen - 3.2.6-9 - Reintroduce fix for removing dangling symlink of mdmonitor-takeover.service which got lost in the fix introduced in 3.2.6-8 * Fri Jan 4 2013 Jes Sorensen - 3.2.6-8 - mdmonitor-takeover.service is obsolete with the --offroot support, and it is harmful as of 3.2.6 - Resolves bz834245 * Mon Dec 10 2012 Jes Sorensen - 3.2.6-7 - 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 - 3.2.6-5 - mdadm-sysvinit is obsolete given that we no longer support booting using sysvinit scripts - Resolves bz884993 * Mon Dec 10 2012 Jes Sorensen - 3.2.6-4 - Fix typo in error message in fix for 880972. No functional changes * Fri Nov 30 2012 Jes Sorensen - 3.2.6-3 - Disallow creating a second IMSM RAID array size 0 (bz880972) - Disallow creating IMSM RAIDs that spans multiple controllers (bz880974) - Resolves bz880972, bz880974 * Thu Nov 15 2012 Doug Ledford - 3.2.6-2 - Modify mdadm to set the cgroup of mdmon to systemd if it's available - Related bz873576 (and others) * Thu Oct 25 2012 Jes Sorensen - 3.2.6-1 - Upgrade to mdadm-3.2.6 - Resolves bz869930 * Fri Oct 19 2012 Jes Sorensen - 3.2.5-14 - Dummy update to work around bodhi breakage. No actual code changes. * Fri Oct 19 2012 Jes Sorensen - 3.2.5-13 - Relax installation requirements for abrt script to only depend on libreport-filesystem rather than the full abrt package * Thu Oct 18 2012 Jes Sorensen - 3.2.5-12 - Add abrt script to retrieve /proc/mdstat output in case of crash - Resolves bz867842 * Wed Oct 17 2012 Jes Sorensen - 3.2.5-11 - Remove package requirements for udev and initscripts for F18+ - Resolves bz864562 * Wed Oct 3 2012 Jes Sorensen - 3.2.5-9 - Resolve issue with ambiguous licenses - Resolves bz862761 * Mon Sep 10 2012 Jes Sorensen - 3.2.5-8 - Switch to using new systemd macros for F18+ - Resolves bz850202 * Thu Aug 2 2012 Jes Sorensen - 3.2.5-7 - Remove bogus rogue patch applied in 3.2.5-5 with justification and without following the structure of the mdadm package. * Fri Jul 27 2012 Fedora Release Engineering - 3.2.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jul 18 2012 Karsten Hopp 3.2.5-5 - include in some to avoid type clashes. same problem as rhbz #840902 * Mon Jul 16 2012 Jes Sorensen - 3.2.5-4 - Move /etc/tmpfiles.d/mdadm.conf to /lib/tmpfiles.d/ to comply with Fedora tmpfile rules - Resolves bz840187 * Mon Jun 25 2012 Jes Sorensen - 3.2.5-3 - 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 * Wed Jun 13 2012 Jes Sorensen - 3.2.5-2 - Fix uninstall script to remove dangling symlink to mdmonitor-takeover.service, if the mdadm package is uninstalled from the system. - Resolves bz828354 * Mon May 21 2012 Jes Sorensen - 3.2.5-1 - Upgrade to mdadm-3.2.5 - Resolves bz822850 * Tue May 15 2012 Jes Sorensen - 3.2.4-3 - Fix mdadm-3.2.4 introduced bug where --add fails in common cases - Resolves bz821717 (f17) bz821718 (f16) bz821719 (f15) * Thu May 10 2012 Jes Sorensen - 3.2.4-2 - Fix mdadm.conf to use 'd' for /var/run/mdadm creation, to avoid the map file getting deleted during boot. * Thu May 10 2012 Jes Sorensen - 3.2.4-1 - Upgrade to mdadm-3.2.4 - Resolves bz820534 (rawhide) bz820527 (f17) bz820531 (f16) bz820532 (f15) * Mon Apr 30 2012 Jes Sorensen - 3.2.3-9 - 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) * Mon Apr 30 2012 Jes Sorensen - 3.2.3-8 - Fix bug where IMSM arrays stay inactive in case a reboot is - performed during the reshape process. - Resolves: bz817522 (f17) bz817535 (f16) bz817537 (f15) * Wed Mar 28 2012 Jes Sorensen - 3.2.3-7 - Fix issue when re-adding drive to a raid1 array with bitmap - Resolves: bz807743 (f17) bz769323 (f16) bz791159 (f15) * Thu Feb 23 2012 Jes Sorensen - 3.2.3-6 - 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) * Thu Feb 16 2012 Jes Sorensen - 3.2.3-5 - Fix 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) * Mon Jan 30 2012 Jes Sorensen - 3.2.3-4 - Add support for --offroot to mdadm/mdmon - Resolves: bz785739 (rawhide) bz785737 (f16) bz771405 (f15) * Thu Jan 12 2012 Jes Sorensen - 3.2.3-3 - Fix case where we have to retry in case a remove fails due to an array being busy - Resolves: bz773337 (rawhide) bz773340 (f16) bz773341 (f15) * Thu Jan 5 2012 Jes Sorensen - 3.2.3-2 - Workaround for gcc-4.7 strict aliasing breaking the build * Wed Jan 4 2012 Jes Sorensen - 3.2.3-1 - Update to upstream 3.2.3 - Resolves: bz770110 (rawhide) bz771413 (f16) bz759014 (rawhide) - Resolves: bz759015 (f16) bz759035 (rawhide) bz759036 (f16) - Resolves: bz771608 (f15) bz759016 (f15) bz759039 (f15) * Mon Nov 21 2011 Jes Sorensen - 3.2.2-15 - Backport upstream fix for memory leak that can prevent migration to RAID5 from completing. - Backport upstream fix preventing mounting a device while it is in process of reshaping - Resolves: bz755005 bz755009 * Wed Nov 9 2011 Jes Sorensen - 3.2.2-14 - Backport upstream fixes to prevent growing v0.90 metadata raid out of supported size. - Add missing 'disable' argument to systemctl in preun script - Resolves: bz735306 (Fedora 15) bz748731 (Fedora 16) bz748732 (rawhide), Resolves: bz751716 * Wed Oct 26 2011 Fedora Release Engineering - 3.2.2-13 - Rebuilt for glibc bug#747377 * Sat Oct 22 2011 Jes Sorensen - 3.2.2-12 - Backport 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) * Wed Oct 19 2011 Jes Sorensen - 3.2.2-11 - Fix systemd dependency problem - Resolves: bz741115 (F16) bz744226 (rawhide) * Wed Oct 19 2011 Jes Sorensen - 3.2.2-10 - Fix problem where a dirty IMSM RAID isn't assembled correctly during boot, preventing booting from this RAID device. - Resolves: bz736387 (Fedora 15) bz744217 (Fedora 16) - Fix race between udev and mdadm when assembling md device using mdadm -I, where udev would spawn an additional mdadm command to perform the assembly in parallel. * Wed Aug 31 2011 Doug Ledford - 3.2.2-9 - Fix boot with older imsm arrays that have an unused attribute set - Resolves: bz729205 * Thu Aug 25 2011 Doug Ledford - 3.2.2-8 - Rework the 65-md-incremental.rules file to add the following support: Nested md raid arrays should now work MD on top of LUKS or other lvm based devices should now work We should no longer grab multipath paths before multipath can * Wed Jul 27 2011 Doug Ledford - 3.2.2-7 - Fix a bug with readding a device - Fix a bug with writemostly flag handling * Mon Jul 18 2011 Doug Ledford - 3.2.2-6 - Bump and rebuild again * Fri Jul 15 2011 Doug Ledford - 3.2.2-5 - Bump and rebuild to keep version ahead of f15 version * Thu Jul 14 2011 Doug Ledford - 3.2.2-4 - Fix minor issue in man page - Resolves: bz717795 * Thu Jul 07 2011 Milan Broz - 3.2.2-3 - Use unit files with systemd. (johannbg) - Add sub-package sysvinit for SysV init script. - Resolves: bz713573 * Wed Jul 06 2011 Milan Broz - 3.2.2-2 - Fix build on PPC. - Resolves: bz719380 * Tue Jun 28 2011 Milan Broz - 3.2.2-1 - Update to latest upstream version - Resolves: bz714083 * Tue Jun 14 2011 Doug Ledford - 3.2.1-5 - Fix for bz710646 * Thu Mar 31 2011 Doug Ledford - 3.2.1-4 - Somehow the 64-md-raid.rules file went missing. Put it back. - Resolves: bz692248 * Thu Mar 31 2011 Doug Ledford - 3.2.1-3 - Fix mdmonitor init script setup of SELinux on PIDPATH - Resolves: bz692559 * Mon Mar 28 2011 Doug Ledford - 3.2.1-2 - Restore build command to sane command instead of test command * Mon Mar 28 2011 Doug Ledford - 3.2.1-1 - Update to latest upstream version - Resolves: 691353 * Fri Mar 25 2011 Doug Ledford - 3.1.5-1 - Update to latest upstream stable release - Update mdadm.rules file to honor noiswmd and nodmraid command line options - Ghost the directory in /var/run, create /var/run/mdadm in mdmonitor init script - Don't report mismatch counts on either raid1 or raid10 - Check both active and idle arrays during raid check runs - Move the raid-check script from cron.weekly to /usr/sbin, add a crontab file to /etc/cron.d and mark it config(noreplace). This way users can select their own raid-check frequency and have it honored through upgrades. - Allow the raid-check script to set the process and io priority of the thread performing the check in order to preserve responsiveness of the machine during the check. - Resolves: 633229, 656620. 679843, 671076, 659933 * Tue Feb 08 2011 Fedora Release Engineering - 3.1.3-0.git20100804.2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Aug 04 2010 Doug Ledford - 3.1.3-0.git20100804.2 - Add udev patch to not have incremental assembly in two rules files * Wed Aug 04 2010 Doug Ledford - 3.1.3-0.git20100804.1 - Update to latest upstream release (resolves an issue with stale lock files on the md device map file) * Thu Jul 22 2010 Doug Ledford - 3.1.3-0.git20100722.2 - 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 * Thu Jul 22 2010 Doug Ledford - 3.1.3-0.git20100722.1 - Change git date format to the correct format (YYYYMMDD) - Update to latest upstream push (fixes bz604023) * Tue Jul 20 2010 Doug Ledford - 3.1.3-0.git07202010.2 - Fix racy locking of mapfile (bz616596) * Tue Jul 20 2010 Doug Ledford - 3.1.3-0.git07202010.1 - 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 * Tue Apr 13 2010 Doug Ledford - 3.1.2-10 - Minor update to mdadm.rules to make anaconda happy * Thu Apr 08 2010 Doug Ledford - 3.1.2-9 - Slight fix on container patch * Thu Apr 08 2010 Doug Ledford - 3.1.2-8 - Updated container patch that also enables mdadm -IRs for imsm devices * Tue Apr 06 2010 Doug Ledford - 3.1.2-7 - 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) * Tue Apr 06 2010 Doug Ledford - 3.1.2-6 - Typo in new rules file * Tue Apr 06 2010 Doug Ledford - 3.1.2-5 - Enable incremental support for imsm devices * Tue Apr 06 2010 Doug Ledford - 3.1.2-4 - One line fix for ppc64 compiles * Tue Apr 06 2010 Doug Ledford - 3.1.2-3 - Clean up directory mess once and for all - Add incremental remove support * Wed Mar 17 2010 Doug Ledford - 3.1.2-2 - Add a little more paranoia checking to the RebuildMap code to avoid ever having the same infinite loop as in bz569019 again even if we change file locations to somewhere where we can't create a mapfile * Tue Mar 16 2010 Doug Ledford - 3.1.2-1 - 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) * Tue Feb 23 2010 Doug Ledford - 3.1.1-0.gcd9a8b5.6 - Newer version of imsm patch that leaves warning, but only when there actually are too many devices on the command line (bz554974) * Sun Feb 21 2010 Doug Ledford - 3.1.1-0.gcd9a8b5.5 - 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) * Sun Feb 21 2010 Doug Ledford - 3.1.1-0.gcd9a8b5.4 - Fix problem with booting multiple imsm containers when they aren't listed "just so" in the mdadm.conf file (bz554974) * Fri Feb 19 2010 Doug Ledford - 3.1.1-0.gcd9a8b5.3 - 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) * Thu Feb 18 2010 Doug Ledford - 3.1.1-0.gcd9a8b5.2 - Fix s390/ppc64 UUID byte swap issue * Wed Feb 17 2010 Doug Ledford - 3.1.1-0.gcd9a8b5.1 - Update to head of upstream git repo, which contains a significant number of bug fixes we need (bz543746) * Fri Jan 15 2010 Doug Ledford - 3.0.3-3 - Fix crash when AUTO keyword is in mdadm.conf (bz552342) * Tue Dec 01 2009 Doug Ledford - 3.0.3-2 - Minor tweak to init script for LSB compliance (bz527957) * Wed Nov 04 2009 Doug Ledford - 3.0.3-1 - New upstream release 3.0.3 (bz523320, bz527281) - Update a couple internal patches - Drop a patch in that was in Neil's tree for 3.0.3 that we had pulled for immediate use to resolve a bug - Drop the endian patch because it no longer applied cleanly and all attempts to reproduce the original problem as reported in bz510605 failed, even up to and including downloading the specific package that was reported as failing in that bug and trying to reproduce with it on both ppc and ppc64 hardware and with both ppc and ppc64 versions on the 64bit hardware. Without a reproducer, it is impossible to determine if a rehashed patch to apply to this code would actually solve the problem, so remove the patch entirely since the original problem, as reported, was an easy to detect DOA issue where installing to a raid array was bound to fail on reboot and so we should be able to quickly and definitively tell if the problem resurfaces. - Update the mdmonitor init script for LSB compliance (bz527957) - Link from mdadm.static man page to mdadm man page (bz529314) - Fix a problem in the raid-check script (bz523000) - Fix the intel superblock handler so we can test on non-scsi block devices * Fri Oct 2 2009 Hans de Goede - 3.0.2-1 - New upstream release 3.0.2 - Add a patch fixing mdadm --detail -export segfaults (bz526761, bz523862) - Add a patch making mdmon store its state under /dev/.mdadm for initrd mdmon, rootfs mdmon handover - Restart mdmon from initscript (when running) for rootfs mdmon handover * Thu Sep 17 2009 Doug Ledford - 3.0-4 - Stop some mdmon segfaults (bz523860) * Tue Sep 15 2009 Doug Ledford - 3.0-3 - Update to current head of upstream git repo for various imsm related fixes (fixes bz523262) - Fix display of metadata version in output of Detail mode - Add UUID output to --detail --export (bz523314) * Fri Jul 24 2009 Doug Ledford - 3.0-2 - Improved raid-check script as well as the ability to configure what devices get checked - Endian patch for uuid generation * Mon Jun 29 2009 Doug Ledford - 3.0-1 - Remove stale patches already accepted by upstream - Fix the raid-check script to only try and check a device if it is checkable - Update to official mdadm-3.0 version - Resolves: bz505587, bz505552 * Tue May 19 2009 Doug Ledford - 3.0-0.devel3.7 - Move the mdadm.map file from /dev/md/ to /dev/ so the installer doesn't need to precreate the /dev/md/ directory in order for incremental assembly to work * Tue May 19 2009 Doug Ledford - 3.0-0.devel3.6 - Only check raid devices automatically, do not attempt to repair them during the weekly data scrubbing * Fri Mar 20 2009 Doug Ledford - 3.0-0.devel3.5 - Fix a few issues with the new code to determine when a device gets to keep its name and when it doesn't * Fri Mar 20 2009 Doug Ledford - 3.0-0.devel3.4 - Change the perms on the udev rules file, it doesn't need to be +x * Fri Mar 20 2009 Doug Ledford - 3.0-0.devel3.3 - 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 * Wed Mar 18 2009 Doug Ledford - 3.0-0.devel3.2 - Change around the mdadm udev rules we ship to avoid a udev file conflict * Tue Mar 17 2009 Doug Ledford - 3.0-0.devel3.1 - 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 * Wed Feb 25 2009 Fedora Release Engineering - 3.0-0.devel2.2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 19 2009 Doug Ledford - 3.0-0.devel2.2 - 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) * Thu Feb 12 2009 Doug Ledford - 3.0-0.devel2.1 - 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 - Fix a compile issue with the __le32_to_cpu() macro usage (bad juju to to operations on the target of the macro as it could get executed multiple times, and gcc now throws an error on that) - Add some casts to some print statements to keep gcc from complaining * Fri Oct 24 2008 Doug Ledford - 2.6.7.1-1 - 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) * Thu Jun 26 2008 Doug Ledford - 2.6.7-1 - 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) * Thu Apr 17 2008 Bill Nottingham - 2.6.4-4 - make /dev/md if necessary in incremental mode (#429604) - open RAID devices with O_EXCL to avoid racing against other --incremental processes (#433932) * Fri Feb 1 2008 Bill Nottingham - 2.6.4-3 - add a udev rules file for device assembly (#429604) * Fri Jan 18 2008 Doug Ledford - 2.6.4-2 - Bump version and rebuild * Fri Oct 19 2007 Doug Ledford - 2.6.4-1 - Update to latest upstream and remove patches upstream has taken * Tue Aug 28 2007 Fedora Release Engineering - 2.6.2-5 - Rebuild for selinux ppc32 issue. * Mon Jul 09 2007 Doug Ledford - 2.6.2-4 - Oops, if we call -C -e1, minor_version is no longer properly set, fix that up - Related: bz230207 * Fri Jul 06 2007 Doug Ledford - 2.6.2-3 - Oops, had to update the file leak patch, missed one thing - Minor tweak to return codes in init script and add LSB header - Resolves: bz244582, bz246980 * Mon Jul 02 2007 Doug Ledford - 2.6.2-2 - Fix a file leak issue when mdadm is in monitor mode - Update mdadm init script so that status will always run and so return codes are standards compliant - Fix assembly of version 1 superblock devices - Make the attempt to create an already running device have a clearer error message - Allow the creation of a degraded raid4 array like we allow for raid5 - Make mdadm actually pay attention to raid4 devices when in monitor mode - Make the mdmonitor script use daemon() correctly - Fix a bug where manage mode would not add disks correctly under certain conditions - Resolves: bz244582, bz242688, bz230207, bz169516, bz171862, bz171938 - Resolves: bz174642, bz224272, bz186524 * Mon Jul 02 2007 Doug Ledford - 2.6.2-1 - Update to latest upstream - Remove requirement for /usr/sbin/sendmail - it's optional and not on by default, and sendmail isn't *required* for mdadm itself to work, and isn't even required for the monitoring capability to work, just if you want to have the monitoring capability do the automatic email thing instead of run your own program (and if you use the program option of the monitor capability, your program could email you in a different manner entirely) * Mon Apr 16 2007 Doug Ledford - 2.6.1-4 - More cleanups for merge review process - Related: bz226134 * Wed Apr 11 2007 Doug Ledford - 2.6.1-3 - Various cleanups as part of merge review process - Related: bz226134 * Sat Mar 31 2007 Doug Ledford - 2.6.1-2 - Oops, missing a dependency in the Makefile * Sat Mar 31 2007 Doug Ledford - 2.6.1-1 - Update to latest upstream version - Resolves: bz233422 * Fri Jan 26 2007 Doug Ledford - 2.6-1 - Update to latest upstream version - Remove the mdmpd daemon entirely. Now that multipath tools from the lvm/dm packages handles multipath devices well, this is no longer needed. - Various cleanups in the spec file * Thu Nov 09 2006 Doug Ledford - 2.5.4-3 - Add a fix for the broken printout of array GUID when using the -E --brief flags * Fri Oct 13 2006 Doug Ledford - 2.5.4-2 - tag present on another branch and can't be forcibly moved required number bump * Fri Oct 13 2006 Doug Ledford - 2.5.4-1 - Update to 2.5.4 (listed as a bugfix update by upstream) - Remove previous bitmap patch that's now part of 2.5.4 * Sun Oct 8 2006 Doug Ledford - 2.5.3-2 - Fix a big-endian machine error in the bitmap code (Paul Clements) * Mon Aug 7 2006 Doug Ledford - 2.5.3-1 - Update to 2.5.3 which upstream calls a "bug fix" release * Wed Jul 12 2006 Jesse Keating - 2.5.2-1.1 - rebuild * Fri Jul 7 2006 Doug Ledford - 2.5.2-1 - Update to 2.5.2 - Remove auto default patch as upstream now has a preferred default auto method * Wed Mar 8 2006 Peter Jones - 2.3.1-3 - fix build on ppc64 * Wed Mar 8 2006 Jeremy Katz - 2.3.1-2 - fix build on ppc * Wed Mar 8 2006 Jeremy Katz - 2.3.1-1 - update to 2.3.1 to fix raid5 (#184284) * Fri Feb 10 2006 Jesse Keating - 2.2-1.fc5.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2.2-1.fc5.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Mon Dec 05 2005 Warren Togami 2.2-1 - 2.2 upgrade (#167897) - disable diet because we don't ship it anymore and we don't actually use mdassemble now * Mon May 16 2005 Doug Ledford 1.11.0-4.fc4 - Make the mdmonitor init script use the pid-file option, major cleanup of the script now possible (#134459) * Mon May 16 2005 Doug Ledford 1.11.0-3.fc4 - Put back the obsoletes: raidtools that was present in 1.11.0-1.fc4 * Mon May 16 2005 Doug Ledford 1.11.0-2.fc4 - Change the default auto= mode so it need not be on the command line to work with udev, however it is still supported on the command line (#132706) - Add a man page (from Luca Berra) for mdassemble * Wed May 11 2005 Doug Ledford - 1.11.0-1.fc4 - Upgrade to 1.11.0 * Wed Apr 27 2005 Jeremy Katz - 1.9.0-3.fc4 - fix mdmonitor initscript (#144717) * Mon Mar 21 2005 Doug Ledford 1.9.0-2 - Build mdadm.static and mdassemble (static as well) to be used in initrd images * Wed Mar 09 2005 Doug Ledford 1.9.0-1 - Initial upgrade to 1.9.0 and update of doc files - Fix an s390 build error * Mon Oct 04 2004 Doug Ledford 1.6.0-2 - Remove /etc/mdadm.conf from the file list. Anaconda will write one out if it's needed. * Fri Oct 01 2004 Doug Ledford 1.6.0-1 - Update to newer upstream version - Make mdmpd work on kernels that don't have the event interface patch * Fri Jul 30 2004 Dan Walsh 1.5.0-11 - Create a directory /var/run/mdadm to contain mdadm.pid - This cleans up SELinux problem * Tue Jun 15 2004 Elliot Lee - rebuilt * Sat May 22 2004 Doug Ledford - 1.5.0-9 - Fix Makefile and build method to satisfy bz #123769 - Add mdmpd man page, update mdmpd version to 0.3 - bz #117160 - Make sure mdadm --monitor closes all md device files so that md devices can be stopped while mdadm is still running - bz #119532 * Thu May 20 2004 Jeremy Katz - 1.5.0-8 - remove unneeded patch, can use --run instead * Wed May 19 2004 Jeremy Katz - 1.5.0-7 - add patch with reallyforce mode on creation to be used by anaconda * Wed May 12 2004 Doug Ledford 2.5.0-6 - Fix a bug in the postun scriptlet related to downgrading to a version of mdadm that doesn't include the mdmpd daemon. * Fri May 07 2004 Doug Ledford 1.5.0-5 - Disable service mdmpd by default to avoid [Failed] messages on current 2.6 kernels. Possibly re-enable it by default once the 2.6 kernels have the md event interface. * Thu Apr 22 2004 Doug Ledford 1.5.0-4 - Update mdmonitor script to start daemon more cleanly - Repackage mdmpd tarball to include gcc-3.4 changes and to make mdmpd properly daemonize at startup instead of forking and leaving the child attached to the terminal. * Thu Mar 4 2004 Bill Nottingham 1.5.0-3 - ship /var/run/mpmpd (#117497) * Thu Feb 26 2004 Doug Ledford 1.5.0-2 - Add a default MAILADDR line to the mdadm.conf file installed by default (Bugzilla #92447) - Make it build with gcc-3.4 * Mon Feb 23 2004 Doug Ledford 1.5.0-1 - Update to 1.5.0 (from Matthew J. Galgoci ) * Sun Nov 16 2003 Doug Ledford 1.4.0-1 - fix problem with recovery thread sleeping in mdmpd * Fri Nov 14 2003 Doug Ledford - sync upstream - add mdmpd package into mdadm package * Wed Sep 10 2003 Michael K. Johnson 1.3.0-1 - sync upstream * Tue Mar 11 2003 Michael K. Johnson 1.1.0-1 - sync upstream * Tue Jan 28 2003 Michael K. Johnson 1.0.1-1 - update for rebuild * Wed Dec 25 2002 Tim Powers 1.0.0-8 - fix references to %%install in the changelog so that it will build * Fri Dec 13 2002 Elliot Lee 1.0.0-7 - Rebuild * Fri Jul 12 2002 Michael K. Johnson - Changed RPM Group to System Environment/Base * Wed May 15 2002 Michael K. Johnson - minor cleanups to the text, conditionalize rm -rf - added mdmonitor init script * Fri May 10 2002 - update to 1.0.0 - Set CXFLAGS instead of CFLAGS * Sat Apr 6 2002 - change %%install to use "make install" * Fri Mar 15 2002 - beautification - made mdadm.conf non-replaceable config - renamed Copyright to License in the header - added missing license file - used macros for file paths * Fri Mar 15 2002 Luca Berra - Added Obsoletes: mdctl - missingok for configfile * Tue Mar 12 2002 NeilBrown - Add md.4 and mdadm.conf.5 man pages * Fri Mar 08 2002 Chris Siebenmann - builds properly as non-root. * Fri Mar 08 2002 Derek Vadala - updated for 0.7, fixed /usr/share/doc and added manpage * Tue Aug 07 2001 Danilo Godec - initial RPM build