Filesystem (ext4) resize failed on Ubuntu 12.04.4 LTS, following an mdraid expansion.
1 2 3 4 5 6
It quickly became clear that this operation was hanging and would not complete (unfortunately I did not capture a stack trace).
Ubuntu 12.04.4 LTS is using an older version of e2fsprogs and, therefore, resize2fs.
The following is the versioning disparity between the recent Ubuntu LTS releases (with the exception of 14.10) for the e2fsprogs package:
Upgrading Ubuntu was not an option for the client. Based on the information above, moving from Ubuntu 12.04.4 LTS to 14.10 would not give access to the latest version of e2fsprogs.
As of writing this, the latest version is 1.42.12.
Let’s compile our own.
Note, you should have the build-essential meta-package installed.
Warning, do not proceed with a filesystem resize(s) unless you have healthy backups in place.
1 2 3
Careful, you should specify a custom prefix here, I used /opt, but you can use whatever you prefer.
The new compiled collection of e2fs utilities will be located in the prefix you specified during the configure step previously.
1 2 3 4
Expand the filesystem using this custom compiled resize2fs binary–it may prompt you to perform an e2fsck before-hand.
1 2 3 4 5
Naturally, this is only a temporary measure–we’ll be moving this client to a newer operating system as soon as possible, as custom compiled packages strewn throughout an environment, is irresponsible and unsustainable.