LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-03-2005, 09:41 AM   #1
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
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?

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

Rep: Reputation: 48
There was another thread on this issue:
http://www.linuxquestions.org/questi...hreadid=352466
 
  


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
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


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