All of lore.kernel.org
 help / color / mirror / Atom feed
* mdadm Raid level change from 1 to 5?
@ 2015-05-08  9:18 Hans Kraus
  2015-05-08 10:47 ` Robin Hill
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Kraus @ 2015-05-08  9:18 UTC (permalink / raw)
  To: linux-raid

Hi,

I have a Raid 1 with 3 drives, the following layout (the internal
bitmap is already removed):
-----------------------------------------------------------------
md20 : active raid1 sdj1[2] sdi1[1] sdn1[0]
       732442432 blocks super 1.2 [3/3] [UUU]
-----------------------------------------------------------------
I tried to change it to Raid 5, but I'm getting aways an error.
-----------------------------------------------------------------
mdadm --grow /dev/md20 --level=5 --raid-devices=3 -c 32 \
   --backup-file=/home/kraush/work/raidLevelChange

Impossibly level change request for RAID1
-----------------------------------------------------------------
I tried it with various permutations (+/- raid-devices, c, ...).

Is something in my command wrong or is the level change not
possible?
This is on Debian 7, mdadm - v3.3-65-g2167de7 - 11th March 2014

Regards, Hans




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

* Re: mdadm Raid level change from 1 to 5?
  2015-05-08  9:18 mdadm Raid level change from 1 to 5? Hans Kraus
@ 2015-05-08 10:47 ` Robin Hill
  2015-05-09  8:58   ` Hans Kraus
  0 siblings, 1 reply; 3+ messages in thread
From: Robin Hill @ 2015-05-08 10:47 UTC (permalink / raw)
  To: Hans Kraus; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

On Fri May 08, 2015 at 11:18:44AM +0200, Hans Kraus wrote:

> Hi,
> 
> I have a Raid 1 with 3 drives, the following layout (the internal
> bitmap is already removed):
> -----------------------------------------------------------------
> md20 : active raid1 sdj1[2] sdi1[1] sdn1[0]
>        732442432 blocks super 1.2 [3/3] [UUU]
> -----------------------------------------------------------------
> I tried to change it to Raid 5, but I'm getting aways an error.
> -----------------------------------------------------------------
> mdadm --grow /dev/md20 --level=5 --raid-devices=3 -c 32 \
>    --backup-file=/home/kraush/work/raidLevelChange
> 
> Impossibly level change request for RAID1
> -----------------------------------------------------------------
> I tried it with various permutations (+/- raid-devices, c, ...).
> 
> Is something in my command wrong or is the level change not
> possible?
> This is on Debian 7, mdadm - v3.3-65-g2167de7 - 11th March 2014
> 
I think you'll need one of the disks to be spare first. Try reducing the
RAID1 to a 2-disk plus spare configuration, then rerunning the grow.
Alternately you'd need to add a new disk as a spare first, then grow to
a 4 disk RAID5.

HTH,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: mdadm Raid level change from 1 to 5?
  2015-05-08 10:47 ` Robin Hill
@ 2015-05-09  8:58   ` Hans Kraus
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Kraus @ 2015-05-09  8:58 UTC (permalink / raw)
  To: robin; +Cc: linux-raid

Thanks a lot, that was it. After fail & remove one HD, set
--raid-devices=2 and re-add the removed HD as spare, the --grow worked.

Regards, Hans

Am 08.05.2015 um 12:47 schrieb Robin Hill:
> On Fri May 08, 2015 at 11:18:44AM +0200, Hans Kraus wrote:
>
>> Hi,
>>
>> I have a Raid 1 with 3 drives, the following layout (the internal
>> bitmap is already removed):
>> -----------------------------------------------------------------
>> md20 : active raid1 sdj1[2] sdi1[1] sdn1[0]
>>         732442432 blocks super 1.2 [3/3] [UUU]
>> -----------------------------------------------------------------
>> I tried to change it to Raid 5, but I'm getting aways an error.
>> -----------------------------------------------------------------
>> mdadm --grow /dev/md20 --level=5 --raid-devices=3 -c 32 \
>>     --backup-file=/home/kraush/work/raidLevelChange
>>
>> Impossibly level change request for RAID1
>> -----------------------------------------------------------------
>> I tried it with various permutations (+/- raid-devices, c, ...).
>>
>> Is something in my command wrong or is the level change not
>> possible?
>> This is on Debian 7, mdadm - v3.3-65-g2167de7 - 11th March 2014
>>
> I think you'll need one of the disks to be spare first. Try reducing the
> RAID1 to a 2-disk plus spare configuration, then rerunning the grow.
> Alternately you'd need to add a new disk as a spare first, then grow to
> a 4 disk RAID5.
>
> HTH,
>      Robin
>

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-05-09  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-08  9:18 mdadm Raid level change from 1 to 5? Hans Kraus
2015-05-08 10:47 ` Robin Hill
2015-05-09  8:58   ` Hans Kraus

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.