LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Resizing an ext3 LVM Partition (http://www.linuxquestions.org/questions/linux-software-2/resizing-an-ext3-lvm-partition-359823/)

PenguinPwrdBox 09-03-2005 09:41 AM

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!

spooon 09-04-2005 02:34 AM

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


All times are GMT -5. The time now is 03:18 AM.