From: Billy Crook <billycrook@gmail.com>
To: "Kristleifur Daðason" <kristleifur@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: raid0 not growable?
Date: Wed, 30 Dec 2009 00:26:26 -0600 [thread overview]
Message-ID: <a43edf1b0912292226l6327d9ecu7d7f0fb1aca4633e@mail.gmail.com> (raw)
In-Reply-To: <73e903670912230552n226e9052q182174cba32f3c54@mail.gmail.com>
On Wed, Dec 23, 2009 at 07:52, Kristleifur Daðason
<kristleifur@gmail.com> wrote:
> Hi,
>
> I'm running a raid0 array over a couple of raid6 arrays. I had planned
> on growing the arrays in time, and now turns out to be the time.
>
> To my chagrin, searches indicate that raid0 isn't growable. Can anyone
> confirm this before I wipe and reconfigure?
Not that this would solve your particular problem, but for the future,
or if you do wipe and reconfigure, I would recommend:
When you don't want your individual raid6 arrays to be any larger
(because you don't want to further increase the probability of
failure), don't use raid0 on top of multiple raid6 arrays. Use LVM.
Make each raid6 array a PV. Add them all to one VG. Then make one
LV, specifying striping. Remember that lvm extent size is NOT the
size of lvm's striping.
lvcreate -i3 -I4 -l 50%FREE -n lv_bigfast vg_arrays /dev/md3 /dev/md4 /dev/md5
will create a logical volume named lv_bigfast using 50% of all free
space in the volume group vg_arrays; split evenly between three
contributing physical volumes md[345] (each say an 8 2TB disk raid6
array), and striped in 4kb slices. Adjust as you see fit. Over time,
you can add more md# arrays, and grow the LV and its filesystem while
its in use. You can even (if you have enough freespace, shrink the
PVs, pop a disk out of each, add some more component disks, and narrow
your disk failure domains (the number of disks in each underlying
raid6 array) on the fly without disrupting service. It will be far
from instantaneous, but it beats disrupting service.
--
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:[~2009-12-30 6:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 13:52 raid0 not growable? Kristleifur Daðason
[not found] ` <20091224094557.1ae96a0d@notabene>
2009-12-23 23:28 ` Kristleifur Daðason
2009-12-23 23:54 ` Neil Brown
2009-12-30 15:25 ` Kristleifur Daðason
2009-12-30 17:55 ` Kristleifur Daðason
2009-12-30 6:26 ` Billy Crook [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=a43edf1b0912292226l6327d9ecu7d7f0fb1aca4633e@mail.gmail.com \
--to=billycrook@gmail.com \
--cc=kristleifur@gmail.com \
--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).