TokuMX 1.4到1.5数据迁移

时间:2014-08-01 07:58:55

标签: tokumx

我已将所有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,以及如何处理上面的错误?

1 个答案:

答案 0 :(得分:1)

如日志文件所示,"无法升级TokuDB版本25数据库。检测到先前不正确的关机。"

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

您需要干净地关闭1.4服务器,然后使用1.5。

复制或重复使用数据文件