Cause :-
This error is caused due to less amount of space available in the root partition.
Solution :-
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
Extending the Linux file system:-
Steps to be taken:-
Step 1:-
Increase the size of the root volume from aws console
1.1 Select the root ebs volume attached to the aws instance
1.2 Click on the ACTION tab , and then click on modify volume
1.3 Increase the root volume size as per the requirements
Step 2:-
Check the file system of the root volume
2.1 df -h
2.2 file -s /dev/xvda1
2.3 Expand the modified partition (for linux formatted partition)
growpart /dev/xvda 1
2.4 Resize each file system
resize2fs /dev/xvda1
======================================================================
FOR NVME devices on AWS
Step 1:- Modify the size of root volume by using aws console (aws command line)
Step 2:-
2.1 Check the file system of the instance
file -s /dev/nvme0n1p1
2.2 lslbk
nvme0n1
|--nvme0n1p1
2.3 Expand the modified partition (for linux formatted partition)
growpart /dev/nvme0n1 1
2.4 Resize each partition
resize2fs /dev/nvme0n1p1
Comments
Post a Comment