4.0.8 TiFlash多盘实例启动失败

错误信息如下:

[“Application: DB::Exception: Cannot create table from metadata file /data/tidb-data/tiflash-9000/metadata/db_3/t_11.sql, error: DB::Exception: Cannot find DMFile for id 1, stack trace:\ 0. bin/tiflash/tiflash(StackTrace::StackTrace()+0x15) [0x3408075]\ 1. bin/tiflash/tiflash(DB::Exception::Exception(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)+0x25) [0x33fec05]\ 2. bin/tiflash/tiflash(DB::DM::StableValueSpace::restore(DB::DM::DMContext&, unsigned long)+0x64a) [0x693386a]\ 3. bin/tiflash/tiflash(DB::DM::Segment::restoreSegment(DB::DM::DMContext&, unsigned long)+0x286) [0x69095d6]\ 4. bin/tiflash/tiflash(DB::DM::DeltaMergeStore::DeltaMergeStore(DB::Context&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<DB::DM::ColumnDefine, std::allocatorDB::DM::ColumnDefine > const&, DB::DM::ColumnDefine const&, DB::DM::DeltaMergeStore::Settings const&)+0x9ce) [0x68ea08e]\ 5. bin/tiflash/tiflash(DB::StorageDeltaMerge::StorageDeltaMerge(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::optional<std::reference_wrapper<TiDB::TableInfo const> >, DB::ColumnsDescription const&, std::shared_ptrDB::IAST const&, unsigned long, DB::Context&)+0x114a) [0x686e54a]\ 6. bin/tiflash/tiflash() [0x693d458]\ 7. bin/tiflash/tiflash() [0x693dc17]\ 8. bin/tiflash/tiflash(DB::StorageFactory::get(DB::ASTCreateQuery&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, DB::Context&, DB::Context&, DB::ColumnsDescription const&, bool, bool) const+0x1ba) [0x687f5ba]\ 9. bin/tiflash/tiflash(DB::createTableFromDefinition(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, DB::Context&, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)+0x10b) [0x609bacb]\ 10. bin/tiflash/tiflash(DB::DatabaseLoading::loadTable(DB::Context&, DB::IDatabase&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)+0x2da) [0x609d97a]\ 11. bin/tiflash/tiflash() [0x609414d]\ 12. bin/tiflash/tiflash(ThreadPool::worker()+0x166) [0x71556e6]\ 13. bin/tiflash/tiflash() [0x7debcfe]\ 14. /lib64/libpthread.so.0(+0x7ea4) [0x7fc1552dcea4]\ 15. /lib64/libc.so.6(clone+0x6c) [0x7fc154d0396c]\ ”] [thread_id=1]

Hi, @Allen
非常抱歉这么久才回复你的问题!

这个问题一般是由配置的原因造成的。有可能是由于

  • 修改了 TiFlash 的存储路径;
  • 或者配置了多盘目录,启动之后,又删掉某些盘

有做过类似的操作吗?另外麻烦发一下 TiFlash 的配置文件