[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] LVM2 and Software RAID



On Tue, 31 Aug 2004, Yang, Daniel wrote:

> What information can you give on the reliability of using LVM2 w/ Software
> RAID?  I've done some reading that stated that LVM and Software RAID on
> Linux is not a good combination.  Especially b/c the combination does not
> allow for adding or removing hard drives. Also, LVM does not allow for
> mirroring capabilities so there is no way to mirror w/o the software RAID.
> Finally, the combination does not support bad-block replacement mechanisms.
> What can one do if a bad-block occurs in this type of setup?

There are always pros and cons for using RAID and LVM.  For my money,
software raid is more flexible and more managable than hardware raid.
Others may disagree, of course :)

RAID is mostly about planning how you want your disks to be spliced
together and what kind of reliability over failure you are willing to
live with.  This is true for software and hardware RAID.  Most hardware
RAID adapters do not allow for resizing an existing array.  It is
possible to resize a software RAID, but there is the potential for data
loss.  The Software-RAID HOWTO has a quick section on RAID resizing which
might interested you.

See: http://tldp.org/HOWTO/Software-RAID-HOWTO.html

Software RAID, as you are aware, uses the computers processor to perform
the raid functions, where as hardware RAID has a separate processor on
the RAID adapter to perform these functions.  If you have a sufficiently
fast computer, the overhead of raid will hardly be noticed.

LVM, by contrast, is geared for adding and removing physical drives from
a volume group allowing one to add more storage or replace smaller drives
with larger ones.  The problem most people have is that they create one
big raid array and thus have only one volume group with only one physical
device in it.  Kinda hard to remove a device and retain your data in this
configuration :)

Most modern drives have automatic bad-block replacement internally.  If
the drive has more bad-blocks than available replacement blocks, then
likely the drive is header for failure anyways and should be replaced.

Perhaps you should consider what you want to do with your arrays.  If you
expect to be needing to add more redundant storage over time, then
perhaps a solution would be to create several small raid arrays on
several drives.  Each array appears as a single "drive" to the system.
This way, you can group several "drives" together in a volume group.  If
you need to add storage, you simple replace one arrays' set of drives.
With LVM, you can move data off of that "drive", remove it from the
volume group, change out the physical drives, create the new array on
these drives, then add it back into the volume group, or simply add new
disks, create a new array and add it to the volume group.

Again, it's all about planning.  With Software RAID and LVM you have more
flexibility, and the above can be done while the system is live.  Most
hardware raids have to be setup from the adapters bios.

Good luck, whichever you choose.

> Thanks,
> DY

-- 
Peter A. Castro <doctor fruitbat org> or <Peter Castro oracle com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]