LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-19-2016, 04:34 AM   #1
deknoy
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Question about LVM?


I'm very new for LVM. Current I have 1 HDD with LVM but it full. So I need to add second HDD into server. How can I increase partition size on HDD1 with LVM? Please help me. Thank you.
 
Old 05-19-2016, 08:31 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Hello and welcome to LQ.

It may be a very trivial task of quite difficult. If we assume a common distro and maybe ext filesystem it should be mostly easy.

Gui may be easy if you have a supported distro. http://www.howtogeek.com/127246/linu...Speed=noscript

Command line like this. http://rgheck.blogspot.com/2012/07/h...lvm-drive.html

Your distro may have unique issues too.
 
Old 05-19-2016, 09:47 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
If LVM is already installed on your computer, then the procedure that you will need to follow ... rather abundantly described already on the Internet ... is basically as follows:

(1) First, you will add another hard-disk drive to the computer system. You will then instruct LVM(!) to format it, as it sees fit, and to add it to the current "physical storage pool."

(2) Next, you will tell LVM to add (all, or some part of ...) this physical resource to a "logical volume," which is what the operating-system sees.

(3) Finally, you will instruct the file-system to grow into the now-magickally-available space. (Thanks to LVM, the operating-system's file system does not perceive that "the logical volume" is not, in fact, hosted by a single physical storage device.)

Spend a little bit of time, "tomorrow morning, over coffee," doing some Internet research ... say, start with the web-site for your chosen "distro" ... to see exactly what's involved; exactly how it's done. Believe it or not, (aside from a little while spent physically-formatting the new drive ...), it's "yea, a bit obscure, but ..." quite easy.
 
Old 05-19-2016, 10:48 PM   #4
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
You can span multiple physical disks with a single logical volume if you wish. I avoid doing that if possible, since any disk failure may make the entire volume unrecoverable.

I also prefer to create partitions, then have lvm add the partition as a physical volume. It makes it easier to keep things straight in tools like fdisk that are not lvm aware.
 
Old 05-20-2016, 07:10 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Quote:
Originally Posted by Doug G View Post
You can span multiple physical disks with a single logical volume if you wish. I avoid doing that if possible, since any disk failure may make the entire volume unrecoverable.

I also prefer to create partitions, then have lvm add the partition as a physical volume. It makes it easier to keep things straight in tools like fdisk that are not lvm aware.
To me, that sort-of defeats the "best" purpose of LVM, which is, "to combine it with RAID." Not only do you spread the data out among multiple physical volumes, but you also at the same time provide physical redundancy for those volumes.
 
Old 05-20-2016, 05:18 PM   #6
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
I didn't realize the OP had a raid setup.
 
  


Reply



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
LVM Question pfisher Linux - Newbie 1 10-25-2012 10:42 AM
LVM question TheR_ Linux - Server 1 02-03-2010 01:33 PM
LVM question sang_froid Linux - General 2 03-10-2009 10:25 AM
Question about LVM Torr Linux - General 1 05-28-2006 07:36 AM
question about LVM an2ny_18 Linux - Software 3 03-12-2006 04:35 AM

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

All times are GMT -5. The time now is 09:18 AM.

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