live resizing of ext4 root filesystem on linux

Recently one of my virtual Ubuntu servers ran out of disk space. The virtual hardware was extended and some gigs of new disk space were available. The problem was that the machine was not available to me locally, I had only remote access via SSH.

I know I had to resize the partitions to be able to make usage of the newly available disk space – found several entries on the web but all told me that I had to boot into a live disk and use GParted. This meant that I had to drive several hundreds of kilometres to be able to do so ..didn’t really like that option.

After doing some Google „research“ last weekend I found this GLORIOUS blog entry on — it IS possibly to resize the partitions and the ext4 filesystem „live“ even if it is a live system: