Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-03-2005, 09:41 AM   #1
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Resizing an ext3 LVM Partition

Has anyone done this?
I can't find a single thing out there.
As far as the LVM portion of it is concerned - I'm not worried about that - I can resize the VG and LV no problem.
My question, is what is the proper syntax for the resize2fs command?
There is a size variable, which is ambiguous.
I have seen numerous example online regarding how to figure the size you are
reducing to, using cylinders to find the number of 4K blocks. However, this is an LVM partition, so I'm not sure how to proceed.
It is /dev/hdb:

1 VG (rootvg - /dev/rootvg)

3 LV's:

rootlv - /dev/rootvg/rootlv - 35G, this is the partition being resized. Need to shrink by 7G

lg_dumplv00 - /dev/rootvg/lg_dumplv00 - 512M - swap

lg_dumplv01 - /dev/rootvg/lg_dumplv01 - 512M - swap

PE size is 32768 with 1176 PE allocated to /dev/hdb

The FS for rootlv is ext3

How to do I figure the size to pass to resize2fs?

Old 09-04-2005, 02:34 AM   #2
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
There was another thread on this issue:


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
LVM: Resizing the root partition fulat2k Linux - General 6 01-08-2012 04:35 PM
Resizing Ext3 partition to replace XP Sigmund Linux - General 7 01-26-2005 10:48 AM
success: resizing ext3 partition Berhanie Slackware 3 01-18-2004 04:44 AM
Resizing a partition (ext3) herc Linux - Hardware 1 12-26-2003 04:17 PM
Resizing EXT3 partition using parted??? Hegemon Linux - General 1 01-21-2003 12:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration