Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs_in_draft:write_cache_plugin [2025/11/29 02:45] – [Q&A] crashtest | docs_in_draft:write_cache_plugin [2025/11/29 02:54] (current) – [For SD Card Users] crashtest | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| After installation, | After installation, | ||
| - | For most users, enabling the Write Cache plugin with the default settings enabled **Flush on Shutdown** and **Rotate on Shutdown** is the best approach.\\ | + | For the majority of users, enabling the Write Cache plugin with the default settings enabled, **Flush on Shutdown** and **Rotate on Shutdown**, is the best approach.\\ |
| \\ | \\ | ||
| Line 66: | Line 66: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | ===== Sys Admin ===== | ||
| - | ==== When Cached Data is Lost ==== | ||
| - | Cached data will be lost in these situations: | ||
| - | - Power loss or unexpected shutdown (if flush on shutdown isn't configured) | ||
| - | - System crash | ||
| - | - Between flush intervals | ||
| - | ==== I Need to See Recent Logs ==== | + | ==== Best Practices |
| - | On the CLI, issue the following command flush cached logs to disk:\\ | + | === For SD-Card Users === |
| - | '' | + | - **Enable**: Write caching for `/var/log`\\ |
| + | - **Enable**: Flush on shutdown\\ | ||
| + | - **Enable**: Daily flush timer\\ | ||
| + | - **Enable**: Journald volatile storage\\ | ||
| + | \\ | ||
| + | These settings maximum write reduction with reasonable data preservation.\\ | ||
| + | === For SSD Users === | ||
| - | ==== I Want to Temporarily Disable | + | - **Consider enabling**: |
| + | - **Enable**: Flush on shutdown\\ | ||
| + | - **Optionally Enable**: Daily flush\\ | ||
| + | - **Why**: Extends SSD life without being overly aggressive\\ | ||
| - | On the CLI, issue the following command: | + | === For Spinning Hard Drive Users === |
| - | + | There's no practical gain. Write Cache is not needed.\\ | |
| - | ''sudo / | + | |
| - | + | ||
| - | This turns off caching until the next boot or until you manually mount it again.\\ | + | |
| \\ | \\ | ||
| \\ | \\ | ||
| - | ===== Best Practices ===== | ||
| - | |||
| - | ==== For SD Card Users ==== | ||
| - | - **Enable**: Write caching for `/ | + | ==== Frequently Asked Questions ==== |
| - | - **Enable**: Flush on shutdown | + | |
| - | - **Enable**: Daily flush timer | + | |
| - | - **Enable**: Journald volatile storage | + | |
| - | + | ||
| - | These settings maximum write reduction with reasonable data preservation.\\ | + | |
| - | + | ||
| - | ==== For SSD Users ==== | + | |
| - | - **Consider enabling**: Write caching for high-activity paths only | + | |
| - | - **Do enable**: Flush on shutdown | + | |
| - | - **Optional**: | + | |
| - | - **Why**: Extends SSD life without being overly aggressive | + | |
| - | + | ||
| - | ==== For Spinning Hard Drive Users ==== | + | |
| - | There' | + | |
| - | + | ||
| - | ===== Frequently Asked Questions | + | |
| **Q: Will this make my system faster?**\\ | **Q: Will this make my system faster?**\\ | ||
| Line 120: | Line 101: | ||
| A: Your personal files and shares are not affected. Only system logs and temporary files are cached.\\ | A: Your personal files and shares are not affected. Only system logs and temporary files are cached.\\ | ||
| \\ | \\ | ||
| - | **Q: Should I use this?** | + | **Q: Should I use this?**\\ |
| - | A: Yes, if you're running OpenMediaVault on SD cards, USB drives, or SSDs. Write Cache is not needed for traditional | + | A: Yes, if you're running OpenMediaVault on SD cards, USB drives, or SSDs. Write Cache is not needed for spinning |
| \\ | \\ | ||
| **Q: Can I customize what gets cached?**\\ | **Q: Can I customize what gets cached?**\\ | ||
| Line 127: | Line 108: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| + | ==== Sys Admin ==== | ||
| + | === When Cached Data is Lost === | ||
| + | Cached data will be lost in these situations: | ||
| + | - Power loss or unexpected shutdown (if flush on shutdown isn't configured) | ||
| + | - System crash | ||
| + | - Between flush intervals | ||
| + | === I Need to See Recent Logs === | ||
| + | |||
| + | On the CLI, issue the following command flush cached logs to disk:\\ | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | === I Want to Temporarily Disable Write Cache === | ||
| + | |||
| + | On the CLI, issue the following command:\\ | ||
| + | |||
| + | '' | ||
| + | |||
| + | This turns off caching until the next boot or until you manually mount it again.\\ | ||
| + | \\ | ||
| + | \\ | ||
| ===== Source Code ===== | ===== Source Code ===== | ||
| -> [[https:// | -> [[https:// | ||