Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集群备份失败 #24

Open
DeepLJH0001 opened this issue Jan 7, 2020 · 9 comments
Open

集群备份失败 #24

DeepLJH0001 opened this issue Jan 7, 2020 · 9 comments

Comments

@DeepLJH0001
Copy link

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

velero backup后提示成功,但是在restore后发现报错。
velero backup create xxx --snapshot-volumes=false --wait

What did you expect to happen:

正常恢复

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

[root@localhost velero-plugin]# velero restore create --from-backup clusterbk --restore-volumes=false --wait
Restore request "clusterbk-20200107024432" submitted successfully.
Waiting for restore to complete. You may safely press ctrl-c to stop waiting - your restore will continue in the background.
...............................................................
Restore completed with status: Failed. You may check for more information using the commands `velero restore describe clusterbk-20200107024432` and `velero restore logs clusterbk-20200107024432`.
[root@localhost velero-plugin]# velero restore describe clusterbk-20200107024432
Name:         clusterbk-20200107024432
Namespace:    velero
Labels:       <none>
Annotations:  <none>

Phase:  Failed (run 'velero restore logs clusterbk-20200107024432' for more information)

Backup:  clusterbk

Namespaces:
  Included:  *
  Excluded:  <none>

Resources:
  Included:        *
  Excluded:        nodes, events, events.events.k8s.io, backups.velero.io, restores.velero.io, resticrepositories.velero.io
  Cluster-scoped:  auto

Namespace mappings:  <none>

Label selector:  <none>

Restore PVs:  false
[root@localhost velero-plugin]# velero restore logs clusterbk-20200107024432
An error occurred: file not found
[root@localhost velero-plugin]#
[root@localhost velero-plugin]#
[root@localhost velero-plugin]# velero backup get
NAME        STATUS      CREATED                         EXPIRES   STORAGE LOCATION   SELECTOR
clusterbk   Completed   2020-01-06 21:17:22 -0500 EST   29d       default            <none>

Environment:
centos 7.7

  • Velero version: (use ark version):
    1.2
  • Kubernetes version: (use kubectl version):
    1.6.4
  • Kubernetes installer & version:
    rke
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
@DeepLJH0001
Copy link
Author

image

@DeepLJH0001
Copy link
Author

备份存在,但是无法恢复

@DeepLJH0001
Copy link
Author

image

@haoshuwei
Copy link
Member

velero restore get 能看到clusterbk-20200107024432

@DeepLJH0001
Copy link
Author

@haoshuwei 可以的,显示的状态是失败。

[root@localhost harbor]# velero restore get
NAME                       BACKUP      STATUS   WARNINGS   ERRORS   CREATED                         SELECTOR
clusterbk-20200107023607   clusterbk   Failed   0          0        2020-01-07 02:36:07 -0500 EST   <none>
clusterbk-20200107024432   clusterbk   Failed   0          0        2020-01-07 02:44:32 -0500 EST   <none>

@haoshuwei
Copy link
Member

velero restore logs clusterbk-20200107023607 |grep error

看下错误日志输出是什么

@haoshuwei
Copy link
Member

可能是你的集群在restore的时候有资源冲突,比如port被占用等情况; 一般建议对应用单独备份和恢复,集群备份会涉及到全局范围的一些资源, 容易冲突

@DeepLJH0001
Copy link
Author

能否多一点错误的日志信息,方便进行排查

@prometheus-tao
Copy link

@DeepLJH0001 可以看看backupstroagelocation的状态是否正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants