linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Matt Tehonica <matt.tehonica@mac.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID5 won't mount after reducing disks from 8 to 6
Date: Thu, 17 Feb 2011 12:42:14 +1100	[thread overview]
Message-ID: <20110217124214.00ad25dd@notabene.brown> (raw)
In-Reply-To: <C2D86BF5-AECE-49B3-B139-1CD6375DCFC9@mac.com>

On Wed, 16 Feb 2011 19:24:41 -0500 Matt Tehonica <matt.tehonica@mac.com>
wrote:

> Hi all,
> 
> I converted my RAID5 from 8 disks to 6 disks using "mdadm --grow /dev/md0 --array-size" and then "mdadm --grow /dev/md0 --raid-devices=6" and after rebooting, it won't mount.  It has been running fine for about a year.  File system is XFS.  Here is some info on it....

.... uhmm... you did resize the filesystem to be smaller before you resized
the array to be smaller ... didn't you?

Because if you didn't you have probably just lost 1/3 of your data.

That is the whole point of having to set the array-size first.  You then make
sure your data is still safe before performing the irreversible reshape.

If you did reshape the XFS filesystem first, then something else must be
wrong.

NeilBrown



  parent reply	other threads:[~2011-02-17  1:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  0:24 RAID5 won't mount after reducing disks from 8 to 6 Matt Tehonica
2011-02-17  1:30 ` Phil Turmel
2011-02-17  1:39   ` Matt Tehonica
2011-02-17  2:13     ` Phil Turmel
2011-02-17  2:18   ` Keld Jørn Simonsen
2011-02-17  2:43   ` Stan Hoeppner
2011-02-17  1:42 ` NeilBrown [this message]
2011-02-17  1:47   ` Matt Tehonica
2011-02-17  2:14     ` NeilBrown
2011-02-17  2:22       ` Matt Tehonica
2011-02-17  3:06       ` Stan Hoeppner
2011-02-17  3:11     ` Joe Landman

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=20110217124214.00ad25dd@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=matt.tehonica@mac.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;
as well as URLs for NNTP newsgroup(s).