tiflash在挂载NAS下安装不能启动

【 TiDB 使用环境】测试环境
【 TiDB 版本】v6.1.2

阿里云ECS挂载NAS,安装tidb,tiflash一直启动不了,日志如下:

[2022/11/06 20:24:45.236 +08:00] [WARN] [server.rs:1418] ["check: rocksdb-data-dir"] [err="config fs: data-dir.rotation.get: \"0084b86b-4rkk.cn-hangzhou.extreme.nas.aliyuncs.com:/share\" no device find in block"] [path=/mnt/tidb-data/tiflash-9000/flash]
[2022/11/06 20:24:45.236 +08:00] [INFO] [config.rs:879] ["data dir"] [mount_fs="FsInfo { tp: \"nfs\", opts: \"rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,nolock,noacl,noresvport,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.16.94.205,mountvers=3,mountport=2049,mountproto=tcp,local_lock=all,addr=172.16.94.205\", mnt_dir: \"/mnt/tidb-data\", fsname: \"0084b86b-4rkk.cn-hangzhou.extreme.nas.aliyuncs.com:/share\" }"] [data_path=/mnt/tidb-data/tiflash-9000/flash/raft]
[2022/11/06 20:24:45.236 +08:00] [WARN] [server.rs:1426] ["check: raftdb-path"] [err="config fs: data-dir.rotation.get: \"0084b86b-4rkk.cn-hangzhou.extreme.nas.aliyuncs.com:/share\" no device find in block"] [path=/mnt/tidb-data/tiflash-9000/flash/raft]

[2022/11/06 20:24:45.240 +08:00] [WARN] [server.rs:523] ["failed to remove space holder on starting: No such file or directory (os error 2)"]
[2022/11/06 20:24:47.078 +08:00] [FATAL] [lib.rs:468] ["Failed to reserve space for recovery: Operation not supported (os error 95)."] [backtrace="   0: tikv_util::set_panic_hook::{{closure}}\n   1: std::panicking::rust_panic_with_hook\n   2: std::panicking::begin_panic_handler::{{closure}}\n   3: std::sys_common::backtrace::__rust_end_short_backtrace\n   4: rust_begin_unwind\n   5: core::panicking::panic_fmt\n   6: server::server::run_tikv\n   7: server::proxy::run_proxy\n   8: _ZN2DB20RaftStoreProxyRunner20runRaftStoreProxyFFIEPv\n             at /home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tics/dbms/src/Server/Server.cpp:462:9\n   9: start_thread\n  10: __GI___clone\n"] [location=components/server/src/server.rs:533] [thread_name=<unnamed>]

err=“config fs: data-dir.rotation.get: "0084b86b-4rkk.cn-hangzhou.extreme.nas.aliyuncs.com:/share" no device find in block”

这是设备 找不到阿,肯定启不动了…

确定挂载的目录可以访问得到么?

NAS挂载正确的。
tiup cluster deploy,可以正常安装,安装后也生成数据文件。
tiup cluster start才报错的。

不支持这种挂载模式吧

config fs: data-dir.rotation.get: "0084b86b-4rkk.cn-hangzhou.extreme.nas.aliyuncs.com:/share"
no device find in block

阿里云上不是有 tidb cloud 么? 可以直接用了

解决了,修改配置:

server_configs:
  tiflash-learner:
    storage.reserve-space: 0MB

使用NAS性能如何?毕竟还额外涉及一次网络IO

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。