aws / ec2-macos-init

EC2 macOS Init is the launch daemon used to initialize Mac instances within EC2.
https://aws.amazon.com/ec2/instance-types/mac/
Apache License 2.0
150 stars 19 forks source link

GrowRootAPFSVolume Module errors for default 100 GB volumes #44

Closed mattcataws closed 1 year ago

mattcataws commented 1 year ago

After the incorporation of ec2-macos-utils in the new GrowRootAPFSVolume module, the following error can occur for instances launched with the default 100 GB EBS volume:

2023/08/15 13:43:47.630235 Error while running module [GrowRootAPFSVolume] (type: command, group: 3) with message:  and err: ec2macosinit: error executing command [[/bin/zsh -c ec2-macos-utils grow --id root]] with stdout [] and stderr [time="15 Aug 23 13:43 PDT" level=info msg="Configuring diskutil for product" product="macOS Ventura 13.4.1"
time="15 Aug 23 13:43 PDT" level=info msg="Attempting to grow container..." device_id=disk5s2s1
time="15 Aug 23 13:43 PDT" level=info msg="Checking if device can be APFS resized..." device_id=disk5s2s1
time="15 Aug 23 13:43 PDT" level=info msg="Device can be resized"
time="15 Aug 23 13:43 PDT" level=info msg="Repairing the parent disk..."
time="15 Aug 23 13:43 PDT" level=info msg="Repairing parent disk..." parent_id=disk4
time="15 Aug 23 13:43 PDT" level=info msg="Successfully repaired the parent disk"
time="15 Aug 23 13:43 PDT" level=info msg="Fetching amount of free space on device..." device_id=disk5
time="15 Aug 23 13:43 PDT" level=warning msg="Available free space does not meet required minimum to grow" required_minimum="1.0 MB" total_free="41 kB"
Error: not enough space to resize container: 40960 bytes available]: exit status 1
2023/08/15 13:43:47.630350 Successfully completed processing of priority level 3

This should be addressed by https://github.com/aws/ec2-macos-utils/issues/5.

mattcataws commented 1 year ago

Duplicate of https://github.com/aws/ec2-macos-init/issues/41, closing in favor of the previous issue.