[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dynamic LVM resizing daemon?

[Petter Reinholdtsen]
> Now that ext3, lvm and the linux kernel support file system resizes
> without umounting,

I was tipped that this is new knowledge to some, so here is some more
information.  It is supposed since kernel 2.6.10, and the ext2online
(from ext2resize / all versions) and resize2fs (from e2fsprogs since
version 1.38+1.39-WIP-2006.03.29-1) will use it.  Just call lvresize
to extend the device size, and then resize2fs to tell the kernel to
resize the file system.  The file system need to the resize_inode
option enabled, either at mkfs time, or using the ext2prepare tool
(from ext2resize).  The latter is thought to be slightly dangerous.

As far as I know, ext3 can only be extended while mounted.  Shrinking
still require umount.

Petter Reinholdtsen

Reply to: