Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why should I use LVM?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Ernetas
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 159
Location: China

PostPosted: Fri Nov 02, 2007 5:15 pm    Post subject: Why should I use LVM? Reply with quote

So... I think that might be interesting topic.
As I know from Wikipedia, LVM is good, because it provides much faster work with partition table. That's right?
Let say it really does. So why should I create LVM partition, while I could create simple one for all Linux stuff? Isn't there any difference between recovering files from LVM partition and from simple?
We are creating partitions for /home, /tmp, /usr and etc. cause we need low loss of files, when any of the file systems goes wrong. LVM gives one partition for many. If I lose one partition so another one will go down too?
Tell me if I wrote something not true.
Back to top
View user's profile Send private message
jexxie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2007
Posts: 82
Location: Vancouver, BC

PostPosted: Fri Nov 02, 2007 5:25 pm    Post subject: Reply with quote

LVM lets you create and delete partitions on the fly, doesn't give you a limit of how many partitions you can create, and lets you resize the partition size on-the-fly.

If my /home directory is 90% full, and I want to add 5GB to it, I can. If I'm using reiserfs, I can even do this while the partition is mounted and live.

It's also very easy to create backups via snapshots wit LVM, so that might help you, since you want protection from that.
_________________
Rambling sysadmin
My personal site and blog: Phil Dufault
Back to top
View user's profile Send private message
Ernetas
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 159
Location: China

PostPosted: Fri Nov 02, 2007 9:42 pm    Post subject: Reply with quote

So, actually there aren't any minuses?
Back to top
View user's profile Send private message
jexxie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2007
Posts: 82
Location: Vancouver, BC

PostPosted: Fri Nov 02, 2007 10:12 pm    Post subject: Reply with quote

I've heard that you loose about 20% of your disk bandwidth just in overhead, from LVM managing your device(s), but have no numbers to substantiate that claim.
_________________
Rambling sysadmin
My personal site and blog: Phil Dufault
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1852

PostPosted: Fri Nov 02, 2007 10:14 pm    Post subject: Reply with quote

I use LVM on my mythtv backend machine, primarily because in mythtv < 0.21 you can only assign one directory for recorded programs. I'm using a logical volume spread over my two 500GB drives for all those HD recordings.

Obviously the downside with that setup is that, if either drive fails, I loose everything...but hey...it's only TV :D

Tom
Back to top
View user's profile Send private message
jexxie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2007
Posts: 82
Location: Vancouver, BC

PostPosted: Fri Nov 02, 2007 11:26 pm    Post subject: Reply with quote

Similarly, you could setup software raid0 to do the same thing, but lvm works as well.
_________________
Rambling sysadmin
My personal site and blog: Phil Dufault
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum