[Novalug] resize ext3 w/o losing data

Paul unix@bikesn4x4s.com
Wed Jan 10 09:16:30 EST 2007


On Wed, January 10, 2007 8:53 am, Michael Stone wrote:
> On Wed, Jan 10, 2007 at 08:48:48AM -0500, gregory pryzby wrote:
>>What about this block of text?
>>
>>Now we resize our file system with resize2fs. resize2fs can resize
>>ext2 file systems, but not ext3 file systems, that's why we had to
>>turn /dev/sda1 to ext2.
>
> That's the part I'm talking about; I have no idea why that would be
> necessary. (I've resized a lot of ext3 filesystems, and never "turned
> one into ext2".) Even the comment at the bottom of the page asks the
> same question.

I've just done some resizing on my home server.  I upgraded the HD and
after DD'n to the bigger drive, used fdisk to epxand the partitions, and
used ex2online to expand the FS (while online).  I am also using LVM2, but
the FS is all the same.  Then I needed some extra space for Snapshots, so
I used resize2fs to reduce the size (offline).  Works great.  But when
using fdisk, gotta start the new one at the same block so as not to loose
the data, then reboot.




More information about the Novalug mailing list