- Newest
- Most votes
- Most comments
Yes, it is possible to expand the system disk on your production server without changing the server or causing significant downtime. Here's how you can proceed:
-
Increase EBS volume size: You can increase the size of your EBS volume through the AWS Management Console, AWS CLI, or AWS SDKs. This can be done without detaching the volume or restarting the instance.
-
Extend the partition: After increasing the EBS volume size, you'll need to extend the partition on your Linux instance. You can use the 'growpart' command for this purpose.
-
Resize the file system: Once the partition is extended, you'll need to resize the file system to utilize the newly available space. For ext3/ext4 filesystems, use the 'resize2fs' command. If you're using XFS, use 'xfs_growfs' instead.
-
Verify the changes: After completing these steps, use the 'df -h' command to confirm that the additional space is now available to your system.
It's important to note that while this process can be done without changing the server, there might be a brief performance impact during the resizing process, especially during the file system expansion step. As a precaution, it's always recommended to back up your data before making any changes to your storage configuration.
If you're not comfortable performing these operations yourself, consider seeking assistance from AWS support or a qualified professional to ensure the process is carried out correctly and to minimize any potential risks.
Sources
How do I increase Disk Space? | AWS re:Post
EC2 Storage increased in AWS but not showing in Linux server | AWS re:Post
Increase storage rocky linux 7 ec2 | AWS re:Post
I understand to free up space, you cleared backup files and shortened data retention. You can increase disk space as suggested by repost AI. However, you can also consider storing logs and backup in S3 bucket and if it's server backups, then you can back it up automatically in the Backup service. This is better practice than saving backups in the server itself.
Relevant content
- asked 3 months ago