nfs share async

Status
Not open for further replies.

massmux

Dabbler
Joined
Mar 11, 2018
Messages
41
ok thank you for all.

just last info. When we say that option sync=disable is dangerous because of possibility of data loss if kernel panic or power loss, is it meant on freenas side or on client side?
 

c32767a

Patron
Joined
Dec 13, 2012
Messages
371
ok thank you for all.

just last info. When we say that option sync=disable is dangerous because of possibility of data loss if kernel panic or power loss, is it meant on freenas side or on client side?

Programming languages allow the programmer to set an option where the program doesn't move past a 'write to disk' until the write is confirmed. synchronous writes are the filesytem's way of honoring that request. If you disable them, the program that wrote the data may be mislead into believing the data is safe on disk when it's not. That could happen if power is lost, or system crash, or it could happen with a database under normal operation, where files are used for locking purposes. The specific cases in which data loss might be possible are dependent on the whole stack, including the operating system and software you're running.
 
Status
Not open for further replies.
Top