Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30123 - Mdadm does not allow adding a partition to an existing array of equal size to the largest partition

Attached to Project: Arch Linux
Opened by jamie schuts (narf) - Sunday, 03 June 2012, 05:32 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 03 June 2012, 14:13 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Mdadm does not allow adding a partition to an existing array of equal size to the largest partition.
I am slowly adding larger partitions to my RAID 5 group so that I can grow the volume.
produces error :
$ sudo mdadm --manage /dev/md/archiso:1 --add /dev/sdc1
mdadm: /dev/sdc1 not large enough to join array


Additional info:
mdadm-3.2.5-2
3.3.7-1-ARCH x86-64

$ sgdisk -i 1 /dev/sdc
Partition GUID code: A19D880F-05FC-4D3B-A006-743F0F84911E (Linux RAID)
Partition unique GUID: 9CB839A8-F282-45FE-A30C-F5CBE5C9F61D
First sector: 2048 (at 1024.0 KiB)
Last sector: 5860533134 (at 2.7 TiB)
Partition size: 5860531087 sectors (2.7 TiB)
Attribute flags: 0000000000000000
Partition name: 'Linux RAID'

$ sgdisk -i 1 /dev/sdb
Partition GUID code: A19D880F-05FC-4D3B-A006-743F0F84911E (Linux RAID)
Partition unique GUID: CD945E8B-1B9A-49D4-9E96-EC3880667F77
First sector: 2048 (at 1024.0 KiB)
Last sector: 5860533134 (at 2.7 TiB)
Partition size: 5860531087 sectors (2.7 TiB)
Attribute flags: 0000000000000000
Partition name: 'Linux RAID'

$sgdisk -i 3 /dev/sdd
Partition GUID code: A19D880F-05FC-4D3B-A006-743F0F84911E (Linux RAID)
Partition unique GUID: C05D2649-A7CF-4AFB-9ABE-238CAB825EDD
First sector: 208896 (at 102.0 MiB)
Last sector: 5860533134 (at 2.7 TiB)
Partition size: 5860324239 sectors (2.7 TiB)
Attribute flags: 0000000000000000
Partition name: 'Linux RAID'

$ sgdisk -i 3 /dev/sde
Partition GUID code: A19D880F-05FC-4D3B-A006-743F0F84911E (Linux RAID)
Partition unique GUID: B0FD1C1B-00EC-4881-BAAA-68B12B244D13
First sector: 208896 (at 102.0 MiB)
Last sector: 5860533134 (at 2.7 TiB)
Partition size: 5860324239 sectors (2.7 TiB)
Attribute flags: 0000000000000000
Partition name: 'Linux RAID'

Steps to reproduce:
add GPT disk partitions to an existing RAID5 array of equal size to the largest partition member
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 03 June 2012, 14:13 GMT
Reason for closing:  Not a bug
Comment by jamie schuts (narf) - Sunday, 03 June 2012, 06:41 GMT
fixed, kernel must have been seeing old drive mapping - after a reboot I no longer see the issue

Loading...