LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-19-2010, 08:46 PM   #1
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Rep: Reputation: 0
How to Increase partition size in RHEL


Hi All,

Good Morning!

I wanted to increase the partion size of /var from the current 10 GB to 15 GB, tried all the ways but not able to. Can someone please help?

Through various help, I have already increased the size of /dev/vg00/lvol2 from 10 GB to 13 GB, lvdisplay showing the same but df -h still showing 10 GB only.

Here are the current details for reference -

Disk group info
===================

[root@venus ~]# vgdisplay -C
VG #PV #LV #SN Attr VSize VFree
vg00 1 6 0 wz--n- 123.00G 42.00G

DF output
=========

[root@venus ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 4.9G 875M 3.8G 19% /
/dev/mapper/vg00-lvol1
9.7G 2.8G 6.5G 31% /usr
/dev/mapper/vg00-lvol2
9.7G 5.7G 3.5G 62% /var
/dev/mapper/vg00-lvol3
4.9G 254M 4.4G 6% /opt
/dev/mapper/vg00-lvol4
992M 46M 896M 5% /home
/dev/mapper/vg00-lvol5
2.0G 70M 1.8G 4% /tmp
/dev/mapper/vg00-lvol6
50G 1.7G 46G 4% /backup
/dev/sda1 99M 27M 67M 29% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/scd0 3.5G 3.5G 0 100% /media/cdrom



lvdiplay output
================

[root@venus ~]# lvdisplay
--- Logical volume ---
LV Name /dev/vg00/lvol1
VG Name vg00
LV UUID qv9bZw-bF5S-QKQW-ttYP-0OlO-zsyC-FNQO8h
LV Write Access read/write
LV Status available
# open 1
LV Size 10.00 GB
Current LE 320
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/vg00/lvol4
VG Name vg00
LV UUID e0WNJy-tqUV-XXBS-a5Y4-8GX1-33vP-UjnmK1
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/vg00/lvol3
VG Name vg00
LV UUID RyoFjI-gw04-OK0D-WWVJ-JvMI-deTS-4kLuXO
LV Write Access read/write
LV Status available
# open 1
LV Size 5.00 GB
Current LE 160
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

--- Logical volume ---
LV Name /dev/vg00/lvol5
VG Name vg00
LV UUID wtB1rc-Orzd-qtY6-dmU9-okgz-UphL-LKdXrU
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3

--- Logical volume ---
LV Name /dev/vg00/lvol2
VG Name vg00
LV UUID YGfHyZ-Dh0y-QA6b-3e1u-e69v-xyzm-2aZwU0
LV Write Access read/write
LV Status available
# open 1
LV Size 13.00 GB
Current LE 416
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4

--- Logical volume ---
LV Name /dev/vg00/lvol6
VG Name vg00
LV UUID hOsbX9-TwCQ-pAy1-yEL5-B05b-pQp0-8AOfOF
LV Write Access read/write
LV Status available
# open 1
LV Size 50.00 GB
Current LE 1600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
 
Old 12-19-2010, 09:33 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Since you've expanded the LV, you just need to "resize2fs" or "ext2online" (depending on your RHEL version) /var. The filesystem doesn't yet know that the underlying device (the LV) is bigger.
 
Old 12-19-2010, 10:19 PM   #3
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Rep: Reputation: 30
This would work if you have a ext3 file system on /var:
Code:
# resize2fs -f -p /dev/vg00/lvol2
 
  


Reply



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 increase partition size? Uday123 Linux - Software 3 01-24-2010 07:28 PM
Increase partition size bmstephan Linux - Newbie 3 01-08-2009 11:31 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Increase Partition Size shane200_ Linux - Hardware 1 08-24-2006 12:06 PM
Increase Audit Log size in RHEL 3.0? spelltoronto Linux - Newbie 4 05-17-2005 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:01 PM.

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