TEXT   65

HDD Spindown and sleep mode

Guest on 26th April 2022 03:29:28 PM

  1. ##################################################################################
  2.         https://community.wd.com/t/clean-os-debian-openmediavault-and-other-firmwares/93714/870
  3.         Thx for Davincino.
  4. ##################################################################################
  5.  
  6. 1. Edit /etc/fstab, add mount options to /dev/sda4 (Data partition) and /dev/md0 (root):
  7.         noatime,nodiratime,commit=60
  8.  
  9. 2. Ramlog already installed in all firmwares. But you can install it manually (Or update preinstalled):
  10. cd /tmp
  11. wget http://www.tremende.com/ramlog/download/ramlog_2.0.0_all.deb
  12. dpkg -i ramlog_2.0.0_all.deb
  13. rm ramlog_2.0.0_all.deb
  14.  
  15. 3. Disable some services:
  16. update-rc.d bootlogd disable
  17. update-rc.d rrdcached disable
  18. update-rc.d collectd disable
  19. update-rc.d monit disable
  20. # Also you can change start option in /etc/default/*service_name*
  21. insserv -v -d
  22.  
  23. 4. Disable unusual cron jobs:
  24. crontab -e
  25. # Move fake-hwclock to "daily" folder:
  26. mv /etc/cron.hourly/fake-hwclock /etc/cron.daily
  27.  
  28. 5. Edit samba startup script (add ram folder for tmp files):
  29. nano /etc/init.d/samba
  30. # in start-command after first row "deamon..." add this:
  31. mount -t tmpfs tmpfs /var/run/samba
  32. mount -t tmpfs tmpfs /var/cache/samba
  33. # in stop-command before "log_end_msg 0" add this:
  34. umount /var/run/samba
  35. umount /var/cache/samba
  36.  
  37. 6. Increase dirty-writeback-time 5s to 60s
  38. echo 6000 > /proc/sys/vm/dirty_writeback_centisecs
  39.  
  40. 7. Reboot.
  41.  
  42. ########
  43. Check if all runing normall:
  44. # Ramlog
  45. /etc/init.d/ramlog status
  46. # If not - read logs:
  47. tail /var/log/ramlog
  48.  
  49. #ramlog is working with tmpfs? samba-mounts to tmpfs exists?:
  50. df -h

Raw Paste


Login or Register to edit or fork this paste. It's free.