Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-20-2004, 03:11 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
difference between hardware raid and logical volume manager

I am not able to understand the difference between the hardware raid and the logical volume manager. Both of their functions appear similar. Are they replacement for each other or they both can exist on a system to configure the disks. Please suggest me any site which explains the differences in detail.
Old 12-20-2004, 04:18 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 12-20-2004, 08:00 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Okay, this is easy.

RAID is "Redundant Array of Independent Disks". Think of it in simplest terms, with say RAID and if you have RAID1 setup with two disks, they basically mirror one another.

Disk 1 has 5 partitions and Disk 2 has the same setup.. If Disk 1 has a partition failure on say hda2, Disk 2 will pick up and take over..

Its redundant array of disks for better reliability. In more simply terms, both of those disks will mirror one another, so the data is in two locations instead of just one.

LVM on the other hand is a way to spread data or partitions across multiple disks or partitions, etc. Say you have two hard drives, each 80GB, you could with LVM make it look and act like one big disk, instead of having two disks.
Old 12-21-2004, 01:40 AM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
So could you use RAID to perform the function of LVM?

Old 12-23-2004, 08:03 PM   #5
LQ Newbie
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
RAID is designed for system reliability. Other than RAID0 which is used to make multiple disks appear as one big one, all RAID levels ensure that loss of a disk will not lead to data loss or system crash.

LVM is RAID0 in that you put together multiple disks into one or more volume groups. Then within each volume group you create logical volumes where you build your filesystems. The real power of LVM is that if you have unallocated space in your volume group, then you can unmount a logical volume, extend it in size, extend the filesystem, and then remount the logical volume. In the event, that you don't have free space in the volume group, you can add more disks to your system, use them to extend the volume group's size, and then extend the logical volumes. If you don't use LVM and you need a filesystem to be bigger, then your only choice is to unmount the filesystem, back it up to tape, resize the partition, and then restore. Depending on the sizes this could take quite awhile.

LVM and RAID solve two different problems, and should be used to provide maximum reliability and maximum flexibility.
Old 12-23-2004, 08:44 PM   #6
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Originally posted by MasterC
So could you use RAID to perform the function of LVM?

Why not use them together?

RAID isn't designed to extend partitions or drives across multiple disks to be used as one big drive.. like mentioned above by me23askdf, RAID is for reliability and used in case of data corruption or catastrophe. One disk dies or partition, the other mirrored one picks up the duties until the other is either fixed or replaced.

LVM, well, you setup LVM across multiple disks and say the second disk fails.. there's a good chance the data on it is gone if no RAID or backups were made.
Old 12-28-2004, 10:37 PM   #7
LQ Newbie
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Well, I do use them both.

Also, there is RAID level 0 (what I called RAID0). That is either concatenating multiple disks into one big "disk" or else striping across mutliple disks, again making for one bigger "disk". You don't get any redundancy though, but for example, striping could be used to try to get a little bit more I/O performance. Finally, RAID doesn't really protect you from data corruption. If you overwrite a file, or remove it, or if there is some other problem, then corruption will occur with or without RAID.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logical Volume Manager at installation christopher5 SUSE / openSUSE 0 07-02-2005 10:54 PM
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 11:04 AM
logical volume manager plythgam Linux - Software 1 11-08-2004 10:47 AM
Logical Volume Manager sidmark-2850 Linux - General 3 01-02-2004 01:25 PM
Logical Volume Manager Setup Breezwell Linux - Software 0 11-06-2001 01:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration