I've decided to turn this into a config option and leave it off by default (block on resize2fs).
this is pretty much worst possible scenario for io * on disk file was stored as 1.4G ish (possibly larger, but sparse) * hypervisor grows it to some larger size (10 or 20G or something) but probably leaves it sparse. * initramfs grew the partition table on the disk * resize2fs is run, which does loads of reads and writes * at the same time the system is under intense IO to boot itself. The end result is that it changes people's expectation and possibly doesn't save much (my very small number of non-scientific tests showed small savings at best). But clearly, if you were resizing to 100G, that might take 5 minutes, and you might be able to finish boot and use the system during 4 of that 5. So, I've just committed a change to allow this to be set by a user by setting cloud-config 'resize_rootfs' to a value of 'noblock'. ** Changed in: cloud-init Status: New => Fix Committed ** Changed in: cloud-init Importance: Undecided => Low ** Changed in: cloud-init (Ubuntu) Status: New => Triaged ** Changed in: cloud-init (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/961226 Title: cloud-init should run resize2fs in the background To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/961226/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs