LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-26-2007, 10:43 AM   #1
grant-skywalker
Member
 
Registered: Jul 2005
Location: Jakarta / Kuala Lumpur
Distribution: Slackware, Debian, Ubuntu, Centos
Posts: 40

Rep: Reputation: 15
LVM2 - CentOS 4.4 - Online resizing


Hi all,

I have search through a lot of web sites regarding about needing to resizing (especially reducing disk space) without unmounting the partition, but no avail.

I'm using CentOS 4.4, installed with LVM2, wanted to resize my /home partition to make rooms for /var (for expanding) without unmounting the partition.

Does anyone come across the step by steps of how to reduce size, then increase/expand the partition size online?

Okay, i'm running ext3, on CentOS(it's default, by the way).

Can someone shed a light?

Thanks
 
Old 03-26-2007, 04:31 PM   #2
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
follow this link to learn about resizing:
http://www.tldp.org/HOWTO/text/LVM-HOWTO
 
Old 03-27-2007, 02:37 AM   #3
grant-skywalker
Member
 
Registered: Jul 2005
Location: Jakarta / Kuala Lumpur
Distribution: Slackware, Debian, Ubuntu, Centos
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XaViaR
follow this link to learn about resizing:
http://www.tldp.org/HOWTO/text/LVM-HOWTO
Hi XaViaR,

Thanks, that was my first reference. In fact it does not have what i'm looking for. I wanted to resize the partition without unmounting it.

Thanks.
 
Old 03-27-2007, 01:40 PM   #4
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
is this what you are looking for?

---- EXTEND A LOGICAL VOLUME ----
---------------------------------

-- extend a logical volume --
lvextend -L+5G /dev/system/home
or
lvextend -L12G /dev/system/home

-- resize volume --
ext2online or resize2fs (requires umount)

I believe you can do `ext2online` without a remount; however, you cannot do resize2fs w/o a remount: remount requiried.
 
Old 03-27-2007, 01:47 PM   #5
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
below are two more links that you should read.

http://kbase.redhat.com/faq/FAQ_85_4841.shtm
http://kbase.redhat.com/faq/FAQ_96_4842.shtm

good luck!
 
Old 03-27-2007, 11:55 PM   #6
grant-skywalker
Member
 
Registered: Jul 2005
Location: Jakarta / Kuala Lumpur
Distribution: Slackware, Debian, Ubuntu, Centos
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks a lot.

I'm reading through the links you provide.
 
Old 03-27-2007, 11:58 PM   #7
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
Are you meaning something like GParted?

http://distrowatch.com/table.php?distribution=gparted
 
  


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
Centos 4 runs out of memory where Centos 3 didn't! czamora Red Hat 5 12-21-2006 03:21 PM
Online ext3 FS Resizing? eglow Linux - Software 2 11-04-2006 11:55 AM
resizing lvm2 physical volume fakie_flip Linux - Software 3 08-07-2006 01:18 PM
Whats the differnce between Centos and CentOS? duffmckagan cAos 1 06-12-2005 01:23 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 03:36 AM


All times are GMT -5. The time now is 11:18 PM.

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