# Re: Converting RAID1 to RAID5

- From: Jérôme Poulin \<hidden\>
- Date: 2011-09-16 02:54:12 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2011/09/6617316
- Thread: https://ratatoskr.run/linux-raid/2011/09/6617316/t.md

```text
On 2011-09-15, at 19:50, Alex [ref] wrote:

> When I try to grow the other two partitions (/ and /home), it fails
> with device busy:
>
> # mdadm --grow /dev/md2 --level=5 --raid-devices=3
> mdadm: level of /dev/md2 changed to raid5
> mdadm: Need to backup 128K of critical section..
> mdadm: Cannot set device shape for /dev/md2: Device or resource busy
>       Bitmap must be removed before shape can be changed
> mdadm: aborting level change
>

You must remove the bitmap first as told using mdadm --grow --bitmap=none

>
> When the conversion to RAID5 is complete, how can I regenerate the
> mdadm.conf to properly reflect the change?
>

The output of mdadm -Es might be enough for you.
```
