18.03.20, 11:34 CET, François Patte:
I need to extend my /home directory which is a logical volume.
I read that I can use lvextend without unmounting the /home partition.
But what about resize2fs that I must use after lvextend?
Yes, you can expand the size of a mounted ext-FS with resize2fs. [1]
Shrinking the does only work on an unmounted FS, though. But that's not
what you're going to do.
[1] (from man resize2fs)
The resize2fs program will resize ext2, ext3, or ext4 file
systems. It can be used to enlarge or shrink an unmounted file system
located on device. If the filesystem is mounted, it can be used to expand the
size of the mounted filesystem, assuming the kernel
and the file system supports on-line resizing. (Modern Linux 2.6 kernels will
support on-line resize for file systems mounted using
ext3 and ext4; ext3 file systems will require the use of file systems with the
resize_inode feature enabled.)
--
Regards
mks