Bug 808774
Summary: | make mdadm --add not do stupid things | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Doug Ledford <dledford> | |
Component: | mdadm | Assignee: | Jes Sorensen <Jes.Sorensen> | |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 17 | CC: | agk, amessina, bruno, dledford, franta, Jes.Sorensen, mbroz | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | 807743 | |||
: | 808776 (view as bug list) | Environment: | ||
Last Closed: | 2012-06-07 02:49:23 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Doug Ledford
2012-03-31 17:55:35 UTC
Doug, many thanks for Your explanation. And now I'm thinking what I wrote before (.. command "mdadm /dev/mdX --re-add /dev/sdYN" usually work at arrays with 1.2 metadata, and on others fails..) is a bit alternatively - command was rather working on md's with bitmap and fails on others (perhaps anaconda or newer mdadm defaults makes arrays with bitmap, and maybe other older which I create manually were without bitmap. In "/proc/mdstat" i see line about bitmap mainly at newly created arrays, older are without. I shall be happy with mdadm behavior as You propose here. Thanks in advance! Frank, you're correct in that it is "works on arrays with bitmaps and not no others". The later Anaconda installers (f15 or maybe f16 and later) will use a bitmap by default on larger arrays (something like 10GB or larger), but not on small arrays (arrays used for /boot and maybe swap depending on how you set things up). The bitmap causes a small, but perceptible, performance degradation under write operations. However, the bitmap is mainly used so that when an array needs resynced, you only need to resync the parts of the array where the bit marks the array as dirty. On multi-terrabyte arrays, this can mean the difference between a resync taking hours (or even longer than a day), to just minutes instead. However, on very small arrays where it only takes a minute or two to resync the entire array, there really is no benefit to the bitmap. So, manually created arrays where you didn't specify to create a bitmap, or small arrays. That's where you wouldn't expect to find a bitmap. You can, however, add a bitmap after creation with this command: mdadm --grow /dev/md<whatever> --bitmap=internal According to 16.2.2012 "F16 occasionally breaks RAID1 (md) on boot" thread from Fedora mailing list, Sam Varshavchik state that "mdraid_start" routine in initramfs is not reliable. And as workaround is put "rd.md.uuid=RAID_UUID" for all RAID1 md device and let initialize them by kernel. It seems woked fine for me too. mdadm-3.2.3-9.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/mdadm-3.2.3-9.fc17 mdadm-3.2.3-9.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mdadm-3.2.3-9.fc16 mdadm-3.2.3-9.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mdadm-3.2.3-9.fc15 Package mdadm-3.2.3-9.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mdadm-3.2.3-9.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-7105/mdadm-3.2.3-9.fc17 then log in and leave karma (feedback). mdadm-3.2.4-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/mdadm-3.2.4-2.fc17 mdadm-3.2.4-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mdadm-3.2.4-2.fc16 mdadm-3.2.4-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mdadm-3.2.4-2.fc15 mdadm-3.2.4-3.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/mdadm-3.2.4-3.fc17 mdadm-3.2.4-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mdadm-3.2.4-3.fc16 mdadm-3.2.4-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mdadm-3.2.4-3.fc15 mdadm-3.2.5-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/mdadm-3.2.5-1.fc17 mdadm-3.2.5-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mdadm-3.2.5-1.fc16 mdadm-3.2.5-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mdadm-3.2.5-1.fc15 mdadm-3.2.5-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. mdadm-3.2.5-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. mdadm-3.2.5-3.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/mdadm-3.2.5-3.fc17 mdadm-3.2.5-3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |