- 已关闭**此问题为not about programming or software development。它目前不接受回答。
这个问题似乎不是关于a specific programming problem, a software algorithm, or software tools primarily used by programmers的。如果你认为这个问题与another Stack Exchange site的主题有关,你可以留下评论,解释在哪里可以回答这个问题。
29天前关闭
Improve this question
我试图备份一个pvc和pv在一个AKS集群,但当这是这样做,我得到一个错误,看起来像下面
sidharth@vm-2:~$ velero get backup
NAME STATUS ERRORS WARNINGS CREATED
EXPIRES STORAGE LOCATION SELECTOR
dev-namespace-backup PartiallyFailed 1 0 2023-09-15 17:27:06 +0000 UTC
29d default <none>
但是日志没有显示任何错误,因此我使用此命令安装了velero:
wget https://github.com/vmware-tanzu/velero/releases/download/v1.11.1/velero-v1.11.1-linux-amd64.tar.gz
tar -xvf velero-v1.11.1-linux-amd64.tar.gz
Velero pod日志有这个错误,有人能帮助我了解发生了什么吗?time="2023-09-15T17:27:08Z" level=info msg="label \"topology.kubernetes.io/zone\" is not present on PersistentVolume, checking deprecate d label..." backup=velero/dev-namespace-backup logSource="pkg/backup/item_backupper.go:504" name=pv-volume-2 namespace= persistentVolume =pv-volume-2 resource=persistentvolumes time="2023-09-15T17:27:08Z" level=info msg="label \"failure-domain.beta.kubernetes.io/zone\" is not present on PersistentVolume" backup= velero/dev-namespace-backup logSource="pkg/backup/item_backupper.go:508" name=pv-volume-2 namespace= persistentVolume=pv-volume-2 resour ce=persistentvolumes time="2023-09-15T17:27:08Z" level=info msg="zone info not available in nodeAffinity requirements" backup=velero/dev-namespace-backup log Source="pkg/backup/item_backupper.go:513" name=pv-volume-2 namespace= persistentVolume=pv-volume-2 resource=persistentvolumes time="2023-09-15T17:27:08Z" level=error msg="Error getting volume snapshotter for volume snapshot location" backup=velero/dev-namespace- backup error="rpc error: code = Unknown desc = unable to parse value \"3600\" for config key \"apiTimeout\" (expected a duration string) : time: missing unit in duration 3600" error.file="/go/src/github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/velero-plugin-for-m icrosoft-azure/volume_snapshotter.go:114" error.function="main.(*VolumeSnapshotter).Init" logSource="pkg/backup/item_backupper.go:528" n ame=pv-volume-2 namespace= persistentVolume=pv-volume-2 resource=persistentvolumes volumeSnapshotLocation=default time="2023-09-15T17:27:08Z" level=info msg="Persistent volume is not a supported volume type for snapshots, skipping." backup=velero/dev -namespace-backup logSource="pkg/backup/item_backupper.go:548" name=pv-volume-2 namespace= persistentVolume=pv-volume-2 resource=persist entvolumes
1条答案
按热度按时间vsaztqbk1#
我能够通过更改安装在我的AKS集群上的Velero版本来修复这个错误,这个错误是因为这个版本不兼容AKS的备份PVC和PV。
然后安装velero我更新了插件的版本到1.5,然后它开始工作.