Bug 830738 - Chunk size migration from 128k to 4k doesn't finish correctly
Chunk size migration from 128k to 4k doesn't finish correctly
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: mdadm (Show other bugs)
17
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Jes Sorensen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-11 06:19 EDT by Lukasz Dorau
Modified: 2012-06-12 12:13 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-12 12:13:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lukasz Dorau 2012-06-11 06:19:58 EDT
Description of problem:
Chunk size migration from 128k to 4k doesn't finish correctly. After this migration should be RAID0 with 4k chunk size, but there is RAID4 with 4k chunk size in degraded state. 

Version-Release number of selected component (if applicable):
mdadm-3.2.3-6.fc17.x86_64

How reproducible:
Always

Steps to reproduce:
# mdadm -Ss
# mdadm --zero-superblock /dev/sd[a-b]
# mdadm -C /dev/md/imsm0 -amd -e imsm -n 2 /dev/sda /dev/sdb -R
# mdadm -C /dev/md/vol0 -amd -l0 --chunk 128 --size 524288 -n 2 /dev/sda /dev/sdb -R
# export MDADM_EXPERIMENTAL=1
# mdadm -G /dev/md/vol0 --chunk 4

Actual results:
There is RAID4 with 4k chunk size in degraded state.
# cat /proc/mdstat
Personalities : [raid0] [raid6] [raid5] [raid4] 
md126 : active raid4 sdb[1] sda[0]
      1048576 blocks super external:/md127/0 level 4, 4k chunk, algorithm 0 [3/2] [UU_]
md127 : inactive sdb[1](S) sda[0](S)
     2210 blocks super external:imsm
unused devices: <none>

Expected results:
After chunk size migration should be RAID0 with 4k chunk size.
Comment 1 Lukasz Dorau 2012-06-11 06:22:34 EDT
The defect is fixed by patch in Neil's repo:
http://neil.brown.name/git?p=mdadm;a=commit;h=e1742195ff3dba97929f81af6b7633481a23397a
Comment 2 Jes Sorensen 2012-06-12 12:13:57 EDT
This is already addressed by the mdadm-3.2.5 update in updates-testing.

Please test and report feedback in koji.

Note You need to log in before you can comment on or make changes to this bug.