From: Steven Ihde <x-linux-raid@hamachi.dyndns.org>
To: Jeff Unruh <jeff@jdubya.org>
Cc: 'Steven Joerger' <steven.joerger@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: LVM on top of software raid5
Date: Sat, 4 Dec 2004 13:57:41 -0800 [thread overview]
Message-ID: <20041204215741.GA7828@hamachi.dyndns.org> (raw)
In-Reply-To: <200412042122.iB4LMr8H024129@ms-smtp-02-eri0.texas.rr.com>
Two key points though:
(1) booting off raid5 (whether lvm2 is involved or not) can be
difficult to set up, if it's even possible. Many folks (including
me) use the approach of allocating the first 1G or so of each disk
to a raid1 array (which can be booted from), and allocating the
remainder of each disk to the raid5 array. With a little
trickery, you can set it up so that every disk in the array is
bootable.
(2) LVM2 will certainly help you manange the existing space on your
raid5 array. You'd like to think that when your array fills up
you can just add another disk to the raid5 array and grow it --
but it's not that simple. Growing a raid5 is somewhat complicated
and dangerous because it involves shuffling around virtually every
disk block and recomputing every parity block. There is a program
called raidreconf that does this, and some folks have reported
success, but I've never tried it. To be fair I've never heard a
disaster story about this either, but there seems to be a sense of
"unease" about doing this. This functionality is not part of
mdadm nor of raidtools.
Once you figure out how to set up the arrays, LVM2 is easy -- just add
/dev/md[whatever] as a PV for LVM2, and proceed as you would normally.
-Steve
On Sat, 04 Dec 2004 15:23:08 -0600, Jeff Unruh wrote:
> Steven,
>
> A little googling will help. I am running a gentoo box using raidtools with
> 3x200 Seagate Drives in a Raid5 array with LVM2 (I know - I need to convert
> to mdadm but not sure how).
>
> Here are a few links that helped me out - using LVM2.
>
> http://www.gentoo.org/doc/en/lvm2.xml
>
> http://www.tldp.org/HOWTO/LVM-HOWTO/
>
> I am using /dev/md2 (/dev/vg0) as my music and video repository and it is
> ever growing so LVM is helpful to manage the size and expand when necessary.
>
>
> // Jeff
>
> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org
> [mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Steven Joerger
> Sent: Friday, December 03, 2004 6:39 PM
> To: linux-raid@vger.kernel.org
> Subject: LVM on top of software raid5
>
> Hello List,
>
> Can anyone point me to a decent guide for setting up LVM on a software
> raid 5. I'm particularly interested in being able to grow the size of
> the raid at some point.
>
> Thanks in advance.
> Steve
> -
> 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
>
> -
> 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
next prev parent reply other threads:[~2004-12-04 21:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-04 0:39 LVM on top of software raid5 Steven Joerger
2004-12-04 21:23 ` Jeff Unruh
2004-12-04 21:57 ` Steven Ihde [this message]
2004-12-05 3:10 ` Jeff Unruh
2004-12-05 3:17 ` Steven Ihde
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=20041204215741.GA7828@hamachi.dyndns.org \
--to=x-linux-raid@hamachi.dyndns.org \
--cc=jeff@jdubya.org \
--cc=linux-raid@vger.kernel.org \
--cc=steven.joerger@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;
as well as URLs for NNTP newsgroup(s).