[SATLUG] LVM and software RAID
good_bye300 at yahoo.com
Thu Nov 29 12:19:57 CST 2007
Why is LVM a better solution if only RAID0 is needed?
Robert Parkhurst <rparkhurst at scarabimaging.com> wrote: I've played with LVM + RAID (for use in an iSCSI setup). The two are
designed to work together. As Don was saying the only time you'd
probably want to use LVM only would be if you were doing a RAID-0 setup.
As far as a filesystem goes, I'd recommend XFS as the fs because of it's
ability to grow on the fly and very quickly. Reisferfs does this also I
believe (my experience is with XFS though ;-)). JFS I don't have
experience with (or none that are good) and EXT3 can grow, but you have
to take the filesystem off-line while you do it and growing can take a
while (like, go watch t.v. while).
On Thu, 2007-11-29 at 00:42 -0600, Don Wright wrote:
> On Wed, 28 Nov 2007 21:39:23 -0800 (PST), Chris Lemire
> >I was told that LVM does the same thing as raid 0. It does striping, and it's does it in a much much friendlier and more flexible manner.
> >Also I was told that there is no purpose to use RAID 0 in conjunction with LVM2, but Steve Kolars presentaton on RAID and LVM used both, so why are they used together?
> Short answer: The two have different functions. RAID is used for
> reliability and LVM is used for flexibility.
> RAID 0 is RAID without the reliability. It takes two or more drives and
> makes one pseudo-drive that is less reliable than either separately.
> (Don't ask how I know.) There are applications where the tradeoffs
> between access time, capacity, and reliability work out in favor of RAID
> 0, but that's beyond the scope of this reply.
> For many applications the answer is LVM on top of a RAID 1 or 5 volume.
> In that case two or more drives in RAID provide the reliability while
> the LVM layer allows flexibility to allocate the space to various
> filesystems as needed. You can even replace or add physical drives
> (hardware permitting) in the RAID while LVM is running. This works
> because LVM only sees the RAID volume, such as /dev/md0, and is not
> concerned with the underlying hardware.
> There should be plenty of discussion of LVM and RAID on the Web, with
> arguments for every possible combination. Have fun learning! --Don
> Be well - or at least have interesting symptoms!
Scarab Digital Imaging
110 Broadway, Suite 190
San Antonio, TX 78205
SATLUG mailing list
SATLUG at satlug.org
http://alamo.satlug.org/mailman/listinfo/satlug to unsubscribe
Powered by Rackspace (www.rackspace.com)
Never miss a thing. Make Yahoo your homepage.
More information about the SATLUG