LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-27-2009, 05:03 PM   #1
Lee_Ball
Member
 
Registered: Jul 2005
Location: Manchester (UK)
Distribution: Fedora CentOS
Posts: 132

Rep: Reputation: 18
Growing an LVM Partition in Fedora 10 using Logical Volume Manager


OK, please see the image attached to this thread.

Essentially I originally setup Fedora 10 dual booted with XP, I then found I'd been daft and given my Windows partition FAR too much room, so I trimmed it back by 50GB, this has left me with 50GB of unpartitioned space which I'd like to add to my LVM, if I could work out how.

Let me know if you need more information.

Thanks


Stupidly I've just gotten myself a step further, I used GParted to initialize the drive and leave it unformatted, I could then add it to my LVM using the Logical Volume Manager GUI but df is still listing the same space as before.

Still looking into this.
Attached Images
File Type: png Screenshot-Logical Volume Management.png (75.7 KB, 22 views)

Last edited by Lee_Ball; 01-27-2009 at 05:07 PM.
 
Old 01-29-2009, 08:14 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,380

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
The easiest and lowest risk way would be to create a new lvm partition (type 8e) in the unused space with your preferred partition editor and then run pvcreate and vgextend commands on it. The manual pages will give you the details but a quick example would be

pvcreate /dev/sdaN (where sdaN is your newly created lvm partition)
vgextend VolGroup00 /dev/sdaN

The alternative (assuming the free space is at the end of your existing PV) would be to resize the partition and then run pvextend on it to make it available, but that's much higher risk and unless your comfortable enough with disk partitions and lvm to figure out how for yourself I'd recommend you go with the first option.

As always before making changes to disk storage, make sure you've got a good backup in case something bad happens.

edit:

Forgot to add, to make the new space available to you filesystems (so that df shows it), you'll then need to do a lvextend and then extend the filesystem on that LV. How varies depending on which filesystem you use.

Last edited by GazL; 01-29-2009 at 08:16 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 07:21 AM
Logical volume size growing SKVDurai Linux - Server 3 08-06-2008 09:33 AM
Shrinking a Logical Volume With LVM jimmyjiang Red Hat 1 02-28-2008 04:45 PM
LVM: The Impact of Reducing a Logical Volume Size? muff Linux - General 0 07-27-2007 02:18 AM
LXer: Consistent backup with Linux Logical Volume Manager (LVM) snapshots LXer Syndicated Linux News 0 06-02-2006 04:21 PM


All times are GMT -5. The time now is 11:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration