-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10 Minute housekeeping_timeout keeps Western Digital Drives awake. #892
Comments
on my NAS it even wakes up my sleeping drive ( The problem is also described here 1 but the solution does not work on my machine.
|
I can confirm this problem, even with disks from other brands such as Toshiba. As mentioned by @stheid, I agree that udisks should NOT wake up disks to do 'housekeeping' every few minutes. |
Is there a reason why setting the housekeeping timers to 15 mins isn't the right answer ? or making it user configurable ? Or do all the Devs not spin down their drives or use another brand :-) :-) :-) |
There seem to be at least 2 cases where udisks can wake up disks or keep them awake. For one, drives that are in sleep/standby mode seem to be woken up just to read smart data or such. That should not happen, I hope everyone agrees on that. So, changing that behavior would at least be a partial fix. If you put a drive in sleep mode via Aside from that, making the housekeeping timer configurable may also be helpful, as mentioned by @reidjr To sum the proposed ideas from this thread up:
Together, such changes could at least partially solve the problem and give users control to at least solve it for themselves. |
I am also impacted by this issue. Stopping udisks2 stops the 4 western digital drives from spinning up. That is the only workaround I have found. I am running Ubuntu 21.10. I can't seem to get any of the suggested workarounds to stop this behavior. |
just patching this again for Ubuntu 22.04 :-( same hack fixes it. |
I am also experiencing this issue on Ubuntu 22.04 LTS server. |
Patch and recompile the source as per my first post is the fix without changing anything else, or turning off functionality. Bit of googling will show this is not the first time this has come up, looks like it will never be picked up or fixed by the devs. Turning off udisk SMART should be (?) possible through /etc/udisks2/[diskidentifier].conf but you will need to search for the format, as I didnt try this myself. |
Guess I'll have to look into how you compile in Linux 😅 Always something new to learn.. |
I'm affected by the same problem. Honestly, to patch the source after every upgrade can't be the solution. |
I was facing the same issue with Kubuntu 22.04 LTS with udisks2, smartd and an external USB3 Seagate HDD. After trying lots of tweaks I found on the internet - without success - I came to the following solution (the drive in question is constantly connected to the host - I assume most drives affected are, only then one would want to make them go into standby):
Find the related /dev/disk/by-id:
My fstab:
My hdparm.conf
If you want to go this way please make sure you adapt the device values when editing /etc/fstab and /etc/hdparm.conf according to your drive(s). |
Wasted 3 hours today figuring out what kept my drives from spinning down. Really weird since I only installed udisks2 to setup the spin down. Switching to hdparm fixed it. |
Hi guys, any news? I have same issue with Seagate Ironwolf 4TB NAS drive. |
I have a patch to completely disable it: |
I uninstalled udisks on my server.
|
Found this to be the cause for my issues with getting disks (HGST-made) in a file-server to spin down. Setting the interval to 15 minutes would not be a fix for my use case, since the timeout is 2 hours for this application, to minimize on spin-ups/-downs. |
Western Digital Hard drives have a minimum 10 min sleep idle timer.
If they are polled for SMART status, they will reset that timer, and wait another 10 mins before spinning down.
Where udisks2 is used, the default housekeeping timer of 10 mins means that the drive never sleeps, as the timer is always reset.
If the drive is spun down manually, then it is not woken by polling.
I have 3 different western digital hard drive models , all exhibit this behaviour.
Simply changing the housekeeping timer to 15 mins stops this issue. With this small change the WD drives spindown when Idle and stay down.
The text was updated successfully, but these errors were encountered: