Hello,
I have a server that I use to store backups using rsync. The server has 2x12TB HDDs. I would like to improve the write performance disabling sync for zroot/home/backup dataset. In my case (no databases - just files) the only disadvantage is that if a power outage happens during the rsync, then I will lose few seconds data?
Man page:
I have a server that I use to store backups using rsync. The server has 2x12TB HDDs. I would like to improve the write performance disabling sync for zroot/home/backup dataset. In my case (no databases - just files) the only disadvantage is that if a power outage happens during the rsync, then I will lose few seconds data?
Man page:
sync=standard|always|disabled
Controls the behavior of synchronous requests (e.g. fsync, O_DSYNC).
standard is the POSIX-specified behavior of ensuring all synchronous
requests are written to stable storage and all devices are flushed to
ensure data is not cached by device controllers (this is the default).
always causes every file system transaction to be written and flushed
before its system call returns. This has a large performance penalty.
disabled disables synchronous requests. File system transactions are
only committed to stable storage periodically. This option will give
the highest performance. However, it is very dangerous as ZFS would be
ignoring the synchronous transaction demands of applications such as
databases or NFS. Administrators should only use this option when the
risks are understood.