xvda1 is 100% full, What is it? how to fix?
Solution 1:
That file, /
is your root directory. If it's the only filesystem you see in df
, then it's everything. You have a 1GB filesystem and it's 100% full. You can start to figure out how it's used like this:
sudo du -x / | sort -n | tail -40
You can then replace /
with the paths that are taking up the most space. (They'll be at the end, thanks to the sort
. The command may take awhile.)
Solution 2:
I know i am replying in this thread after nearly 5 years but it might help someone, I had the same problem, i had m4.xlarge instance df -h told that the /dev/xvda1 was full, - 100%
Filesystem Size Used Avail Use% Mounted on
udev 7.9G 0 7.9G 0% /dev
tmpfs 1.6G 177M 1.4G 12% /run
/dev/xvda1 7.7G 7.7G 0 100% /
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
tmpfs 1.6G 0 1.6G 0% /run/user/1000
i tried to solve it here are the steps
sudo find / -type f -printf '%12s %p\n' 2>/dev/null|awk '{if($1>999999999)print $0;}'
Helped me to know that it was the docker container that was talking all my space so i push all my container to my docker registry then did sudo rm -rf /var/lib/docker/ it cleared up my space :) hope it helps someone :)
Solution 3:
If you are running an EBS boot instance (recommended) then you can increase the size of the root (/) volume using the procedure I describe in this article:
Resizing the Root Disk on a Running EBS Boot EC2 Instance
http://alestic.com/2010/02/ec2-resize-running-ebs-root
If you are running an instance-store instance (not recommended) then you cannot change the size of the root disk. You either have to delete files or move files to ephemeral storage (e.g., /mnt) or attach EBS volumes and move files there.
Here's an article I wrote that describes how to move a MySQL database from the root disk to an EBS volume:
Running MySQL on Amazon EC2 with EBS
http://aws.amazon.com/articles/1663
...and consider moving to EBS boot instances. There are many reasons why you'll thank yourself later.