I have upgraded an EC2 instance from m4 to m5, and now want to increase the size of the attached EBS storage volume. I am using an solid-state (SSD) EBS volume mounted as an NVMe drive.
After some research, I performed this command:
growpart /dev/nvme0n1 p1
After doing so, I received this error message in response:
FAILED: partition-number must be a number
I have tried to find instructions in the AWS docs and forums, but have not found a solution to this error message.
How can I increase the size of the EBS volume?