LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-02-2005, 11:51 PM   #1
Neowulf
LQ Newbie
 
Registered: Aug 2004
Location: Brisbane, Australia
Distribution: RHE 3.0
Posts: 18

Rep: Reputation: 0
Fun with partitions


Hi all,

Just a quick question regarding partitions in Linux.

I'm currently running Fedora Core 4, with kernel 2.6.12-1.

I'm currently in the process of setting up a mythTV box and so assigned a large partition (i.e. /video) to store the recorded programs during the installation process.

Half way through my installation, I realised too late that I'd failed to create an LVM for this storage, so I can grow it at some later stage.

Is there any easy way (other than reinstalling) for me to remove the existing /video partition and convert the free space into an LVM physical volume?

Cheers,

Neowulf.
 
Old 08-03-2005, 06:15 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Yes and no, but it would be a lot easier to just copy it to a different drive and then bring it back when the LVM was set up. External USB drives work great for this type of transfer.

If the question is whether you can directly convert something like an ext3 partition into an LVM, then the answer is no, or at least, I am fairly sure its no.
 
Old 08-03-2005, 06:29 PM   #3
Neowulf
LQ Newbie
 
Registered: Aug 2004
Location: Brisbane, Australia
Distribution: RHE 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by WhatsHisName
Yes and no, but it would be a lot easier to just copy it to a different drive and then bring it back when the LVM was set up. External USB drives work great for this type of transfer.

If the question is whether you can directly convert something like an ext3 partition into an LVM, then the answer is no, or at least, I am fairly sure its no.
Thanks for the advice.

After doing a little more research, I thought I could try the following...

1. Move the existing data from /video to another partition...
2. Unmount /video
3. Reformat the partition as an LVM Physcial volume
4. Create a new logical volume under the new LVMPV.
5. Format the new volume with JSF
6. Recreate the /video mount point
7. Move my data back onto it...

Hows that sound?

Neowulf.
 
Old 08-04-2005, 01:17 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
That will work fine, but it didn't sound like you had any room available on the disk to do that. The idea is to get the data out of the way before you create the physical volume.

Regarding your proposed steps, you usually create a volume group before creating logical volumes (step 3b).

pvcreate
vgcreate
lvcreate
 
Old 08-04-2005, 01:25 AM   #5
Neowulf
LQ Newbie
 
Registered: Aug 2004
Location: Brisbane, Australia
Distribution: RHE 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
Excellent :)

Quote:
Originally posted by WhatsHisName
That will work fine, but it didn't sound like you had any room available on the disk to do that. The idea is to get the data out of the way before you create the physical volume.

Regarding your proposed steps, you usually create a volume group before creating logical volumes (step 3b).

pvcreate
vgcreate
lvcreate
Thanks for the advice, worked a treat.

Neowulf.
 
  


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
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 02:11 PM
Various Fun wdavidson Linux - General 4 09-29-2003 11:13 AM
Just for fun neo77777 General 0 09-24-2002 07:42 PM
Just for FUN! How would you... macdudelx Linux - General 18 08-11-2002 02:34 AM
Fun with my new billsabub Linux - Software 4 02-09-2001 04:16 PM


All times are GMT -5. The time now is 02:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration