LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-03-2009, 01:55 PM   #1
rmyock
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
LVM Process question.


I'm a semi-newb to Linux so bare with me a bit.

I have a CentOS 5 server with a 250gb hard drive running close to the maximum space on one of the partitions. 87% of 200gb ( /home ), roughly.

I have a second 250gb hard drive which is completely unused.

I just recently did some searching through the forums here and found out about LVM and wanted to implement it. Although the downside is I believe it has to wipe a drive/partition before it can add it as a logical volume.

The process I'm considering following is:
1. add this empty 250gb (SDB) secondary hard drive as a logical volume on LVM and copy everything over from the currently filling up partition on my main hard drive.
2. have LVM add in the old partition on the primary hard drive (SDA)
3. extend my logical volume out to include the old partition. Extending my total hard drive space out to 450gb.

Do I have it right?

Thanks for the help.
 
Old 08-03-2009, 02:01 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Check out this, in my opinion great, step by step guide to LVM.

Kind regards,

Eric
 
Old 08-03-2009, 02:38 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello rmyock
Quote:
Originally Posted by rmyock View Post
Do I have it right?
Essentially yes. They key concepts (in order of implementation) are:
  1. Create partition(s) on the hard disk of type 8e, Linux LVM. In LVM terminology these are "physical volumes".
  2. Create a volume group.
  3. Add the "physical volume"s to the volume group.
  4. Create a logical volume from the pool of disk blocks in the volume group.
  5. Format the logical volume with a file system.
  6. Mount the file system.
That's an over-simplification but gives you a conceptual framework to fill in with the details. In addition to EricTRA's link (which I find over-detailed for an introduction but we're all different) you may also find these two helpful: grimoire and The Linux Documentation Project (tldp). I like grimoire best as an introduction.

Best

Charles
 
Old 08-04-2009, 12:59 AM   #4
rmyock
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks catkin and EricTRA for the explanation and links.

I ended up reading EricTRA's first and it helped break everything down a bit better.

catkin, thanks for the detailed process breakdown. I'll have a look at your links.
 
  


Reply

Tags
linux, lvm



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 sang_froid Linux - General 2 03-10-2009 10:25 AM
LVM question tom.bokman@mcwa.com Linux - Server 3 02-20-2008 02:19 PM
Mysterious LVM process monsm Ubuntu 3 01-10-2007 06:12 AM
Question about LVM Torr Linux - General 1 05-28-2006 07:36 AM
lvm question babag Mandriva 4 09-11-2005 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:19 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