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 08-02-2005, 10: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, 05:15 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
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 it’s “no”.
 
Old 08-03-2005, 05: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 it’s “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, 12:17 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
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, 12: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



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 01:11 PM
Various Fun wdavidson Linux - General 4 09-29-2003 10:13 AM
Just for fun neo77777 General 0 09-24-2002 06:42 PM
Just for FUN! How would you... macdudelx Linux - General 18 08-11-2002 01:34 AM
Fun with my new billsabub Linux - Software 4 02-09-2001 03:16 PM

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

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