From time to time a disk partition becomes full and it becomes desirable to grow the partition. Since I often don't remember how to do this, I wrote this short description to keep track of how to do it.
Extending the LVM partition
The first step is to extend the size of the LVM partition. This is done easily by using the lvextend (8) command. You just need to specify the amount and the LVM partition. In my case, the vg02-ext volume was using 60G and the +40G command will grow its size to 100G. Note that you can run this command while your file system is mounted (if you grow the size of your LVM partition).
Preparing the ext4 filesystem for resize
Before resizing the ext4 filesystem, you must make sure it is not mounted:
The file system must be clean and you should run the e2fsck (8) command to check it:
Resizing the ext4 filesystem
The last step is to resize the ext4 file system by using the resize2fs (8) command. The command can enlarge or shrink an unmounted file system of type ext2, ext3 or ext4. The command only needs the block device path to operate.
After the resize, we can re-mount the ext4 partition: