Jump to content

Is it normal that write cache leads to HDDs spin up during shutdown/sleep?


Recommended Posts

I figured out that a cache flush at the shutdown/sleep process does spin up all HDDs which have write cache enabled.

 

  1. Is this normal behavior, or should write cache be always empty if the disk does spin down after 10 minutes?
  2. Do we already have a configuration to turn write cache off as a workaround? ([sdb...sde] in my case) Currently I use a sleep wake up script:
    printf /dev/sd%s\\n {b..e} | xargs -n 1 hdparm -W0

     

  3. Would it make sense to add this workaround as an optional configuration as pull request to the s3sleep plugin or is it a bug that spin up does happen for no reason even with probably empty write cache during shutdown?
Edited by Falcosc
Link to comment
  • Falcosc changed the title to Is it normal that write cache leads to HDDs spin up during shutdown/sleep?

-K Flag to make it persistent doesn't work. It is a common issue that the write cache needs to be set manually with hdparm on every boot.

 

But I don't understand why it is disabled on some systems by default. I found people who want to disable it on every boot but also find people who asked how to enable it on every boot.

 

How did we solved it in unraid? And is the cache flush hdd spin up a bug or is disable cache workaround worth to integrate into the commuity plugins?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...