Skip to main content

Command Palette

Search for a command to run...

Kodekloud - 100 Days of cloud (AWS) Day 50: Expanding EC2 Instance Storage for Development Needs

Updated
1 min read

Step 1: Login into the AWS environment using provided credentials.

Step 2: Go to EC2 Section and check the existing instance.

  • Check the volume attached to the instance and Click on the volume and click on it.

Step 3: Select Actions --> modify Volume option.

  • Modify the volume size from 8 to 12.
  • Verify the modification.

Step 4: Connect to the instance using aws-client using following command.

Step 5: To check the existing size of the disk use following command.

Step 6: To make sure the changes of expanding the volume partition reflect use following command.

Step 7: Get details of file system you want to extend using following command.

Step 8: To extend the file mounted on / (root) use following command and verify using df -hT.