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!

질문됨 3년 전856회 조회
5개 답변
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

답변함 3년 전
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
답변함 3년 전
0

Thank you SO much; this worked great!

답변함 3년 전
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
답변함 3년 전
0

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

AliA
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠