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

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 08-03-2009, 02:55 PM   #1
rmyock
LQ Newbie
 
Registered: Aug 2009
Posts: 2
Thanked: 0
LVM Process question.


[Log in to get rid of this advertisement]
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.
rmyock is offline  
Tag This Post ,
Reply With Quote
Old 08-03-2009, 03:01 PM   #2
EricTRA
Member
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: Slackware 13, Ubuntu 9.04,Debian 32 + 64, AIX 5.3, RHEL5, LFS, BackTrack4
Posts: 955
Thanked: 100
Hello,

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

Kind regards,

Eric
EricTRA is offline     Reply With Quote
Old 08-03-2009, 03:38 PM   #3
catkin
Senior Member
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.0
Posts: 1,855
Blog Entries: 6
Thanked: 226
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
catkin is offline     Reply With Quote
Old 08-04-2009, 01:59 AM   #4
rmyock
LQ Newbie
 
Registered: Aug 2009
Posts: 2
Thanked: 0

Original Poster
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.
rmyock is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 06:50 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration