Sample Header Ad - 728x90

Configure Linux to regularly sync cached data to disk

7 votes
2 answers
1687 views
The [sync](https://linux.die.net/man/8/sync) command "writes any data buffered in memory out to disk". As far as I understand, data may be buffered in memory for very long time, even if the disks have no activity. How can I properly configure Linux to automatically sync regularly? The scenario is a storage server, where I would like to prevent cached data being prevented from being written to disks for too long, which leads to corrupted data in case of system crash or power loss.
Asked by xuhdev (597 rep)
Nov 26, 2024, 03:43 AM
Last activity: Nov 26, 2024, 03:22 PM