感谢 我也使用您推荐的测试了,恢复过程出现问题,测试过程如下
1、写入数据
client.put(ByteString.copyFromUtf8(“k1”), ByteString.copyFromUtf8(“Hello”));
client.put(ByteString.copyFromUtf8(“k2”), ByteString.copyFromUtf8(“,”));
client.put(ByteString.copyFromUtf8(“k3”), ByteString.copyFromUtf8(“World”));
client.put(ByteString.copyFromUtf8(“k4”), ByteString.copyFromUtf8(“!”));
client.put(ByteString.copyFromUtf8(“k5”), ByteString.copyFromUtf8(“Raw KV”));
2、备份
./tikv-br backup raw --pd=“192.168.72.32:2379” --storage=“local:///home/tidb/backupraw/” --log-file=“/tmp/backupraw1.log” --gcttl=5m --format=“raw”
3、清除数据
tiup cluster clean tidb-test --data
4、恢复
./tikv-br restore raw
–pd “192.168.72.32:2379”
–storage “local:///home/tidb/backupraw”
–log-file restoreraw.log
恢复失败,报错为:
Cannot read local:///home/tidb/backupraw/4/6_2_default.sst into /ssd13/tidb-data/tikv-20160/import/.temp/27682296-4918-4ede-bc85-e327b5a6ce2c_8_5_2_default.sst: No such file or directory (os error 2): [BR:KV:ErrKVDownloadFailed]download sst failed;