EC2图像从AMI备份还原后,无尽损坏的Sstable

发布于 2025-02-13 08:14:55 字数 229 浏览 0 评论 0 原文

Cassandra版本3.11.4,在System.log中显示了许多损坏的Sstable文件,服务重新启动后,我们尝试使用AMI备份来还原EC2服务器,但是损坏的消息也显示了,我们尝试了所有内容,无论Nodetool scrub,sstablescrub,sstablescrub,sstablescrub,sstablescrub,删除损坏的文件然后维修,似乎损坏的文件不会停止出现。

以前有人遇到过吗?任何帮助都将非常感谢。

Cassandra version 3.11.4, many corrupted sstable files showing in system.log after service restart, and we tried to use AMI backup to restore EC2 server, but the corrupted message showed up too, we tried everything, no matter nodetool scrub, sstablescrub, remove corrupted files then repair, seems corrupted files won't stop to show up.

Is there anyone have encounter this before? Any help will be much thankful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷爱 2025-02-20 08:14:55

您不能仅仅通过从AMI备份中恢复来恢复Cassandra节点,因为与运行时相比,它将具有不同的数据库状态。

如果您的数据存储在EBS上,则可以替换EC2实例,然后将EBS安装到相同的Cassandra data/目录中,因此节点将以在EBS卷上持续存在的同一状态开始。

如果您无法使用上述方法,则需要使用 repents_address option 。干杯!

You can't simply restore a Cassandra node by recovering from an AMI backup because it will have a different database state compared to when it was running.

If your data is stored on EBS, you can replace the EC2 instance then mount the EBS to the same Cassandra data/ directory so the node will start in the same state that is persisted on the EBS volume.

If the above method isn't available to you, you will need to replace the node "with itself" using the replace_address option documented here. Cheers!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文