Changed array composition, mdadm --detail still shows the old array size

Posted by Prody on Server Fault See other posts from Server Fault or by Prody
Published on 2010-04-28T08:17:06Z Indexed on 2010/04/28 8:23 UTC
Read the original article Hit count: 236

Filed under:
|
|

I have a machine with 8 disks.
I installed it with my hoster's install automation (it's OVH, I don't have physical access to it).

The machine installed correctly, but it made an array that I wanted to change.
It created a raid5 array across 5/8 disks and I've changed it to raid10 across 8 disks.

I've done this by first --stopping the old array and then --creating the new array.
It warned me that a previous array was there, but I chose to continue.
So it created the array, spent 10ish hours syncing it and now that it's ready I get this strange behavior:

When I fdisk p on it, I see the correct size. But when I mdadm --detail it I see the old array's size even tho I get the new composition and level.

When I try to pvcreate on it, i get the old size again for some reason.

Did I have to do something else? Did I miss something?

© Server Fault or respective owner

Related posts about linux

Related posts about software-raid