On Mon, Jan 22, 2024 at 10:59:55PM +0100, Miroslav Skoric wrote: [...]
> That last resize2fs (without params) would not work here, or at least it > would not work for my three file systems that need to be extended: / , /usr > , and /var . Maybe to extend each of them separately like this: > > lvextend --size +1G --resizefs /dev/mapper/localhost-root > lvextend --size +1G --resizefs /dev/mapper/localhost-usr > lvextend --size +1G --resizefs /dev/mapper/localhost-var Ah, I didn't know of lvextend's --resizefs option. It seems lvreduce has same. Their man pages refer to fsadm for that which is short in details. Still, yes, you have to unmount ext2/ext3/ext4 to reduce their sizes (you can "grow" them while mounted). Lvadm has an option to do that for you, no idea whether lvextend or lvreduce can pass it to lvadm via the --resizefs option. Cheers -- t
signature.asc
Description: PGP signature