How to backup nfs storage #9052
Replies: 1 comment 8 replies
-
Response to NFS Volume Backup IssueHi @wangshuai0709, The reason you're only seeing 3 volumes backed up instead of 25 is likely related to how Velero handles filesystem backups with the Key RequirementWhen using Troubleshooting Steps
SolutionsOption 1: Ensure all PVCs are bound to running pods
Option 2: Use volume snapshots (if supported)If your NFS storage supports snapshots, you can use volume snapshots instead: velero backup create my-backup --include-namespaces tektoncd-default --snapshot-volumes Option 3: Create temporary pods for unbound PVCsFor PVCs that aren't currently bound to running pods, you can create temporary pods to mount them during backup: apiVersion: v1
kind: Pod
metadata:
name: backup-helper-pvc-name
namespace: tektoncd-default
annotations:
backup.velero.io/backup-volumes: volume-name
spec:
containers:
- name: backup-helper
image: busybox
command: ['sleep', '3600']
volumeMounts:
- name: volume-name
mountPath: /data
volumes:
- name: volume-name
persistentVolumeClaim:
claimName: your-pvc-name VerificationAfter making changes, verify your backup includes all expected volumes: velero backup describe your-backup-name --details The issue you're experiencing is common with NFS storage because filesystem backups require active pod mounts. Let me know if you need help with any of these troubleshooting steps! Best regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My cluster used nfs as the storage class. I want to backup the data of the pv in tektoncd-default namespace.
My backup operation:
1.annotate pod
2.create backup task
view information about the backups:


The above image has only three volume,but the namespace has 25 volume.
What is the reason for this?Please help me.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions