From: Jan Ceuleers <jan.ceuleers@computer.org>
To: linux-raid@vger.kernel.org
Subject: Reduce number of active RAID1 devices
Date: Mon, 30 Jan 2012 19:40:01 +0100 [thread overview]
Message-ID: <4F26E401.6000205@computer.org> (raw)
Hi
I have a 4-device RAID1 set (with one device missing), which I want to
bring down to two active devices and a spare.
When I try to do so with the latest mdadm on my current kernel, it fails
simply with "mdadm: failed to set raid disks".
root@zotac:~# mdadm /dev/md0 --grow --raid-devices=2
mdadm: failed to set raid disks
root@zotac:~# mdadm /dev/md0 --grow --raid-devices=2 -x 1
mdadm: option -x not valid in grow mode
root@zotac:~# mdadm -V
mdadm - v3.2.3 - 23rd December 2011
root@zotac:~# uname -a
Linux zotac 2.6.35-32-generic #64-Ubuntu SMP Tue Jan 3 00:47:07 UTC 2012
x86_64 GNU/Linux
root@zotac:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md1 : active raid1 sdb3[3] sde2[2] sdd2[0]
487861824 blocks [4/3] [U_UU]
md0 : active raid1 sdb2[3] sde1[2] sdd1[0]
521984 blocks [4/3] [U_UU]
unused devices: <none>
Is it possible to do this without taking the array offline?
Thank you.
next reply other threads:[~2012-01-30 18:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 18:40 Jan Ceuleers [this message]
2012-01-30 18:53 ` Reduce number of active RAID1 devices Jérôme Poulin
2012-01-30 19:06 ` Jan Ceuleers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F26E401.6000205@computer.org \
--to=jan.ceuleers@computer.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).