【问题标题】:Disk quota exceed in openshiftopenshift中的磁盘配额超出
【发布时间】:2014-07-24 16:38:52
【问题描述】:

我正在使用免费的 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。为什么du不显示呢?我应该怎么做才能修剪磁盘存储?

Quota -s
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/mapper/EBSStore01-user_home01
                   105M       0   1024M            4023       0   80000    

【问题讨论】:

    标签: linux openshift diskspace


    【解决方案1】:

    查看配额的最佳方法是通过 ssh 进入您的应用并运行以下命令:

    quota -s

    根据您的墨盒,消耗配额的最常见位置是您的 $OPENSHIFT_DATA_DIR (~/app-root/data) 目录或您的应用程序存储库 ~/app-root/runtime/repo

    无论哪种方式,清理一些空间的最快方法是使用rhc app tidy 命令。

    哦,您的数据库位于~/mysql 目录中

    【讨论】:

    • 似乎mysql目录不在此处 bash: cd: /var/lib/openshift/53513b82e0b8cdcc3b000001//mysql: No such file or directory 我确实尝试了tidy命令,但它没有清理涨了很多。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-29
    • 2023-03-20
    • 1970-01-01
    相关资源
    最近更新 更多