Skip to content

[Query] What is the effect of fsfreeze pre-hook on running application ? #6313

Discussion options

You must be logged in to vote

@navilg

When a filesystem is freezed, WIll it allow application to work properly

Most probably not, the kernel will hold the write IO once fsfreeze --freeze is called, until fsfreeze --unfreeze. It means the application cannot make any write call to the file system, otherwise, it will hang (in most cases).

What is the best way of using it

It depends on backup types.
Let's assume you call fsfreeze --freeze in pre-hook and call fsfreeze --unfreeze in post-hook.
If the target is not making big impact to the application during backup, then:

  • If you are using file system backup, the advice is, never use the hook. Otherwise, the file system will be frozen during the entire file system backu…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@navilg
Comment options

Answer selected by navilg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants