linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Level change from 4 disk RAID5 to 4 disk RAID6
@ 2017-04-08 21:42 LM
  2017-04-10  1:04 ` NeilBrown
  2017-04-10  5:41 ` Wols Lists
  0 siblings, 2 replies; 5+ messages in thread
From: LM @ 2017-04-08 21:42 UTC (permalink / raw)
  To: linux-raid

Hi,

I have a 4 disk RAID5, the used dev size is 640.05 GB. Now I want to
replace the 4 disks by 4 disks with a size of 2TB each.

As far as I understand the man page, this can be achieved by replacing
the devices one after another and for each device rebuild the degraded
array with:

   mdadm /dev/md0 --add /dev/sdX1

Then the level change can be done together with growing the array:

   mdadm --grow /dev/md0 --level=raid6 --backup-file=/root/backup-md0

Does this work?

I am asking if it works, because the man page also says:

> mdadm --grow /dev/md4 --level=6 --backup-file=/root/backup-md4
>        The array /dev/md4 which is currently a RAID5 array will
>        be converted to RAID6.  There should normally already be
>        a spare drive attached to the array as a RAID6 needs one
>        more drive than a matching RAID5.

And in my case only the size of disks is increased, not their number.

Thanks,
Lars

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-11 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-08 21:42 Level change from 4 disk RAID5 to 4 disk RAID6 LM
2017-04-10  1:04 ` NeilBrown
2017-04-11 21:27   ` LM
2017-04-10  5:41 ` Wols Lists
2017-04-11 21:28   ` LM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).