EC2 Mac Metal EBS Root Volume

0

Hello!

I'm spinning up a new mac metal instance and am having problems with the root disk size. I change the root size to 100GB when I setup the instance, but the OS is installed to an external drive with only 32GB of space (11GB is free space). Does anyone have ideas on how to resolve this? Installing just the basic Xcode software and pre-requisites fills up this external drive that the OS is installed to.

Thank you in advance!

preguntada hace 3 años856 visualizaciones
5 Respuestas
0

Here is a copy of the output from diskutil; I can't seem to expand any of the containers, partitions, etc.

diskutil list
/dev/disk0 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: *214.7 GB disk0

/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *214.7 GB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk3 32.0 GB disk1s2

/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk2

/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +32.0 GB disk3
Physical Store disk1s2
1: APFS Volume Macintosh HD - Data 6.1 GB disk3s1
2: APFS Volume Preboot 79.3 MB disk3s2
3: APFS Volume Recovery 529.0 MB disk3s3
4: APFS Volume VM 2.1 GB disk3s4
5: APFS Volume Macintosh HD 11.0 GB disk3s5

respondido hace 3 años
0

Thank you for reaching out. Once you have increased the size of the EBS volume on your Mac1 instance, you can execute following commands within macOS guest to increase the size of your APFS container.

Copy and paste the first three lines

PDISK=$(diskutil list physical external | head -n1 | cut -d" " -f1)
APFSCONT=$(diskutil list physical external | grep "Apple_APFS" | tr -s " " | cut -d" " -f8)
sudo diskutil repairDisk $PDISK

Accept the prompt with "y", then paste this command

sudo diskutil apfs resizeContainer $APFSCONT 0

Since the EBS volume was resized after boot, an instance reboot is required before the additional disk size is available for your use.

We are also updating our documentation to reflect this use-case and appreciate your feedback here.

AWS
respondido hace 3 años
0

Thank you SO much; this worked great!

respondido hace 3 años
0

It´s interesting that you have to update the documentation only after customers ask for "this usecase". The usecase of using XCode to develop iOS apps is the main use case you are advertising on your website! Now many users are fiddling around with this trying to make it work and wasting money because they trusted the advertisement on the website.

dave444
respondido hace 3 años
0

It seems like this has still not been added to the docs anywhere, I had to search the forums for it.

AliA
respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas