将mongoDb盒式磁带添加到OpenShift时出错

时间:2014-05-04 00:21:55

标签: mongodb openshift

将mongoDb(2.4)盒式磁带添加到我的OpenShift应用程序的过程似乎工作正常但最终出现错误并且未添加盒式磁带。它看起来像磁盘空间问题(我在同一个应用程序中已经有了mysql),但是我释放了足够的空间,奇怪的是,问题只出现在设置的最后。这是日志(隐藏登录详细信息):

Starting MongoDB cartridge
note: noprealloc may hurt performance in many applications
Sat May  3 19:38:54.847 [initandlisten] MongoDB starting : pid=389973 port=2701
dbpath=/var/lib/openshift/5c0013917b4d45c68fddbb75e082a35a/mongodb/data/ 64-bit host=ex-std-node94.prod.rhcloud.com
Sat May  3 19:38:54.848 [initandlisten] db version v2.4.6
Sat May  3 19:38:54.848 [initandlisten] git version: nogitversion
Sat May  3 19:38:54.848 [initandlisten] build info: Linux x86-023.build.eng.bos.redhat.com 2.6.18-371.el5 #1 SMP Thu Sep 5 21:21:44 EDT 2013 x86_64 BOOST_LIB_VERSION=1_41
Sat May  3 19:38:54.849 [initandlisten] allocator: tcmalloc
Sat May  3 19:38:54.849 [initandlisten] options: { auth: true, bind_ip: "127.2.148.131", config: "/tmp/mongodb.repair.conf", dbpath: "/var/lib/openshift/5c0013917b4d45c68fddbb75e082a35a/mongodb/data/", nohttpinterface: "true", noprealloc: "true", pidfilepath: "/var/lib/openshift/5c0013917b4d45c68fddbb75e082a35a/mongodb/pid/mongodb.pid", quiet: "true", repair: true, smallfiles: "true" }
************** 
You specified --repair but there are dirty journal files. Please
restart without --repair to allow the journal files to be replayed.
If you wish to repair all databases, please shutdown cleanly and
run with --repair again.
**************
Sat May  3 19:38:54.865 [initandlisten] exception in initAndListen: 12596 old lock file,    terminating
Sat May  3 19:38:54.866 dbexit: 
Sat May  3 19:38:54.866 [initandlisten] shutdown: going to close listening sockets...
Sat May  3 19:38:54.866 [initandlisten] shutdown: going to flush diaglog...
Sat May  3 19:38:54.867 [initandlisten] shutdown: going to close sockets...
Sat May  3 19:38:54.867 [initandlisten] shutdown: waiting for fs preallocator...
Sat May  3 19:38:54.867 [initandlisten] shutdown: closing all files...
Sat May  3 19:38:54.867 [initandlisten] closeAllFiles() finished
Sat May  3 19:38:54.868 dbexit: really exiting now
Warning: Gear 5c0013917b4d45c68fddbb75e082a35a is using 98.9% of disk quota
Warning: Gear 5c0013917b4d45c68fddbb75e082a35a is using 97.3% of disk quota
Attempting to repair MongoDB ...

MongoDB 2.4 database added.  Please make note of these credentials:

Root User:     ------------
Root Password: ------------
Database Name: ------------

Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/
Failed to execute: 'control start' for   /var/lib/openshift/5c0013917b4d45c68fddbb75e082a35a/mongodb

有关如何解决它的任何想法?谢谢

1 个答案:

答案 0 :(得分:1)

是的,根据日志,你看起来已经消耗了1GB的大部分磁盘空间。所有应用程序盒和存储都消耗1 GB磁盘空间。您使用的是哪种网络盒式磁带?您可以使用quota -s命令检查磁盘空间使用情况。 SSH进入应用程序设备并运行quota -s命令。或者,如果安装了rhc命令行,则可以使用rhc ssh --app <app_name> --command 'quota -s'。您可以使用rhc tidy --app <app_name>命令清理磁盘空间。清理完毕后,再次尝试运行rhc cartridge命令。您可以创建可扩展的应用程序,并允许每个墨盒安装在不同的齿轮上。这将允许每个盒式磁带更多的磁盘空间。