LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-28-2006, 04:40 PM   #1
reeseslover531
Member
 
Registered: Nov 2005
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
Using LVM and adding a drive


ok so this is my setup. I am running FC5 on my server here. Everything is currently on seperate drives, meaning there is no LVM setup besides the default that FC5 does on install which is wrap the boot drive into a lvm. My first question is; is there any way to shrink my "/" drive through lvm? Now my second question is based on the fact that I have a 115 gig drive wtih stuff on it. It has only 1.5 gigs left on it. I found a 80 gig drive laying around and it works. I put that in. Now, what I want to do is create a LVM setup so that I can have the 115gig drive and the new 80 gig drive turn into what looks like just one drive. I don't have the space to move the 115gigs of stuff from that drive so I would like to not reformat it and erase everything. Is there any way to do this, and how? I would love to do this graphically, but I am comfortable in the shell.

Thanks you very much,
Joe
 
Old 09-28-2006, 05:03 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I know of no way to do this if you have no room to store the 115 gig too. Here is an idea but not the nicest way. Goto a local staples or circuit city or other and get one of those 200gb USB drives. Move data to it and when all is done remove the data and set it back to the way it was. Then return it to the store for refund.

Brian1
 
Old 09-30-2006, 08:59 AM   #3
reeseslover531
Member
 
Registered: Nov 2005
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
are you sure there is no way to do this? I can try and do this, but how would I go about doing the LVM between the 115 and the 80? Are there any good articles around?
 
Old 09-30-2006, 11:03 AM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Ok you can try it this way. The way I see it you will end up creating 3 LVM partitions instead of two with 2 blank drives when done. Take the 80 and blow all partitions and create an LVM on it. Create the logical volume inside the LVM. Copy as much data from the 115 gig to the new logical volume on the 80 gig LVM drive. Now unmount the 115 gig partition and using the tool parted or the gui gkparted. Now shrink the 115 gig partition down to say 10 gig larger than the space the files are taking up. That would be 115-80=35+10=45gig. Now with the 115 gig partition shrunk down to 45 gig. Create a new LVM on the 115 gig drive with the remaining space. Add a new logical volume and attach it to the logical volume on the 80 gig. Now you would have an 80+70=150 gig logical partition. Mount the 45 gig partition on the 115 gig drive and copy the rest of the data over. Now unmount the 45gig partition and delete it. Create the rest of this space as a 3rd LVM paritition and add to the logical volume. Now you have a total of 80+70+45= 195 gig total. Now edit /etc/fstab to reflect the correct partiton setup to mount at boot.

Brian1

Last edited by Brian1; 10-01-2006 at 05:40 PM.
 
  


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
Help?? Start to Finish for dummies adding new HD to LVM slackem Linux - Hardware 2 03-01-2006 01:25 PM
LVM - adding a new scsi hard disk ddaas Red Hat 1 07-28-2005 02:13 AM
Adding drive with LVM to the exisitng system DBabo Linux - Hardware 3 06-12-2005 06:21 PM
Adding drive with LVM DBabo Linux - Software 2 06-11-2005 10:06 PM
lvm problem - adding a new scsi drive ddaas Linux - Enterprise 0 06-09-2005 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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