From: Neil Brown <neilb@suse.de>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Janek Kozicki <janek_listy@wp.pl>, linux-raid@vger.kernel.org
Subject: Re: very degraded RAID5, or increasing capacity by adding discs
Date: Tue, 9 Oct 2007 13:24:41 +1000 [thread overview]
Message-ID: <18186.62585.7261.178442@notabene.brown> (raw)
In-Reply-To: message from Michael Tokarev on Tuesday October 9
On Tuesday October 9, mjt@tls.msk.ru wrote:
>
> o degraded raid5 isn't really Raid - i.e, it's not any better than
> a raid0 array, that is, any disk fails => the whole array fails.
> So instead of creating a degraded raid5 array initially, create
> smaller one instead, but not degraded, and reshape it when
> necessary.
Fully agree.
>
> o reshaping takes time, and for this volume, reshape will take
> many hours, maybe days, to complete.
>
> o During this reshape time, errors may be fatal to the whole array -
> while mdadm do have a sense of "critical section", but the
> whole procedure isn't as much tested as the rest of raid code,
> I for one will not rely on it, at least for now. For example,
> a power failure at an "unexpected" moment, or some plain-stupid
> error in reshape code so that the whole array goes "boom" etc...
While it is true that the resize code is less tested than other code,
it is designed to handle a single failure at any time (so a power
failure is OK as long as the array is not running degraded), and I
have said that if anyone does suffer problems while performing a
reshape, I will do my absolute best to get the array functioning and
the data safe again.
>
> o A filesystem on the array has to be resized separately after
> re{siz,shap}ing the array. And filesystems are different at
> this point, too - there are various limitations. For example,
> it's problematic to grow ext[23]fs by large amounts, because
> when it gets initially created, mke2fs calculates sizes of
> certain internal data structures based on the device size,
> and those structures can't be grown significantly, only
> recreating the filesystem will do the trick.
This isn't entirely true.
For online resizing (while the filesystem is mounted) there are some
limitations as you suggest. For offline resizing (while filesystem is
not mounted) there are no such limitations.
NeilBrown
next prev parent reply other threads:[~2007-10-09 3:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-08 19:13 very degraded RAID5, or increasing capacity by adding discs Janek Kozicki
2007-10-08 19:17 ` Justin Piszcz
2007-10-08 19:26 ` Richard Scobie
2007-10-08 20:08 ` Guy Watkins
2007-10-08 22:25 ` Janek Kozicki
2007-10-08 22:46 ` Janek Kozicki
2007-10-09 1:53 ` Guy Watkins
2007-10-09 3:32 ` Neil Brown
2007-10-09 14:44 ` Janek Kozicki
2007-10-09 14:56 ` Mr. James W. Laferriere
2007-10-09 21:52 ` Neil Brown
2007-10-08 22:52 ` Michael Tokarev
2007-10-09 3:24 ` Neil Brown [this message]
2007-10-09 9:48 ` Michael Tokarev
2007-10-22 9:03 ` Louis-David Mitterrand
2007-10-23 22:41 ` Bill Davidsen
2007-10-09 14:42 ` Janek Kozicki
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=18186.62585.7261.178442@notabene.brown \
--to=neilb@suse.de \
--cc=janek_listy@wp.pl \
--cc=linux-raid@vger.kernel.org \
--cc=mjt@tls.msk.ru \
/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).