I just set up my site through AWS EC2 not that long ago from following YouTube tutorial. Now I have issue with no space left on the disk space and I tried to remove some of the old backup files I have. However, when I ran df -h
it was showing /dev/nvme0n1p1 7.7G 7.5G 232M 98% /
. I never ran into this kind of problem before and my site is still down. Is there a way to clean anything in nvme0n1p1
? Thank you. (My site is very simple it just show some contents only nothing fancy)
➜ ~ df -h
Filesystem Size Used Avail Use% Mounted on
udev 470M 0 470M 0% /dev
tmpfs 97M 740K 96M 1% /run
/dev/nvme0n1p1 7.7G 7.5G 232M 98% /
tmpfs 481M 0 481M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 481M 0 481M 0% /sys/fs/cgroup
/dev/loop0 29M 29M 0 100% /snap/amazon-ssm-agent/2012
tmpfs 97M 0 97M 0% /run/user/1000
/dev/loop1 98M 98M 0 100% /snap/core/10126
/dev/loop2 98M 98M 0 100% /snap/core/10185
/dev/loop3 56M 56M 0 100% /snap/core18/1932
/dev/loop5 33M 33M 0 100% /snap/amazon-ssm-agent/2996
➜ ~ df -h /dev/nvme0n1p1
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 7.7G 7.5G 232M 98% /
➜ ~ sudo du -m / | sort -nr | head -10
du: cannot access '/proc/1583/task/1583/fd/4': No such file or directory
du: cannot access '/proc/1583/task/1583/fdinfo/4': No such file or directory
du: cannot access '/proc/1583/fd/3': No such file or directory
du: cannot access '/proc/1583/fdinfo/3': No such file or directory
8636 /
4818 /usr
3779 /usr/src
2188 /var
1052 /snap
1010 /var/lib
791 /var/log
785 /var/log/journal/3aa92fc7b26a4f78b870ea2dd0a76525
785 /var/log/journal
582 /snap/core
df –h /dev/nvme0n1p1
please? – darth_epoxy Nov 22 '20 at 21:57