The root volume of AWS EC2 is a single partition.
I would like to configure it as follows.
One reason is backup.
When I made a backup with EBS snapshots, I thought EBS was two because I wanted to separate /
in the OS part and /home
in the user data.
2 assumed disk full due to /var
or /home
.
This is because docker rmi
was not possible when a large image was pulled to disk full by docker, etc., and EBS had to be increased and restarted.Also, I wanted to be able to get /
and /var
together during the backup, so I avoided separating them by EBS.
Do you have any good examples or ideas for AWS EC2's root volume disk partition?
amazon-ec2
/
and /home
have different backup frequencies, so I think we have to separate EBS.EFS may now be an option.
For /var
disk full, disk duota may be an option other than EBS or partitioning, and for xfs, disk quota can be set per directory, so /var
can be set to 10GB or less.
© 2025 OneMinuteCode. All rights reserved.