Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: "Keith ." <lukano@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Shrink mdadm RAID5 from 6 disks to 5?
Date: Fri, 21 May 2010 07:34:33 +1000	[thread overview]
Message-ID: <20100521073433.75a59a99@notabene.brown> (raw)
In-Reply-To: <AANLkTimSxarJKmCxfOkJZJJULplm0z1pbVKyQpCG6nEw@mail.gmail.com>

On Thu, 20 May 2010 07:45:23 -0600
"Keith ." <lukano@gmail.com> wrote:

> Does mdadm 3.1.x not support shrinking the number of disks in a RAID5 array?
> 
> I have successfully converted my 6x1.5tb RAID6 array to a 6x1.5tb
> RAID5 array.  The issue that I now face is that one of those 6 drives
> is failed / removed, and as a result - the new RAID5 array is down
> it's parity drive.
> 
> I knew I was short a disk when I started the process, but I was under
> the assumption that mdadm now supported shrinking of RAID5/6 arrays.
> Am I mistaken, or can anyone throw some suggestions at me so I can
> give it a try?

It should work.

 mdadm -G /dev/mdX --raid-devices 5 --array-size=XXXXX
 --backup=/root/backup-file

If you don't give the 'array-size' value mdadm will tell you what it has to
be.  You need to be sure that all your data is already within that space.

NeilBrown

  reply	other threads:[~2010-05-20 21:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 13:45 Shrink mdadm RAID5 from 6 disks to 5? Keith .
2010-05-20 21:34 ` Neil Brown [this message]
2010-05-20 21:42   ` Keith .
2010-05-20 22:32     ` Neil Brown
     [not found]       ` <AANLkTikQcA98OzjFn93X8ChJanHMLTIdrvrIEMQAU4lA@mail.gmail.com>
     [not found]         ` <AANLkTilJqmd9jwNSdlBxA4G07bB7RLB6XR0AwqFhe5uk@mail.gmail.com>
2010-05-30 22:54           ` Keith .

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=20100521073433.75a59a99@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=lukano@gmail.com \
    /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