Flatcar
Flatcar copied to clipboard
Flatcar systemd units fail at first boot after disk is resized (resize done because the storage was full)
Description
If the Flatcar storage is full, a power off is made and a subsequent disk resize is performed. After the instance is started, the partition is resized automatically (vda9) but some of the systemd units fail to start.
Impact
Low. If another reboot is performed, the systemd units are back running fine.
Environment and steps to reproduce
How to reproduce:
- create a Flatcar qemu-kvm instance using the https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.sh
- in the vm, create a more than enough big file using
dd if=/dev/zero of=toobig.file bs=1G count=1000
which ends when it runs out of space - shutdown the vm
- start the vm - a bunch of systemd services are in failed state (expected).
- shut down the vm
- qemu-img resize to a bigger size
- start the vm -- the same systemd services are in failed state (unexpected), but the vda9 has been resized
- reboot the vm (systemd services are not in the failed state).
The image used was https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img
The issue is that there are systemd units starting before the resize has been performed.
Failed units:
Failed Units: 3
systemd-hwdb-update.service
systemd-journal-catalog-update.service
systemd-update-done.service