Fedora Linux Support Community & Resources Center
  #1  
Old 6th May 2005, 05:21 PM
ajwynn Offline
Registered User
 
Join Date: Apr 2005
Posts: 11
Is it possible to shrink a Logical Volume?

Hi,

I have a pretty stock install of FC3. My / partition is one large Logical Volume which takes up nearly the entire Volume Group. What I am trying to do is shrink the / partition by 1 GB and add a new partition to this Volume Group using the freed 1 GB. After reading numerous threads for the past couple of days, I see that you can extend a Logical Volume or Volume Group quite easily. Is it possible to do the opposite? Can I shrink the Logical Volume my / partition is on? I have tried to shrink the file system using resize2fs in Rescue Mode but just can't seem to get this to work. Has anyone ever accomplished this? Thanks for any responses.

Tony
Reply With Quote
  #2  
Old 6th May 2005, 06:10 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,059
The lv can be shrunk easily also, but the problem is the File Sytem inside the lv cna not.

First, there are at least 3 updates to the e2progs package which contain the tools for file systems.
Next, you can't shrink a ext3xattr directly, you must back it up, re-do the partition size, and recover.
But the problem is that there is no backup for these until you update the FC3 system to get the current tools, then you must download and install the dump-0.4b40-1.i386.rpm as it is the (supposidly) only backup for EXT3xattr systems that (correctly) handle the xttr attributes on dump AND restore.

I would advise to approach FC3 with a realistic expectations.
Manual install and config partitons exactly as needed.
Update everything to get all the working components, save important data to another device.
A 40 gig ata disk drive as min, a lot of fun, and a short life span.

Live hard, die young, and leave the 20th Century behind you.

If money and purpose are your needs, get another disto.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 7th May 2005, 03:11 AM
ajwynn Offline
Registered User
 
Join Date: Apr 2005
Posts: 11
Thanks for the reply. That makes a lot of sense. I didn't ever really plan on needing this little partition, I'm trying to test something. It's not worth all of that. I probably should have read a little more about LVM before installing Fedora. No biggie, I don't want a different distro. Just so I get this straight, the problem is never expanding a file system it's shrinking it. Logical Volumes can pretty much be resized larger or smaller at will, it's just the file system on the volume which is easily enlarged, but difficult to shrink? Thanks again.

T.
Reply With Quote
Reply

Tags
logical , shrink , volume

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
How to shrink your LVM root volume using rescue mode markkuk Guides & Solutions (Not For Questions) 19 3rd October 2009 06:58 PM
LiveCD Volume to Shrink Error khskinsfan Installation, Upgrades and Live Media 0 20th June 2009 07:22 PM
FC4: Installation warning (lvm) and fix: default partitioning shrink logical volume urilabob EOL (End Of Life) Versions 9 30th April 2006 01:21 PM
Shrink volume group? veritas Using Fedora 2 12th April 2005 01:55 PM
LVM: Trying to shrink a logical volume and add free space to end of drive for Windows LeAkEd Using Fedora 4 27th February 2005 05:43 AM


Current GMT-time: 01:16 (Saturday, 21-10-2017)

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