- Newest
- Most votes
- Most comments
Firstly, the df -h
output in the question is a bit garbled, could you edit the question so that it's enclosed in the code tag please? Either select the text and click </> or else put three backticks before the first line of output, and the same after the last line.
But picking through the output in its current form, it can be seen that the root filesystem is full /dev/xvda1 50G 48G 0 100% /
.
This might have been caused by you being in the wrong directory when you un-tarred the archive, or it might be something else that's consuming all of this.
To find out what it is, start in the root filesystem cd /
and run (as root) du -sm *
to see the usage of each subdirectory in MB. Then cd
into the one that's using the most and run the same command again, and keep drilling down until you identify the culprit.
Although you will likely want to ignore /home
as those multi-TB disks are mounted on there. So just for the root filesystem the comamnd will have to be something like for i in $(ls -1 | grep -v ^home); do du -sm $i; done
Relevant content
- asked 7 years ago
- asked 4 years ago
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
Sorry, here is the output for df -h again:
I tried checking root files system but don't really see an outlier or a significantly bigger file folder there... not sure what I'm looking for.
At the mean time, I asked people from my group to try cleaning up and deleting/ transferring files to S3 where possible and one person replied "I tried to clean it, but the remaining space doesn’t increase"?!
What's the output of running as root
cd /; for i in $(ls -1 | grep -v ^home); do du -sm $i; done
?So this means its likely something in /home that is filling up the root filesystem,so need to try to find out what that is without traversing the two multi-TB filesystems.
Can you temporarily unmount these? As root
umount /home/ubuntu/users ; umount /home/ubuntu/proc
so that what's left under /home is part of the root filesystem, and examine this as rootcd /home ; du -sm *
If those other filesystems cant be unmounted then examine /home while excluding them. As root
cd /home ; for i in $(ls -1 | grep -v ^ubuntu); do du -sm $i; done
If you have no luck there then as root
cd /home/ubuntu ; for i in $(ls -1 | egrep -v ^users|^proc); do du -sm $i; done
i'm able to unmount /home/ubuntu/proc but not /home/ubuntu/users. When examine /home I get:
and going to ubuntu, I get: