开发者社区 > PolarDB开源 > PolarDB 分布式版 > 正文

请问备份恢复这个PolarDBXCluster处于Active状态是正在恢复还是说遇到问题了?

"问题1:请问备份恢复这个PolarDBXCluster处于Active状态是正在恢复还是说遇到问题了?
97065fa057786fb6aac43be6e9c2939e.png
98db08bfbdca2dc5e676be3a011bbee8.png
45eeae714aebd6f77010fadd1def538a.png
问题2:按照您的方法试了一下,现在两种恢复方式都卡在了Active状态。
b4517fe760b095853cd9052e11ceb341.png
2023-11-09T01:26:29.369Z ERROR controller.polardbx common/object.go:98 Failed to init polardbx label. {""namespace"": ""datalake"", ""polardbxcluster"": ""pxc-restore"", ""phase"": """", ""stage"": """", ""trace"": ""87727ecb-82fa-4369-abdc-cfe3731c2f31"", ""action"": ""InitializePolardbxLabel"", ""step"": 5, ""error"": ""Operation cannot be fulfilled on polardbxclusters.polardbx.aliyun.com \""pxc-restore\"": the object has been modified; please apply your changes to the latest version and try again""}
2023-11-09T01:26:29.369Z ERROR controller.polardbxcluster controller/controller.go:304 Reconciler error {""reconciler group"": ""polardbx.aliyun.com"", ""reconciler kind"": ""PolarDBXCluster"", ""name"": ""pxc-restore"", ""namespace"": ""datalake"", ""error"": ""Operation cannot be fulfilled on polardbxclusters.polardbx.aliyun.com \""pxc-restore\"": the object has been modified; please apply your changes to the latest version and try again""}"

展开
收起
十一0204 2023-11-14 21:13:55 57 0
2 条回答
写回答
取消 提交回答
  • 你的问题与代码、程序运行和debug相关。

    针对你的两个问题:

    1. 你的PolarDBXCluster处于Active状态,这通常意味着它正在运行或恢复中。但具体状态需要结合具体环境和上下文来解释。如果它已经处于Active状态但你认为它应该处于恢复状态,那么可能存在一些问题。
    2. 你的恢复方式卡在了Active状态,并且报错信息提到了“the object has been modified; please apply your changes to the latest version and try again”。这可能是因为你在尝试恢复或操作PolarDBXCluster时,该对象已经被其他进程或用户修改,导致你的操作不能被执行。

    解决方案:

    • 确保你拥有足够的权限来执行对PolarDBXCluster的操作。
    • 检查是否有其他进程或用户正在操作该PolarDBXCluster。
    • 如果你的操作是正确的,尝试重新申请最新版本并再次尝试你的恢复操作。
    2023-11-15 16:10:46
    赞同 展开评论 打赏
  • 意中人就是我呀!

    "回答1:应该有问题,如果从pxb恢复的,对应的PXB对象还在吗;从指定备份集路径恢复的话,检查下备份集路径对吗。
    执行kubectl -n polardbx-operator-system get cm polardbx-hpfs-config -oyaml这个看下你所用的sink的rootPath是啥,是不是/polardbx-backup,如果是的话把restore.from.backupSetPath里的红框去掉看下。
    d83a0bf09c1d12fb027c4b645f76cdc2.png,斜杠也需去掉。
    回答2:那这得捞下日志先了
    kubectl -n polardbx-operator-system get pod | grep controller
    kubectl -n polardbx-operator-system logs {上述pod} | grep {恢复实例名},describe下pxc-restore看下。执行下这个命令,把polardbx-operator 的日志发一下。

    kubectl get pods -n polardbx-operator-system -l app.kubernetes.io/component=controller-manager -o name | xargs -I{} kubectl logs {} -n polardbx-operator-system > polardbx-operator.log
    kubectl get pods -n polardbx-operator-system -l app.kubernetes.io/component=controller-manager 通过这个命令找到 polardbx-operator的pod,把这个pod delete 掉看能否恢复。此答案整理至钉群""阿里云 PolarDB-X 开源交流群""。"

    2023-11-14 21:57:15
    赞同 展开评论 打赏

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 是阿里云自主设计研发的高性能云原生分布式数据库产品,为用户提供高吞吐、大存储、低延时、易扩展和超高可用的云时代数据库服务。

热门讨论

热门文章

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载