On Fri, Apr 29, 2016 at 1:56 AM, Benton Lam <[email protected]> wrote:
> Hi,
>
> I currently have a 5.7 box, with 2 disk RAID1 (comprise of sd1a and sd2a)
>
> Suppose I upgrade / install to 5.9. Is it possible for me to do the following:
>
> bioctl -O /dev/sd2a sd3 # degrade the raid1 (sd3)
> bioctl -c 5 -l /dev/sd1a,/dev/sd2a,/dev/sd4a -O /dev/sd1a softraid0 #

This will not run IMHO. sd1a is still in use by sd3. Also the format
of command is IMHO incorrect. i.e. combination of -c and -O

> create a raid 5 with sd1a, sd2a and sd4a, but sd1a is degraded,

sd1a is not degraded, what's degraded is sd3 (based on your
description). Also for creation of RAID5 you need minimally 4 drives.

> suppose that creates sd5
>
> <copy stuff from RAID1 to RAID5>
> bioctl -d sd3
> bioctl -R /dev/sd1a sd5 # swap the sd1a back into  the raid5
>
> Is that possible? or should I be finding another 3TB drive, copy the
> stuff onto that temporary drive and create the RAID5?

IMHO your way is not possible, but I write it just based on my user
experience with softraid, I've not tested what you write here. I guess
this is more up to you.

Anyway, finding another 3TB drive sounds like way more safer way so I
would really recommend it.

Reply via email to