LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-10-2012, 08:56 AM   #1
Droa
Member
 
Registered: Oct 2011
Location: ~
Distribution: Debian 7
Posts: 60

Rep: Reputation: Disabled
Question any reason to partition hdd when using LVM?


So i never worked with LVM as it seemed a little abstract for me, however since its a good idea to know how to use it, i would try and play with it for awhile.

so the LVM basicly makes virtual drives, on a physical disk partitoned as a LVM system..

and then control the system inside the LVM environment.

so is there any reason to partition my pysical disk, as LVM seems to use it as 1 drive anyway?

even my swap seems to run perfectly inside the LVM.. maby it gives a little more cpuload, i actually dont know.. any expert that can tell me please?

anyway g'day all
 
Old 05-10-2012, 09:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
There may be larger fundamental issues with that, and I wouldn't be surprised if there were, but initially I'd be concerned about having /boot inside LVM. grub2 can handle a /boot partition inside, but I don't think any other bootloader can.

And there are various performance reports that show a reduced system load when passing through LVM. I tried to understand why but I failed!

LVM seems nice until you see better solutions like ZFS, which fully merges both a filesystem and container mechanism, as opposed to using LVM + ext3 to do the same thing. Much nicer from my limited experience of it on Solaris.
 
Old 05-10-2012, 09:25 AM   #3
Droa
Member
 
Registered: Oct 2011
Location: ~
Distribution: Debian 7
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
There may be larger fundamental issues with that, and I wouldn't be surprised if there were, but initially I'd be concerned about having /boot inside LVM. grub2 can handle a /boot partition inside, but I don't think any other bootloader can.

And there are various performance reports that show a reduced system load when passing through LVM. I tried to understand why but I failed!

LVM seems nice until you see better solutions like ZFS, which fully merges both a filesystem and container mechanism, as opposed to using LVM + ext3 to do the same thing. Much nicer from my limited experience of it on Solaris.
so if i can get away with it, i should just use a system without LVM?
currently i have 15 severs.. 3 of them are gateways, as there are no reason i use a simple ext4 filesystem on them, however i got some Images servers for a PXE system we got, and some roeaming profiles folders, we mount directly.

currently it all run on pysical disks smoothly.. however each time we need to upgrade with more disk space, as we keep using all we have, its a pain to swap.

i was wondering if LVM could help in any way?
 
Old 05-10-2012, 09:28 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Hmm, not sure what you read that I didn't mean to type there... I'd always say use LVM. I'm used to just using two partitions, /boot and LVM. You can get deeper into the principles of putting certain partitions in certain places on the physical disk, but at the partitioning level that's done me well over the last X years.
 
Old 05-10-2012, 09:41 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
LVM is very helpful when you want to add new discs to an existing install and don't want to worry about where you mount it.
You can take some partitions and make it act like a single volume through LVM. Then you can increase or decrease the size of the volume. Suppose if your /home partition is getting full then you can add a partition or disk to the volume group, then expand the volume and resize the filesystem.
 
Old 05-10-2012, 10:04 AM   #6
Droa
Member
 
Registered: Oct 2011
Location: ~
Distribution: Debian 7
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Hmm, not sure what you read that I didn't mean to type there... I'd always say use LVM. I'm used to just using two partitions, /boot and LVM. You can get deeper into the principles of putting certain partitions in certain places on the physical disk, but at the partitioning level that's done me well over the last X years.
A okay, i guess i just got confused in the way you described LVM, as a minor cpu killer, i really dont want to compromise network speed on our gateways.. so i should install LVM on my machines, and transfear my data inside the Environment? (except /boot & Swap)?

the more i think about it, the more i want to try it out.. as we are currently running a non-raid system, and really want to setup raid 1 on our User Profiles.. well this weekend gonna be hard reading and VMware simulations i guess
 
Old 05-10-2012, 10:06 AM   #7
Droa
Member
 
Registered: Oct 2011
Location: ~
Distribution: Debian 7
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
LVM is very helpful when you want to add new discs to an existing install and don't want to worry about where you mount it.
You can take some partitions and make it act like a single volume through LVM. Then you can increase or decrease the size of the volume. Suppose if your /home partition is getting full then you can add a partition or disk to the volume group, then expand the volume and resize the filesystem.
Thats really all i want, it seems to good to be true, like a Harddisk Cloud, thats what i really like about it, and want to try it out, but i am a little scare about he performance i guess.. if our system is slow, i got phonecalls up my neck, and 2 angry bosses
 
Old 05-10-2012, 10:47 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
but i am a little scare about he performance i guess..
Earlier I was also wondering about the performance issues of using lvm but later I came to know about this after reading this discussion. Maybe it can help in understanding the performance issues.
 
Old 05-10-2012, 11:27 AM   #9
Droa
Member
 
Registered: Oct 2011
Location: ~
Distribution: Debian 7
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
Earlier I was also wondering about the performance issues of using lvm but later I came to know about this after reading this discussion. Maybe it can help in understanding the performance issues.
thanks for the link, very informative.. and i see thair consern about disk errors, and dataloss, however if i run a raid mirror, i can proberly secure that type of problem, on my user profile, and pxe images.. the gateways can go to hell, if they fail, easy to replace :P
 
Old 05-10-2012, 12:22 PM   #10
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
read the link to compare between LVM and non-LVM , I cannot imagine linux without LVM, I have not had change to see how ZFS works but try using LVM from GUI and play with it, you will never run out of space again )
http://www.linuxquestions.org/questi...no-lvm-811853/

Last edited by ratotopi; 05-10-2012 at 12:24 PM.
 
Old 05-11-2012, 02:14 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Quote:
Originally Posted by Droa View Post
A okay, i guess i just got confused in the way you described LVM, as a minor cpu killer.
I didn't say that, I said some tests showed a *REDUCED* load with LVM in the equation. It appeared to make it work better, not worse.
 
Old 05-12-2012, 11:42 AM   #12
Droa
Member
 
Registered: Oct 2011
Location: ~
Distribution: Debian 7
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I didn't say that, I said some tests showed a *REDUCED* load with LVM in the equation. It appeared to make it work better, not worse.
omg i am so sorry, i was pretty tired when i asked, been geeking out all day, so i may have confused myself :P

Well thanks for all the help, its been very informative for me
 
  


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
How to convert non LVM root partition to LVM? pinga123 Linux - Newbie 5 04-18-2012 11:08 PM
Replacing HDD in an LVM without any ports left for new HDD, therefor using a USB dock boast Linux - General 0 01-12-2010 09:03 AM
Reason for putting a file-system on the outer cylinders of an HDD jonhanna Linux - Newbie 7 12-12-2008 04:21 PM
HDD with single LVM partition, overwritten MBR, recovery needed San-Raal Linux - General 2 10-15-2008 03:58 AM
HDD Spins down for no reason - solution? kkathman Linux - Hardware 1 10-04-2006 01:22 PM

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

All times are GMT -5. The time now is 06:51 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
Open Source Consulting | Domain Registration