How do I "freeze" an nfs mount in kubernetes to snapshot it if fsfreeze sends operation not permitted?

5/16/2021

I have an NFS based PVC in a kubernetes cluster that I need to freeze to take a snapshot of. I tried fsfreeze, but I get "operation not supported". I assume because it is trying to freeze the entire nfs instead of just the mount. I have checked and I can freeze the filesystem on the side of the NFS server. Is there a different way that I can stop writes to the filesystem to properly sync everything?

-- deef0000dragon1
filesystems
kubernetes
kubernetes-pvc
snapshot

1 Answer

5/16/2021

From https://github.com/vmware-tanzu/velero/issues/2042 and some other quick poking around, fsfreeze doesn't support NFS mounts. In general it seems to mostly on work with real local volumes which you'll almost never use with Kubernetes.

-- coderanger
Source: StackOverflow