Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd May 2006, 08:05 PM
craiger317 Offline
Registered User
 
Join Date: Mar 2005
Posts: 10
LVM resizing a PE?

Hi there, I have a harddisk which has LVM setup on it. Basically what I had was 1 Logical Volume that spanned the entire size of the disk.

What I wanted to do was reduce this logical volume to 31Gs (there was 28G of data on it) and then remove the rest of the unused PE to a place outside of LVM as a separate partition.

So what I did was use resize2fs to get the filesystem down to 30Gs, then I ran lvreduce and reduced the logical volume to 31Gs. I now want to take the remaining 40+Gs and partition it outside of LVM, but it doesn't appear that there is a way to do this?

vgreduce removes a PE that is not being used, however I only have 1 PE which spans the entire disk.

Is there any utility that will alow me to reduce the size of a PE? Like are we talking Partition Magic time here? If I used partition magic, and made sure to reduce the partition to someting > the size of the LV would everything work out fine?

Thanks in advance for any help you can provide,

Craig
Reply With Quote
  #2  
Old 23rd May 2006, 08:27 PM
jlc's Avatar
jlc Offline
Registered User
 
Join Date: May 2006
Posts: 83
Once you have done the entire disk as LVM, I believe that you are stuck with the current setup.

http://tldp.org/HOWTO/LVM-HOWTO/

If it was a seperate physical disk connected using LVM than its a slightly different story.
Reply With Quote
  #3  
Old 23rd May 2006, 08:55 PM
craiger317 Offline
Registered User
 
Join Date: Mar 2005
Posts: 10
Quote:
Originally Posted by jlc
Once you have done the entire disk as LVM, I believe that you are stuck with the current setup.

http://tldp.org/HOWTO/LVM-HOWTO/

If it was a seperate physical disk connected using LVM than its a slightly different story.
Oiy vey. Yeah, I tried using "parted" on it by issuing a: "parted /dev/sda" and then printing the partition table. It shows the first partition fine (its just formated ext3 and was my /boot mount), but the second partion is where LVM is setup and parted just kinda goes "huh?" when I do a "parted /dev/sda2" and try to print the partition info because it doesn't recognize the filesystem (cause its LVM with embedded ext3 in the logical volumes)

So I am screwed aren't I?

Craig.
Reply With Quote
  #4  
Old 23rd May 2006, 09:18 PM
craiger317 Offline
Registered User
 
Join Date: Mar 2005
Posts: 10
Actually, my whole point of this exercise was to to get my data off my logical volume onto my windows drive via a USB enclosure. So I was going to move all the data from the LVM logical volume to an ext2 formated partition on the same drive so windows would be able to read it (using an ext2 file system driver).

Now I found this: http://www.chrysocome.net/explore2fs it doesn't integrate a file system driver right into windows, its a standalone application that allows you to browse and export data from ext2/3 even if they are in LVM.

Thank god, it saved me.

Craig.
Reply With Quote
Reply

Tags
lvm, resizing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing partition .... Mr Tux Using Fedora 19 14th November 2005 03:51 PM


Current GMT-time: 16:13 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat