* Impossibly level change request for RAID1
@ 2017-11-15 16:52 Santiago DIEZ
2017-11-15 17:14 ` Wols Lists
0 siblings, 1 reply; 3+ messages in thread
From: Santiago DIEZ @ 2017-11-15 16:52 UTC (permalink / raw)
To: Linux Raid LIST
Hi,
I started by mistake a raid as RAID1 with 5 disks when my desire was
to start it as RAID5. Technically, there is no data at all so I could
entirely recreate the raid but this is NOT what I want. I'm taking
this opportunity as an exercise to change a raid level.
The initial state of the raid is:
md9 : active raid1 sda9[0] sdb9[1] sdc9[2] sdd9[3] sde9[4]
5846755328 blocks super 1.2 [5/5] [UUUUU]
bitmap: 0/44 pages [0KB], 65536KB chunk
# I tried to change the level with:
mdadm /dev/md9 --grow --level=5
# But got the error :
mdadm: Impossibly level change request for RAID1
# I followed a howto and did:
# Fail and remove one disk and reduce the size of the raid:
mdadm /dev/md9 --fail /dev/sde9
mdadm /dev/md9 --remove /dev/sde9
mdadm /dev/md9 --remove /dev/sde9
# The status is now
/dev/md9:
Version : 1.2
Creation Time : Thu Aug 31 13:21:32 2017
Raid Level : raid1
Array Size : 5846755328 (5575.90 GiB 5987.08 GB)
Used Dev Size : 5846755328 (5575.90 GiB 5987.08 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Nov 15 16:52:42 2017
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Name : rescue.ovh.net:9
UUID : ff7df55b:357263cd:009f3a94:89293230
Events : 24
Number Major Minor RaidDevice State
0 8 9 0 active sync /dev/sda9
1 8 25 1 active sync /dev/sdb9
2 8 41 2 active sync /dev/sdc9
3 8 57 3 active sync /dev/sdd9
# I re-added sde9 hopping it would become spare:
mdadm /dev/md9 --add /dev/sde9
# But surprisingly, sda9 became faulty at the same time:
/dev/md9:
Version : 1.2
Creation Time : Thu Aug 31 13:21:32 2017
Raid Level : raid1
Array Size : 5846755328 (5575.90 GiB 5987.08 GB)
Used Dev Size : 5846755328 (5575.90 GiB 5987.08 GB)
Raid Devices : 4
Total Devices : 5
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Nov 15 17:10:29 2017
State : clean, degraded
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Name : rescue.ovh.net:9
UUID : ff7df55b:357263cd:009f3a94:89293230
Events : 29
Number Major Minor RaidDevice State
- 0 0 0 removed
<<< What's that?!!!
1 8 25 1 active sync /dev/sdb9
2 8 41 2 active sync /dev/sdc9
3 8 57 3 active sync /dev/sdd9
0 8 9 - faulty /dev/sda9
<<< sda9 is faulty
4 8 73 4 active sync /dev/sde9
# So I removed and re-added sda9 like this:
mdadm /dev/md9 --remove /dev/sda9
mdadm /dev/md9 --add /dev/sda9
# It was succesfully added as spare but I still have a weird line:
/dev/md9:
Version : 1.2
Creation Time : Thu Aug 31 13:21:32 2017
Raid Level : raid1
Array Size : 5846755328 (5575.90 GiB 5987.08 GB)
Used Dev Size : 5846755328 (5575.90 GiB 5987.08 GB)
Raid Devices : 4
Total Devices : 5
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Nov 15 17:34:10 2017
State : clean, degraded
Active Devices : 4
Working Devices : 5
Failed Devices : 0
Spare Devices : 1
Name : rescue.ovh.net:9
UUID : ff7df55b:357263cd:009f3a94:89293230
Events : 31
Number Major Minor RaidDevice State
- 0 0 0 removed
<<< What's that?!!!
1 8 25 1 active sync /dev/sdb9
2 8 41 2 active sync /dev/sdc9
3 8 57 3 active sync /dev/sdd9
0 8 9 - spare /dev/sda9
4 8 73 4 active sync /dev/sde9
# Then I eventually tried again to change the level:
sudo mdadm /dev/md9 --grow --level=5 --raid-devices=5
# But still got the same issue:
mdadm: Impossibly level change request for RAID1
Any clue ?
Regards
-------------------------
Santiago DIEZ
Quark Systems & CAOBA
23 rue du Buisson Saint-Louis, 75010 Paris
-------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Impossibly level change request for RAID1
2017-11-15 16:52 Impossibly level change request for RAID1 Santiago DIEZ
@ 2017-11-15 17:14 ` Wols Lists
2017-11-21 11:18 ` Santiago DIEZ
0 siblings, 1 reply; 3+ messages in thread
From: Wols Lists @ 2017-11-15 17:14 UTC (permalink / raw)
To: Santiago DIEZ, Linux Raid LIST
On 15/11/17 16:52, Santiago DIEZ wrote:
> Hi,
>
> I started by mistake a raid as RAID1 with 5 disks when my desire was
> to start it as RAID5. Technically, there is no data at all so I could
> entirely recreate the raid but this is NOT what I want. I'm taking
> this opportunity as an exercise to change a raid level.
>
> The initial state of the raid is:
> md9 : active raid1 sda9[0] sdb9[1] sdc9[2] sdd9[3] sde9[4]
> 5846755328 blocks super 1.2 [5/5] [UUUUU]
> bitmap: 0/44 pages [0KB], 65536KB chunk
>
> # I tried to change the level with:
> mdadm /dev/md9 --grow --level=5
> # But got the error :
> mdadm: Impossibly level change request for RAID1
I'll leave the rest for someone else (or maybe me later :-) but just to
explain the "impossible level change", you cannot change a mirror with
more than two active devices. You need to have two active, three spares,
before it will change.
Cheers,
Wol
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Impossibly level change request for RAID1
2017-11-15 17:14 ` Wols Lists
@ 2017-11-21 11:18 ` Santiago DIEZ
0 siblings, 0 replies; 3+ messages in thread
From: Santiago DIEZ @ 2017-11-21 11:18 UTC (permalink / raw)
To: Wols Lists; +Cc: Linux Raid LIST
Hi Wol,
This indeed fixed the problem. What I did for the record and for any
newbie reading this post:
# Regrow the RAID1 to 5 devices (this fixed the weird removed messages)
sudo mdadm /dev/md9 --grow --raid-devices=5
# Make 3 disks faulty
sudo mdadm /dev/md9 --fail /dev/sdc9
sudo mdadm /dev/md9 --fail /dev/sdd9
sudo mdadm /dev/md9 --fail /dev/sde9
# Remove 3 disks
sudo mdadm /dev/md9 --remove /dev/sdc9
sudo mdadm /dev/md9 --remove /dev/sdd9
sudo mdadm /dev/md9 --remove /dev/sde9
# Reduce the number of devices in RAID1
sudo mdadm /dev/md9 --grow --raid-devices=2
# Re-attach the 3 disks (they become spare)
sudo mdadm /dev/md9 --add /dev/sdc9
sudo mdadm /dev/md9 --add /dev/sdd9
sudo mdadm /dev/md9 --add /dev/sde9
# Change the level of raid
sudo mdadm /dev/md9 --grow --level=5 --raid-devices=5
# Then wait about 24h for the raid to reshape!
-------------------------
Santiago DIEZ
Quark Systems & CAOBA
23 rue du Buisson Saint-Louis, 75010 Paris
-------------------------
On Wed, Nov 15, 2017 at 6:14 PM, Wols Lists <antlists@youngman.org.uk> wrote:
>
> On 15/11/17 16:52, Santiago DIEZ wrote:
> > Hi,
> >
> > I started by mistake a raid as RAID1 with 5 disks when my desire was
> > to start it as RAID5. Technically, there is no data at all so I could
> > entirely recreate the raid but this is NOT what I want. I'm taking
> > this opportunity as an exercise to change a raid level.
> >
> > The initial state of the raid is:
> > md9 : active raid1 sda9[0] sdb9[1] sdc9[2] sdd9[3] sde9[4]
> > 5846755328 blocks super 1.2 [5/5] [UUUUU]
> > bitmap: 0/44 pages [0KB], 65536KB chunk
> >
> > # I tried to change the level with:
> > mdadm /dev/md9 --grow --level=5
> > # But got the error :
> > mdadm: Impossibly level change request for RAID1
>
> I'll leave the rest for someone else (or maybe me later :-) but just to
> explain the "impossible level change", you cannot change a mirror with
> more than two active devices. You need to have two active, three spares,
> before it will change.
>
> Cheers,
> Wol
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-21 11:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15 16:52 Impossibly level change request for RAID1 Santiago DIEZ
2017-11-15 17:14 ` Wols Lists
2017-11-21 11:18 ` Santiago DIEZ
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.