I tried to grow my LVM (on luks) root partition withlvresize -L +5G -r /dev/vg/lv-rootand found that the file system wouldn't grow because it was mounted.Now I found thishttps://ubuntuforums.org/showthread.php?t=1537569that says I should boot from something else, and doresize2fs /dev/vg/lv-root <size>My question is: can I omit the size and just let the filesystemfill the partition (which was successfully enlarged before)?I'd try it but afraid of messing things up.Using (up to date) Arch and the filesystem is ext4.
Growing LVM root
linux;debian;lvm
You can resize it without rebooting, doing:lvextend -r -l+100%FREE /dev/vg/lv-rootif you only have 5GB free on the volume group vgor lvextend -r -l+5G /dev/vg/lv-rootThis commands adds the free space from the volume group vg to the volume lv-root, and extends it; with -r it also extends the underlying filesystem at the same time at run time. (So no need to reboot it from something else)As for lvresize I think you have an extra space in the command. The command should be:lvresize -L+5G -r /dev/vg/lv-root