单设备两个数据节点,配置的备份仓库是:path.repo: ["/mnt/arkbase_backups", "/home/arkbase_backups"] 后,业务需求是均衡的备份到两块磁盘,备份切换的时候出现了错误:
[2021-10-20T18:56:54,182][WARN ][o.e.s.SnapshotsService ] [7G-mTZm] [eventback:event20211013_v0/OUUvsQnqSpe5JsbyoztGvA] failed to finalize snapshot
org.elasticsearch.repositories.RepositoryException: [eventback] concurrent modification of the index-N file, expected current generation [4], actual current generation [59] - possibly due to simultaneous snapshot deletion requests
at org.elasticsearch.repositories.blobstore.BlobStoreRepository.writeIndexGen(BlobStoreRepository.java:714) ~[elasticsearch-6.8.16.jar:6.8.16]
at org.elasticsearch.repositories.blobstore.BlobStoreRepository.finalizeSnapshot(BlobStoreRepository.java:540) ~[elasticsearch-6.8.16.jar:6.8.16]
at org.elasticsearch.snapshots.SnapshotsService$5.doRun(SnapshotsService.java:990) [elasticsearch-6.8.16.jar:6.8.16]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:778) [elasticsearch-6.8.16.jar:6.8.16]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.16.jar:6.8.16]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_232]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
q请教下 对于 多块磁盘 ES备份归档索引到两块磁盘上,使磁盘均衡操作的解决方案是啥?以及再进行仓库切换的时候出现的错误的原因?以及解决方案? 在这先多谢了
2 个回复
tongchuan1992 - 学无止境、学以致用
赞同来自:
Charele - Cisco4321
赞同来自:
苍库元数据只有第一个找到的目录。
你的“均衡的备份到两块磁盘”,这样做好像做不倒。