docs_in_draft:write_cache_plugin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs_in_draft:write_cache_plugin [2025/11/29 02:45] – [Q&A] crashtestdocs_in_draft:write_cache_plugin [2025/11/29 02:54] (current) – [For SD Card Users] crashtest
Line 41: Line 41:
  
 After installation, the plugin can be found under **Services**, **Write Cache**.\\ After installation, the plugin can be found under **Services**, **Write Cache**.\\
-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 ===
  
-''sudo /usr/sbin/omv-writecache flush''\\+- **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 Write Cache ====+- **Consider enabling**: Write caching for high-activity paths only\\ 
 +- **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 /usr/sbin/omv-writecache unmount''\\ +
- +
-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 `/var/log` +==== 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**: Daily flush +
-- **Why**: Extends SSD life without being overly aggressive +
- +
-==== For Spinning Hard Drive Users ==== +
-There's no practical gain. Write Cache is not needed.\\ +
- +
-===== 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 hard drives.\\+A: Yes, if you're running OpenMediaVault on SD cards, USB drives, or SSDs. Write Cache is not needed for spinning hard drives.\\
 \\ \\
 **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:\\
 +
 +''sudo /usr/sbin/omv-writecache flush''\\
 +
 +
 +=== I Want to Temporarily Disable Write Cache ===
 +
 +On the CLI, issue the following command:\\
 +
 +''sudo /usr/sbin/omv-writecache unmount''\\
 +
 +This turns off caching until the next boot or until you manually mount it again.\\
 +\\
 +\\
 ===== Source Code ===== ===== Source Code =====
  
 -> [[https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-writecache|Source Code]] -> [[https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-writecache|Source Code]]
  • docs_in_draft/write_cache_plugin.1764384301.txt.gz
  • Last modified: 2025/11/29 02:45
  • by crashtest