Closed misteruly closed 3 years ago
Hi @misteruly - Can you please provide the full logs for the backup (full output from velero backup logs velero-test-pvc3
)? I don't know if this will have impacted the backup, but you don't need the --snapshot-volumes
flag as you have disabled volume snapshots when installing velero.
Hi @misteruly - Can you please provide the full logs for the backup (full output from
velero backup logs velero-test-pvc3
)? I don't know if this will have impacted the backup, but you don't need the--snapshot-volumes
flag as you have disabled volume snapshots when installing velero.
--use-volume-snapshots=true Is that necessary?
@zubron velero-test-pvc4 logs
time="2021-01-05T01:10:22Z" level=info msg="Setting up backup temp file" backup=velero/velero-test-pvc4 logSource="pkg/controller/backup_controller.go:534"
time="2021-01-05T01:10:22Z" level=info msg="Setting up plugin manager" backup=velero/velero-test-pvc4 logSource="pkg/controller/backup_controller.go:541"
time="2021-01-05T01:10:22Z" level=info msg="Getting backup item actions" backup=velero/velero-test-pvc4 logSource="pkg/controller/backup_controller.go:545"
time="2021-01-05T01:10:22Z" level=info msg="Setting up backup store to check for backup existence" backup=velero/velero-test-pvc4 logSource="pkg/controller/backup_controller.go:551"
time="2021-01-05T01:10:22Z" level=info msg="Writing backup version file" backup=velero/velero-test-pvc4 logSource="pkg/backup/backup.go:236"
time="2021-01-05T01:10:22Z" level=info msg="Including namespaces: velero-test" backup=velero/velero-test-pvc4 logSource="pkg/backup/backup.go:242"
time="2021-01-05T01:10:22Z" level=info msg="Excluding namespaces:
--use-volume-snapshots=true Is that necessary?
No, it is not necessary. Using volume snapshots is only applicable when running on a provider that provides volume snapshotting capabilities, such as on AWS where you are using EBS for your volumes. If you are running on AWS and wish to use volume snapshots, you will also need to configure a VolumeSnapshotLocation
. From your install command however, you are using MinIO and restic so volume snapshots will not apply.
From the logs, it looks like it is attempting to take a volume snapshot, did you create a volume snapshot location? It looks like some volumes are being backed up with restic and some are attempting to use snapshots.
Can you retry taking a backup without specifying --snapshot-volumes
, e.g velero backup create velero-test-<name> --include-namespaces velero-test
.
Also, can you provide the output from the following commands:
velero backup describe velero-test-pvc4 --details
velero restic repo get
velero snapshot-location get
Thanks!
velero v1.5.2
velero install \ --provider aws \ --bucket backup \ --use-restic \ --secret-file examples/minio/credentials-velero \ --use-volume-snapshots=false \ --plugins velero/velero-plugin-for-aws:v1.1.0 \ --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://192.168.0.3:9000
kubectl -n velero-test annotate pod harping-bison-mariadb-0 backup.velero.io/backup-volumes=data,config
kubectl -n velero-test annotate pod harping-bison-wordpress-76fcf6cddf-bq62k backup.velero.io/backup-volumes=wordpress-data
velero backup create velero-test-pvc3 --snapshot-volumes --include-namespaces velero-test
velero get backup
velero-test-pvc3 PartiallyFailed 2 0 2020-12-30 14:17:47 +0800 CST 29d default
velero backup logs velero-test-pvc3 | grep error
time="2020-12-30T06:17:52Z" level=info msg="1 errors encountered backup up item" backup=velero/velero-test-pvc3 logSource="pkg/backup/backup.go:451" name=wordpress-1609242910-69474dd5b8-qltgb time="2020-12-30T06:17:52Z" level=error msg="Error backing up item" backup=velero/velero-test-pvc3 error="pod volume backup failed: error running restic backup, stderr=Fatal: invalid id \"630c8eca\": no matching ID found\n: exit status 1" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/restic/backupper.go:179" error.function="github.com/vmware-tanzu/velero/pkg/restic.(backupper).BackupPodVolumes" logSource="pkg/backup/backup.go:455" name=wordpress-1609242910-69474dd5b8-qltgb time="2020-12-30T06:17:54Z" level=info msg="1 errors encountered backup up item" backup=velero/velero-test-pvc3 logSource="pkg/backup/backup.go:451" name=wordpress-1609242910-mariadb-0 time="2020-12-30T06:17:54Z" level=error msg="Error backing up item" backup=velero/velero-test-pvc3 error="pod volume backup failed: error running restic backup, stderr=Fatal: invalid id \"6ea17961\": no matching ID found\n: exit status 1" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/restic/backupper.go:179" error.function="github.com/vmware-tanzu/velero/pkg/restic.(backupper).BackupPodVolumes" logSource="pkg/backup/backup.go:455" name=wordpress-1609242910-mariadb-0
How to solve this problem ???