Bug 532991
Summary: | mdadm: not large enough to join array (v1.2 superblock) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Douglas E. Warner <silfreed> |
Component: | mdadm | Assignee: | Doug Ledford <dledford> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | dledford |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-11-05 19:52:11 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
Douglas E. Warner
2009-11-04 16:08:06 UTC
The patch specified in the debian bug has already been applied to mdadm 3.0. I also tested mdadm 3.0.2 from F12 and still experienced the error. However, I was able to get past the error by specifying the entire device (sdi) instead of just the partition (sdi1). IE, this worked: # mdadm /dev/md5 --add /dev/sdi mdadm: added /dev/sdi But this failed: # mdadm /dev/md5 --add /dev/sdi1 mdadm: /dev/sdi1 not large enough to join array This would be correct. The original raid array was created from all disks using whole devices, not partitions. So, even though you have a partition table on those disks, it's unused (and skipped over by having a version 1.2 superblock, which is offset 4k past the start of the disk, leaving the partition table intact but totally meanningless). So, indeed, /dev/sdc1 *was* too small, while sdc was just the right size. You can see what I'm talking about by looking at the end of the output of mdadm -D /dev/md5 where it lists all the current active devices in the array and none of them are the partition devices, they are all the whole disk devices. When using whole disk devices, I would strongly recommend version 1.1 superblocks as they won't allow for this confusion, the superblock and the partition table would both try and occupy the first sector, so the 1.1 superblock would result in all the disks having invalid partition tables. |