growpart doesnt work with recent versoions of fdisk tested with gentoo openstack image # growpart /dev/vda 1 attempt to resize /dev/vda failed. sfdisk output below: | Backup files: | MBR (offset 0, size 512): /tmp/growpart.9UuYGN/orig.save-vda-0x00000000.bak | | Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors | Units: sectors of 1 * 512 = 512 bytes | Sector size (logical/physical): 512 bytes / 512 bytes | I/O size (minimum/optimal): 512 bytes / 512 bytes | Disklabel type: dos | Disk identifier: 0xe4a8d41d | | Old situation: | | Device Boot Start End Sectors Size Id Type | /dev/vda1 * 2048 6289407 6287360 3G 83 Linux | | >>> Script header accepted. | >>> Script header accepted. | >>> Script header accepted. | >>> Script header accepted. | >>> line 5: unsupported command | | New situation: | Disklabel type: dos | Disk identifier: 0xe4a8d41d | | Device Boot Start End Sectors Size Id Type | /dev/vda1 * 2048 6289407 6287360 3G 83 Linux | Leaving. | FAILED: failed to resize ***** WARNING: Resize failed, attempting to revert ****** 512+0 records in 512+0 records out 512 bytes copied, 0.00393937 s, 130 kB/s ***** Restore appears to have gone OK ****
This is how I got it working again, which image did you test with? echo '~sys-apps/util-linux-2.35.2 ~amd64 # sfdisk growpart fix' >> /etc/portage/package.accept_keywords/util-linux
I tested it with gentoo-systemd-20200521
go ahead and check the image from june, iirc that's the first release with the fix (as it's actually a util-linux error, not a growpart error).