[Query] What is the effect of fsfreeze pre-hook on running application ? #6313
-
Hello All, Hope you are doing well. I am using velero 1.8.1 with restic integration. And I have PV on NFS server. When a filesystem is freezed, WIll it allow application to work properly (like read and write operation on filesystem by app pods during backup) ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@Lyndon-Li Can I please get your attention on this query |
Beta Was this translation helpful? Give feedback.
-
Most probably not, the kernel will hold the write IO once
It depends on backup types.
For sure, if you want to move the data to a 2nd place and by the mean time, you want to use the hook to get a better consistency data state, there is not this way at present. |
Beta Was this translation helpful? Give feedback.
-
"Hello, I have a question. When I was testing the hook, I used the example provided by the official website. After executing the sfreeze --freeze command in the fsfreeze container, I got a permission denied error. This caused errors when taking CSI snapshot backups. Can you explain why?"@Lyndon-Li |
Beta Was this translation helpful? Give feedback.
@navilg
Most probably not, the kernel will hold the write IO once
fsfreeze --freeze
is called, untilfsfreeze --unfreeze
. It means the application cannot make any write call to the file system, otherwise, it will hang (in most cases).It depends on backup types.
Let's assume you call
fsfreeze --freeze
in pre-hook and callfsfreeze --unfreeze
in post-hook.If the target is not making big impact to the application during backup, then: