LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2010, 07:02 AM   #1
albie17
Member
 
Registered: Jul 2010
Location: District 9
Distribution: OpenSuse, Fedora, CentOS, Ubuntu, RHEL
Posts: 31

Rep: Reputation: 0
Smile Logical Volumem Management (LVM)


Hi there LQ peeps,
Can someone explain LVM in the simplest term? What is the benefits and advantage of using LVM? Thanks.
 
Old 08-03-2010, 07:05 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Hi there,

This here is a good place to start: http://tldp.org/HOWTO/LVM-HOWTO/whatisvolman.html

..and provides a pretty basic description of LVM in simple terms, and how/why one might want to use it.

Of course, if you have more specific questions, feel free to ask!
 
Old 08-03-2010, 07:07 AM   #3
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
LVM takes all the storage you give to it, chops it up into homogeneous little pieces and then lets you make as many virtual storage devices you like out of all the little pieces.

Give it two 10GB drives and a 4GB drive and you have 24GB of space to assign however you want. e.g. one 15GB logical volume, one 2GB logical volume and 7GB of free space that you can add to either later on, or you could even make new LVs out of that 7GB whenever you want.
 
Old 08-03-2010, 07:55 PM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,708

Rep: Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506
Personally, I've always stopped Fedora creating LVM on my system. Firstly, you need (or perhaps needed) a separate /boot partition, because grub couldn't understand logical volumes. Secondly, it just added to the general complexity of things, which is a Bad Thing. I assigned 10GB to / when I set up my system six years ago, and it's not run out yet; how much software could I find to install? For a server, with separate /var as well as /home, and the possibility of misjudging the assignment to one of them, it's a different question.
 
Old 08-04-2010, 12:13 AM   #5
albie17
Member
 
Registered: Jul 2010
Location: District 9
Distribution: OpenSuse, Fedora, CentOS, Ubuntu, RHEL
Posts: 31

Original Poster
Rep: Reputation: 0
Thanks for the inputs guys. So LVM deals on storage. So is it better than RAID? Lets say I have 3x250g drives and i want to put it on a web server, so which is the best choice LVM or RAID?
 
Old 08-04-2010, 12:14 AM   #6
krasl
Member
 
Registered: Nov 2005
Distribution: Fedora 4
Posts: 40

Rep: Reputation: 15
LVM is not RAID. But nice thing about LVM: resize partitions if needed? Am I right?
 
Old 08-05-2010, 07:10 PM   #7
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,708

Rep: Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506Reputation: 1506
LVM just gives you more flexibility to resize multiple partitions. RAID is a security device to ensure that your data is safe if a drive fails.

With 3 drives, a RAID 5 configuration means that your total storage capacity is only that of 2 drives, but if one of those drives dies, no data is lost.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shrinking a Logical Volume With LVM jimmyjiang Red Hat 1 02-28-2008 05:45 PM
lvm extending logical partation Ammad Linux - General 0 09-25-2005 05:39 AM
Logical Volume Management 2 XaViaR Linux - General 5 08-20-2005 08:48 AM
LVM (logical volumnes) calutateo Linux - Newbie 2 07-13-2005 08:32 PM
Logical Volume Management jatimon Linux - General 0 04-17-2002 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 PM.

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