Question

I have created a macOS Catalina EC2 instance on AWS with an EBS volume size of 60 GB. Then I resized the volume on AWS to 120 GB and tried the following commands to resize the APFS container accordingly:

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

Unfortunately the last command gives me the following output:

Started APFS operation Error: -69743: The new size must be different than the existing size

That's the output of "diskutil list":

Output of diskutil list on my macOS instance

I am not sure about what's happening, but I am wondering, would it be possible to merge disk1 and disk0 into one disk? Without breaking the system, and where I could install applications as "normal".

Was it helpful?

Solution

Solution: I had to restart the EC2 instance and the command then worked.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top