LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 01-15-2009, 11:25 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,429
Blog Entries: 6

Rep: Reputation: 51
Extending LVM partition??


I have Installed a new RHEL 4 AS Update 6 on my HP Proliant machine.
I created LVM during the installation phase. Now I want to extend one of the /dev/VolGroup00/tomcat partition from 1 GB to 2 GB.
I ran the command :

lvextend -L2G /dev/volgroup00/tomcat
and it says:

Successfuly extended.

Do I need to run any more command for the same?
Is it Done?
 
Old 01-16-2009, 01:21 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Hi.

Does "df -h" report that your partition har increased in size? I wouldn't think so, so you have to run "mkfs.ext3" (or somthing like that depending on your file system type). Are you running ext3?

EDIT: As brianmcgee points out, you should run resize2fs, NOT mkfs. My bad (too early in the morning).

Last edited by kenneho; 01-16-2009 at 01:36 AM.
 
Old 01-16-2009, 01:25 AM   #3
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
You need to enlarge your filesystem to fill out the new available space. Do so with the following command:

Code:
# resize2fs /dev/volgroup00/tomcat
 
Old 01-16-2009, 02:43 AM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 576

Rep: Reputation: 30
Do reisefs extend the partition without a valid file system from the new disk? Is it possible to make filesystem(using mkfs or mk2efs) on a volume group?

How/where the file system created here for the new VG attached to LVM using resize2fs?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem extending EXT3 on LVM using resize2fs divot_powell Linux - Software 2 11-20-2007 02:54 AM
Extending home partition with LVM The_Outlander Slackware 2 01-03-2007 08:13 PM
Extending /home with additional HDD but no LVM derekluaxp Linux - Newbie 5 02-25-2006 09:35 AM
lvm extending logical partation Ammad Linux - General 0 09-25-2005 04:39 AM
extending ext3 lvm Kroenecker Linux - Newbie 2 12-31-2003 06:51 PM


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