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 3rd December 2009, 10:03 PM
demoka Offline
Registered User
 
Join Date: Nov 2009
Posts: 26
linuxfirefox
LVM 2 Partition and Shrinking

How can I shrink a LVM2 partition in fedora 12 in order for me to install another distro. thank you
Reply With Quote
  #2  
Old 4th December 2009, 04:47 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
linuxfedorafirefox
LVM does not use partitions.

The logical and physical layers must be delt with from the top down.
LV's may need to be removed or moved, swap f/s on LV may need to be deleted and recreated.
As you can see, diskspace and dual booting is planed before the fact.

The mounted f/s can not be reduced so a Live CD system is needed.
System RescueCD-1.3.2
# boot systemrescue dolvm

size must be consistent.

On the unmounted f/s using the space wanted.
man resize2fs
resize2fs /dev/VG-LV fssize

On the LV using the space wanted
man lvresize
# lvm lvresize --size lvsize /VG/LV /dev/sdxn

on the PV using the space wanted
pvresize --setphysicalvolumesize pvsize /dev/sdxn

on the Linux partition type 83
fdisk /dev/sdx
change partition to new size, save, quit


SJ
__________________
Do the Math
Reply With Quote
Reply

Tags
lvm, partition, shrinking

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
Shrinking partition with Fedora helphelphelp Using Fedora 2 3rd July 2009 07:56 AM
Shrinking a partition that is managed by LVM? unclestoner666 Using Fedora 28 15th August 2008 04:42 AM
shrinking lvm partition usuing gparted yelserp87 Using Fedora 30 16th June 2008 08:56 PM
Shrinking a partition crossmr Using Fedora 5 15th June 2006 11:08 PM


Current GMT-time: 20:31 (Tuesday, 21-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