为什么我的AWS EC2磁盘空间总是满了?

时间:2018-09-13 07:59:07

标签: linux amazon-web-services amazon-ec2 ami

直到昨天,我一直在使用具有16 GB存储空间的m5.large实例。现在,我已切换到m5.xlarge(在需要时在两者之间切换),并扩展到30GB的EBS容量。

这是我现在的音量:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.8G   52K  3.8G   1% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
/dev/nvme0n1p1   30G   29G  791M  98% /

我不确定为什么突然之间“已用空间”是29GB!如果运行此命令以获取最大目录,这就是我得到的du -hs * / | sort -n -r | head -n 5

du: cannot access ‘/proc/3249/task/3249/fd/4’: No such file or directory
du: cannot access ‘/proc/3249/task/3249/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/3249/fd/4’: No such file or directory
du: cannot access ‘/proc/3249/fdinfo/4’: No such file or directory

896M    index
552M    Anaconda3-5.1.0-Linux-x86_64.sh
224M    spark-2.1.1-bin-hadoop2.7
124K    nltk_data
30M     scala-2.11.6

所有总和小于2GB。如何查看正在使用什么磁盘空间?

0 个答案:

没有答案
相关问题