From: Louis-David Mitterrand <vindex+lists-linux-raid@apartia.org>
To: linux-raid@vger.kernel.org
Subject: Re: Growing a raid 6 array
Date: Fri, 13 Apr 2007 10:27:05 +0200 [thread overview]
Message-ID: <20070413082705.GA10264@apartia.fr> (raw)
In-Reply-To: <461F3C09.1030909@unix-scripts.info>
On Fri, Apr 13, 2007 at 10:15:05AM +0200, Laurent CARON wrote:
> Neil Brown a écrit :
> > On Thursday March 1, jpiszcz@lucidpixels.com wrote:
> >> You can only grow a RAID5 array in Linux as of 2.6.20 AFAIK.
> >
> > There are two dimensions for growth.
> > You can increase the amount of each device that is used, or you can
> > increase the number of devices.
> >
> > You are correct that increasing the number of devices only works for
> > RAID5 (and RAID1, but you don't get extra space) in 2.6.20 (RAID6
> > coming in 2.6.21).
> >
> > However this question is about growing an array the first way:
> > increasing the amount of space used on each devices, and that is
> > supported for RAID1/4/5/6.
> >
> > And Laurent:
> > 1/ Yes, it is that easy
> > 2/ I doubt a nearly-full ext3 array increases the risk
> > 3/ The effect of adding a bitmap is that if you suffer a crash while
> > the array is degraded, it will resync faster so you have less
> > exposure to multiple failure.
>
> I just finished changing disks, growing the array, and then the filesystem.
>
> It worked flawlessy.
>
> Just a little notice: I had to unmount my ext3 filesystem to be able to
> resize it. (Took ~8 hours to fsck + resize the 15 disks array from 6 to
> 9TB on a dual Xeon with 4GB RAM).
FWIW:
I changed a 6 x 400G system to 500G disks and grew the raid5 array. It
worked fine save for these warnings:
Apr 8 16:54:33 sylla mdadm: RebuildStarted event detected on md device /dev/md1
Apr 8 16:54:33 sylla mdadm: Rebuild20 event detected on md device /dev/md1
Apr 8 16:54:33 sylla mdadm: Rebuild40 event detected on md device /dev/md1
Apr 8 16:54:33 sylla mdadm: Rebuild60 event detected on md device /dev/md1
Apr 8 16:54:33 sylla mdadm: Rebuild80 event detected on md device /dev/md1
Apr 8 16:54:33 sylla kernel: md1: invalid bitmap page request: 187 (> 186)
Apr 8 16:54:33 sylla kernel: md1: invalid bitmap page request: 187 (> 186)
etc...
So after rebooting I removed the bitmap and recreated it.
Online resizing of the 2.0T xfs to 2.4T only took a few _seconds_.
A similar operation on a 4 x 250G raid5 system upgraded to 400G disks
with reiser3 also took a few seconds of _online_ time.
Kernel 2.6.20.6
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2007-04-13 8:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 19:11 Growing a raid 6 array Laurent CARON
2007-03-01 22:28 ` Justin Piszcz
2007-03-01 23:08 ` Laurent CARON
2007-03-01 23:14 ` Justin Piszcz
2007-03-02 1:59 ` Neil Brown
2007-03-02 9:51 ` Laurent CARON
2007-04-13 8:15 ` Laurent CARON
2007-04-13 8:27 ` Louis-David Mitterrand [this message]
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=20070413082705.GA10264@apartia.fr \
--to=vindex+lists-linux-raid@apartia.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).