Juerg, On 25 January 2016 at 07:38, Juerg Haefliger <jue...@gmail.com> wrote: > I think the easiest solution is to backport cloud-utils from stretch. > See my subsequent comments: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784004#10
I've followed your suggestion and prepared a backport which is now on mentors[1]. As expected, following these instructions[2], it yield the same result that you got using the package from Stretch: cloud-utils from Jessie: Jan 30 03:00:18 ip-172-31-10-36 [CLOUDINIT] helpers.py[DEBUG]: Running config-growpart using lock (<cloudinit.helpers.DummyLock object at 0x7f09a7c43710>) Jan 30 03:00:18 ip-172-31-10-36 [CLOUDINIT] cc_growpart.py[DEBUG]: No 'growpart' entry in cfg. Using default: {'ignore_growroot_disabled': False, 'mode': 'auto', 'devices': ['/']} Jan 30 03:00:18 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '--help'] with allowed return codes [0] (shell=False, capture=True) Jan 30 03:00:18 ip-172-31-10-36 [CLOUDINIT] cc_growpart.py[DEBUG]: growpart unable to find resizer for 'auto': No resizers available cloud-utils from Jessie-backports: Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] helpers.py[DEBUG]: Running config-growpart using lock (<cloudinit.helpers.DummyLock object at 0x7f9a6f6ab710>) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] cc_growpart.py[DEBUG]: No 'growpart' entry in cfg. Using default: {'ignore_growroot_disabled': False, 'mode': 'auto', 'devices': ['/']} Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '--help'] with allowed return codes [0] (shell=False, capture=True) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Reading from /proc/345/mountinfo (quiet=False) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Read 2214 bytes from /proc/345/mountinfo Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Reading from /sys/class/block/xvda1/partition (quiet=False) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Read 2 bytes from /sys/class/block/xvda1/partition Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Reading from /sys/devices/vbd-51712/block/xvda/dev (quiet=False) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Read 6 bytes from /sys/devices/vbd-51712/block/xvda/dev Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '--dry-run', '/dev/xvda', '1'] with allowed return codes [0] (shell=False, capture=True) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '/dev/xvda', '1'] with allowed return codes [0] (shell=False, capture=True) Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] util.py[DEBUG]: resize_devices took 0.070 seconds Jan 30 03:05:19 ip-172-31-10-36 [CLOUDINIT] cc_growpart.py[INFO]: '/' resized: changed (/dev/xvda, 1) from 8585740288 to 42942089728 The root partition was successfully resized from ~8 to ~40 GB. There's one problem right now which is something that had already been said many times: "Backports isn't where one is supposed to pull bug fixes from"[3]. The solution would be a proposed-update to Jessie, but that has already been tried (I can think of #789214[4]) for other bugs in "cloud-init" with no success (the backport solution was mentioned there too). Worth mentioning that the package "cloud-utils" from stable wasn't installed (neither the "growpart" module was present on "/etc/cloud/cloud.cfg") on the 8.1 EC2 AMI (ami-116d857a)[5] by default, so the problem wasn't the growpart version alone, as it wasn't available at all. This didn't happened with the 8.2 EC2 AMI (ami-c5265faf)[6] which was announced on the "debian-cloud" mailing list, but is not on the Wiki yet. "cloud-utils" was already installed, but the backport alone didn't solved the problem, as it is using GPT. In this case, the package "gdisk" is also needed, so growpart can use the "sgdisk" command. Charles, Julien and Thomas, Do you guys think this should be "fixed with a backport"? If so, can any of you please sponsor this upload? Regards, Tiago. [1]: http://mentors.debian.net/package/cloud-utils [2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1001714#c1 [3]: https://lists.debian.org/debian-backports/2016/01/msg00086.html [4]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789214 [5]: https://wiki.debian.org/Cloud/AmazonEC2Image/Jessie [6]: https://lists.debian.org/debian-cloud/2015/11/msg00004.html -- Tiago "Myhro" Ilieve Blog: https://blog.myhro.info/ GitHub: https://github.com/myhro LinkedIn: https://br.linkedin.com/in/myhro Montes Claros - MG, Brasil