我正在使用免费的openshift帐户,我想要有1GB的磁盘配额。最近,我得到了磁盘配额超出错误消息
Warning: Gear 535142774382ec2f4f0004c6 is using 100.0% of disk quota
我运行du -h * | sort -rh | head -50
,这是结果。
我很确定使用总和远低于1gb。
37M app-root/runtime/repo
37M app-root/runtime
37M app-root
35M app-deployments/2014-07-19_11-50-18.862/repo
35M app-deployments/2014-07-19_11-50-18.862
35M app-deployments
30M app-root/runtime/repo/pma
30M app-deployments/2014-07-19_11-50-18.862/repo/pma
12M git/api.git/objects/pack
12M git/api.git/objects
12M git/api.git
12M git
11M app-root/runtime/repo/pma/locale
11M app-deployments/2014-07-19_11-50-18.862/repo/pma/locale
7.5M app-root/runtime/repo/pma/libraries
7.5M app-deployments/2014-07-19_11-50-18.862/repo/pma/libraries
4.7M app-root/runtime/repo/pma/js
4.7M app-deployments/2014-07-19_11-50-18.862/repo/pma/js
3.8M app-root/runtime/repo/pma/doc
3.8M app-deployments/2014-07-19_11-50-18.862/repo/pma/doc
3.4M app-root/runtime/repo/js
3.4M app-deployments/2014-07-19_11-50-18.862/repo/js
2.6M app-root/runtime/repo/js/lib/amcharts
2.6M app-root/runtime/repo/js/lib
2.6M app-deployments/2014-07-19_11-50-18.862/repo/js/lib/amcharts
2.6M app-deployments/2014-07-19_11-50-18.862/repo/js/lib
2.3M app-root/runtime/repo/pma/libraries/tcpdf
2.3M app-deployments/2014-07-19_11-50-18.862/repo/pma/libraries/tcpdf
2.2M app-root/runtime/repo/pma/themes
2.2M app-deployments/2014-07-19_11-50-18.862/repo/pma/themes
2.0M app-root/runtime/repo/pma/doc/doctrees
2.0M app-deployments/2014-07-19_11-50-18.862/repo/pma/doc/doctrees
1.8M app-root/runtime/repo/js/lib/amcharts/amcharts
1.8M app-deployments/2014-07-19_11-50-18.862/repo/js/lib/amcharts/amcharts
1.7M app-root/runtime/repo/chat
1.7M app-deployments/2014-07-19_11-50-18.862/repo/chat
1.5M app-root/runtime/repo/pma/doc/html
1.5M app-deployments/2014-07-19_11-50-18.862/repo/pma/doc/html
1.4M app-root/runtime/repo/pma/js/jquery
1.4M app-deployments/2014-07-19_11-50-18.862/repo/pma/js/jquery
1.3M app-root/runtime/repo/pma/themes/pmahomme
1.3M app-deployments/2014-07-19_11-50-18.862/repo/pma/themes/pmahomme
1.2M app-root/runtime/repo/pma/js/openlayers
1.2M app-root/runtime/repo/js/lib/amcharts/amcharts/patterns
1.2M app-deployments/2014-07-19_11-50-18.862/repo/pma/js/openlayers
1.2M app-deployments/2014-07-19_11-50-18.862/repo/js/lib/amcharts/amcharts/patterns
1.1M app-root/runtime/repo/vendor
1004K app-root/runtime/repo/vendor/paquettg
992K app-root/runtime/repo/js/lib/amcharts/amcharts/patterns/chalk
992K app-deployments/2014-07-19_11-50-18.862/repo/js/lib/amcharts/amcharts/patterns/chalk
但是在phpmyadmin中,它确实表明我的数据库已经使用了500mb。杜为什么不显示它?我该怎么做才能削减磁盘存储空间?
Quota -s
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/EBSStore01-user_home01
105M 0 1024M 4023 0 80000
答案 0 :(得分:1)
查看配额的最佳方法是点击您的应用并运行以下内容:
quota -s
根据您的磁带,配额耗尽的最常见位置位于$OPENSHIFT_DATA_DIR
(~/app-root/data
)目录或应用程序仓库~/app-root/runtime/repo
中。
无论哪种方式,清除一些空间的最快方法是使用rhc app tidy
命令。
哦,你的数据库位于~/mysql
目录