LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2007, 07:11 PM   #1
g_hickley
LQ Newbie
 
Registered: Apr 2007
Location: Melbourne, Australia
Posts: 4

Rep: Reputation: 0
Resizing Partition


I am using ClarkConnect, a great all in one firewall/proxy server/file server/SMTP gateway/etc. It uses RedHat I believe. I had a 200GB hard drive in this which I wanted to resize to 500GB. Attempting to do this is deep into undocumented territory. I have spent 2 days on this. I really want to make this work but am close to giving up.


Steps taken so far:
Cloned 200GB disk to 500GB disk.
Installed 500GB drive and verified machine continues to operate.
Booted using a GParted Live CD, then used GParted to create an additional partition in the free space.

Then attempted to resize following the 'The resize test procedure' section in this Red Hat Knowledgebase article .

This is my current state of play:

/dev/hda2 was the existing partition
VolGroup00 was the existing volume group
/dev/VolGroup00/LogVol00 was the existing logical volume

pvscan:
PV /dev/hda2 VG VolGroup00 lvm2 [186.19 GB / 0 free]
PV /dev/hda3 VG VolGroup00 lvm2 [279.44 GB / 0 free]

vgdisplay VolGroup00
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizeable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Current PV 2
Act PV 2
VG Size 465.62 GB
PE Size 32.00 MB
Total PE 14900
Alloc PE / Size 14900 / 465.62 GB
Free PE / Size 0 / 0
VG UUID CfXhs4-f9y7-v7ck-CaYB-tIek-HipR-EFNRyt

lvscan:
ACTIVE '/dev/VolGroup00/LogVol00' [185.1 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [280.44 GB] inherit

Attempting to use ext2online results in:

ext2online /dev/VolGroup00/LogVol00
ext2online v.1.1.18 - 2001/03/18 for EXT2FS 0.5b
ext2online: new size is same as current (485455792)

Can anyone provide any assistance on a way forward with this?
 
Old 04-07-2007, 09:29 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Why did you create LogVol01 ???.
Don't you need the space available (in the vg) so you can lvextend LogVol00 ???.
Then do the filesystem ???.

I would also have my doubts that you can do the (filesystem) resize online if it contains the root.

Caveat: I don't use LVM, so treat all the above with caution. I do intend to head that way (LVM2), so these issues are of interest.
 
Old 04-07-2007, 11:45 PM   #3
g_hickley
LQ Newbie
 
Registered: Apr 2007
Location: Melbourne, Australia
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00
Why did you create LogVol01 ???.
Don't you need the space available (in the vg) so you can lvextend LogVol00 ???.
Then do the filesystem ???
I followed the RedHat article, maybe I made a mistake. But now it is impossible to remove the LogVol01.

lvremove /dev/VolGroup00/LogVol01:
Can't remove open logical volume "LogVol01"

vgreduce VolGroup00 /dev/hda3:
Physical volume "/dev/hda3" still in use

Quote:
Originally Posted by syg00
I would also have my doubts that you can do the (filesystem) resize online if it contains the root.
The root is contained in /dev/hda1 I believe.

I cannot believe there is so little documentation on LVM. That's the biggest flaw with Open Source software, great products but a disgraceful lack of documentation.

I'll give it a couple more hours of attempts then I'll give up on this and switch to ISA Server.

Last edited by g_hickley; 04-07-2007 at 11:50 PM.
 
Old 04-08-2007, 12:16 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Perhaps you should search more - start here.
 
Old 04-08-2007, 01:03 AM   #5
g_hickley
LQ Newbie
 
Registered: Apr 2007
Location: Melbourne, Australia
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00
Perhaps you should search more - start here.
Already been through that article. Again it has gaps.
 
  


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
Resizing Partition? Frank Soranno Linux - Software 1 05-11-2006 08:36 AM
Resizing Partition mgichoga Linux - Software 1 12-30-2005 01:23 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 01:42 PM
need help resizing an ext3 partition with an underlying partition... spiroth10 Linux - Software 1 07-30-2004 01:21 PM
Partition Resizing BxBoy Linux - Software 10 02-20-2004 12:00 PM


All times are GMT -5. The time now is 07:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration