0

我已将所有 TokuMX 1.4 数据文件复制到新安装的 TokuMX 1.5 服务器,但启动服务器失败并显示:

Fri Aug  1 09:51:04.633 [initandlisten] TokuMX starting : pid=42210 port=27017 dbpath=/data/db 64-bit host=beagle.massive-insights.com
Fri Aug  1 09:51:04.633 [initandlisten] TokuMX mongod server v1.5.0-mongodb-2.4.10, using TokuKV rev 479eed747982601fa52e4c4e4b9b4be18f58d3c1
Fri Aug  1 09:51:04.633 [initandlisten] git version: 3c686d0b09d6dfb9fd54da440247d3075fcfd0ac
Fri Aug  1 09:51:04.633 [initandlisten] build info: Linux a5f9a8a9a9af 3.11.0-20-generic #35-Ubuntu SMP Fri May 2 21:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux BOOST_LIB_VERSION=1_49
Fri Aug  1 09:51:04.633 [initandlisten] options: { config: "/etc/mongodb.conf", dbpath: "/data/db", logFlushPeriod: 300, logappend: "true", logpath: "/var/log/mongodb/mongodb.log", maxConns: 20000 }
Fri Aug  1 09:51:04.634 [initandlisten] [tokumx] startup
Cannot upgrade TokuDB version 25 database.  Previous improper shutdown detected.
Fri Aug  1 09:51:04.661 [initandlisten] Assertion: 16767:Unhandled ydb error: -100011
0xb3b123 0x80c91b 0x8061f0 0x8069df 0x8071fc 0x749e7a 0x74a558 0x735caa 0x7f5a97b5ceed 0x746e79 
 /usr/local/bin/mongod(_ZN5mongo15printStackTraceERSo+0x23) [0xb3b123]
 /usr/local/bin/mongod(_ZN5mongo7storage21MsgAssertionExceptionC2EiRKSs+0x9b) [0x80c91b]
 /usr/local/bin/mongod(_ZN5mongo7storage16handle_ydb_errorEi+0x390) [0x8061f0]
 /usr/local/bin/mongod(_ZN5mongo7storage22handle_ydb_error_fatalEi+0xf) [0x8069df]
 /usr/local/bin/mongod(_ZN5mongo7storage7startupEPNS_16TxnCompleteHooksEPNS0_14UpdateCallbackE+0x5bc) [0x8071fc]
 /usr/local/bin/mongod(_ZN5mongo14_initAndListenEi+0x34a) [0x749e7a]
 /usr/local/bin/mongod(_ZN5mongo13initAndListenEi+0x18) [0x74a558]
 /usr/local/bin/mongod(main+0x29a) [0x735caa]
 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f5a97b5ceed]
 /usr/local/bin/mongod() [0x746e79]
Fri Aug  1 09:51:04.670 [initandlisten]   fatal error 16767: Unhandled ydb error: -100011
Fri Aug  1 09:51:04.670 [initandlisten]   16767 Unhandled ydb error: -100011
Fri Aug  1 09:51:04.670 [initandlisten]   Fatal Assertion 16767
0xb3b123 0x9e654c 0x806bc6 0x8071fc 0x749e7a 0x74a558 0x735caa 0x7f5a97b5ceed 0x746e79 
 /usr/local/bin/mongod(_ZN5mongo15printStackTraceERSo+0x23) [0xb3b123]
 /usr/local/bin/mongod(_ZN5mongo13fassertFailedEi+0x4c) [0x9e654c]
 /usr/local/bin/mongod(_ZN5mongo7storage22handle_ydb_error_fatalEi+0x1f6) [0x806bc6]
/usr/local/bin/mongod(_ZN5mongo7storage7startupEPNS_16TxnCompleteHooksEPNS0_14UpdateCallbackE+0x5bc) [0x8071fc]
 /usr/local/bin/mongod(_ZN5mongo14_initAndListenEi+0x34a) [0x749e7a]
 /usr/local/bin/mongod(_ZN5mongo13initAndListenEi+0x18) [0x74a558]
 /usr/local/bin/mongod(main+0x29a) [0x735caa]
 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f5a97b5ceed]
 /usr/local/bin/mongod() [0x746e79]
Fri Aug  1 09:51:04.677 [initandlisten] 

我该如何进行从 1.4 到 1.5 的迁移路径,以及如何处理上述错误?

4

1 回答 1

1

如日志文件所述,“无法升级 TokuDB 版本 25 数据库。检测到以前的不当关闭。”

TokuMX 不支持升级(意味着文件格式已更改),除非您使用的先前版本的文件来自完全关闭的 TokuMX。

您需要彻底关闭 1.4 服务器,然后使用 1.5 复制或重新使用数据文件。

于 2014-08-01T13:14:57.273 回答