dev-resources.site
for different kinds of informations.
How to extend the disk space of an AWS EC2 instance
Published at
8/19/2024
Categories
Author
James Murdza
Categories
1 categories in total
open
This works for instances running Amazon Linux:
0. If you need to free up space quickly
Delete some journals:
sudo journalctl --vacuum-size=100M
1. Add space in the AWS console
- Go to EC2, and select your instance.
- Scroll to the horizontal tab bar, and click storage.
- Click on the volume ID.
- Select the volume, and under actions, click "Modify Volume". If this is grayed out, you have to wait.
- Enter the new disk size and click modify.
2. Grow the partition
-
Determine the partition you want to grow:
sudo lsblk
-
Use growpart to grow the partition, changing xvda to the name of the partition you just determined:
sudo growpart /dev/xvda 1
-
Extend the filesystem to use the additional space:
sudo resize2fs /dev/root
Articles
12 articles in total
How to extend the disk space of an AWS EC2 instance
currently reading
Host your own PaaS (platform as a service) on Amazon Web Services
read article
🧑💻 12 Discord Communities for Learning to Code
read article
Host your own web-based collaborative IDE
read article
The halting problem in computer science...actually explained
read article
Seven Sites to Find Free Low-Code App Templates
read article
Five APIs for AI text-to-speech 🗣️
read article
The 20 most used React libraries
read article
SEO for websites with multiple languages 🇬🇧🇫🇷🇨🇳
read article
The minimalist guide to deploying a website in 2023 🧘
read article
The only Docker cheatsheet you need 🐳
read article
Ultimate Homebrew Cheatsheet 🍺
read article
Featured ones: