* Seeking advice to convert RAID5 to RAID10 adding a drive in the process
@ 2015-12-13 14:47 Micheal Blue
2015-12-21 1:44 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Micheal Blue @ 2015-12-13 14:47 UTC (permalink / raw)
To: linux-raid
I have a 3 disk RAID5 currently that uses LUKS. I would like to add a new disk and covert the array to RAID10 but cannot find any walk-through of this process. I am grateful for any input from the list be it links or a personal summary.
Below is a graphic of how my current 3 drive array is setup:
---------------------------------------
[ ext4 file system ]
---------------------------------------
[ LUKS cryptdevice ]
---------------------------------------
[ /dev/dm0 ]
---------------------------------------
[ /dev/sdb1 ] [ /dev/sdc1 ] [ /dev/sdd1 ]
---------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Seeking advice to convert RAID5 to RAID10 adding a drive in the process
2015-12-13 14:47 Seeking advice to convert RAID5 to RAID10 adding a drive in the process Micheal Blue
@ 2015-12-21 1:44 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2015-12-21 1:44 UTC (permalink / raw)
To: Micheal Blue, linux-raid
[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]
On Mon, Dec 14 2015, Micheal Blue wrote:
> I have a 3 disk RAID5 currently that uses LUKS. I would like to add a new disk and covert the array to RAID10 but cannot find any walk-through of this process. I am grateful for any input from the list be it links or a personal summary.
>
>
> Below is a graphic of how my current 3 drive array is setup:
> ---------------------------------------
> [ ext4 file system ]
> ---------------------------------------
> [ LUKS cryptdevice ]
> ---------------------------------------
> [ /dev/dm0 ]
> ---------------------------------------
> [ /dev/sdb1 ] [ /dev/sdc1 ] [ /dev/sdd1 ]
> ---------------------------------------
I assume that is /dev/md0, not /dev/dm0 ....
You would need to convert to RAID0 first.
Something like
mdadm --grow /dev/md0 --level=0 --raid-disks=2
# wait for that to complete
mdadm --grow /dev/md0 --level=10 --raid-disks=4 --add /dev/sdd1 /dev/sde1
You should experiment first by creating some largish file (100Meg),
using losetup to make block devices /dev/loop0, /dev/loop1
... /dev/loop3
then create a raid 5 of some of those devices, creaet a LUKS and ext4 on
that, and then perform the reshape and make sure it all works as you
expect.
I just tested and it seemed to work on the kernel and mdadm that I have.
Of course, if you can create a backup - at least of the most important
files - that is always a good idea.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-21 1:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-13 14:47 Seeking advice to convert RAID5 to RAID10 adding a drive in the process Micheal Blue
2015-12-21 1:44 ` NeilBrown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.