LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-22-2005, 06:08 PM   #1
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Rep: Reputation: 15
How do I resize LVM volume group?


I have an 80 GB hard drive on /dev/hdb with the following partitions:

/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9964 79931407+ 8e Linux LVM

The Linux LVM is split as follows with 5.72GB free space at the end of the Volume Group.

ACTIVE '/dev/VolGroup/LogVol_Root' [70.00 GB] inherit
ACTIVE '/dev/VolGroup/LogVol_Swap' [512.00 MB] inherit

I want to remove the free space from the volume group and turn it into a separate physical primary partition.

How do I do this?
 
Old 10-23-2005, 01:22 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
You would need pvresize to change the underlying physical volume/partition size(s), but pvresize has not been implemented as an lvm command (yet). Stay Tuned!

But today, you could move everything to another drive and reformat the existing drive as you wish. It's a truly good reason to own a huge USB drive.
 
Old 11-30-2006, 11:18 AM   #3
SilentDeath
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Lightbulb How do I resize LVM volume group?

I also wanted to resize an LVM partition, most sites said it was impossible, this is what I did:

Resized the logical volume with pvresize as WhatsHisName said. But the partition itself remained unaffected and parted didn't want to resize it.

So what I did was use WinHEX, which is an excellent program, to directly modify the partition table.

I changed “Sectors in partition” by dividing the number of bytes I wanted by 512 which gives sectors, this could be different for other users. I ignored other values.

As safeties I left a buffer zone between partitions. I then used gparted to create the 2 extra partitions I needed.

I'll report later how this works out. For the moment is seems to be working splendidly.
 
Old 12-02-2006, 10:22 AM   #4
Lsatenstein
Member
 
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora 31and Tumbleweed) Gnome versions
Posts: 311
Blog Entries: 1

Rep: Reputation: 59
What lvm allows you to do is resize a file system that is part of a lvm. So, you can shrink one system and expand another, or add or remove other physical volume groups.
 
Old 07-28-2007, 01:54 PM   #5
mike-g2
LQ Newbie
 
Registered: Apr 2004
Distribution: CentOS 5 x86_64
Posts: 16

Rep: Reputation: 0
try evmsgui

For future reference, I was able to resize a lvm (or so it seems... haven't rebooted yet) using EVMS's gui.

http://evms.sourceforge.net/

Mike
 
Old 04-22-2009, 08:45 PM   #6
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 43

Rep: Reputation: 15
Did it work?
i need to do a similar thing.
thanks
 
  


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 Off
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 08:21 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 05:17 PM
resize LVM partition bkesting Linux - General 3 06-17-2005 10:28 AM
Cant resize with LVM plz help sendas4 Linux - General 4 10-21-2004 08:05 PM
LVM Problem - vgimport - wrong number of physical volumes to import volume group Anything1 Linux - Software 0 09-06-2003 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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