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
Check sleep status of HDD's in layered structures before scanning volumes #868
Comments
I suppose the problem here is that an ATA drive lookup done in However, in your case, if you are not running any UDisks client that consumes the Would you have a way to verify that it solves your issue please? |
Welll ... although I consider myself an advanced user, I don't think I'm advanced enough to run a self-built system component. As I use my PC for my job, I also don't want to risk the stability of the OS. |
No worries. I've updated the pull request with a TODO about layered structure. I don't think we'd get to it anytime soon. I would like to keep this change in a development branch for the moment as the way the object properties are overriden is kinda hacky. Needs more testing in the CI over time. Distributors are of course welcome to pick the changes up at their consideration. |
Unfortunately, mounting USB devices still wakes up my internal HDDs. |
This issue is a follow-up of #611 (comment). Having two aspects, I think it helps to separate them into individual issues, starting with the bigger one.
System and version info:
udisks2 2.9.2-1 on Arch Linux
My PC is running mostly 24/7, and I'm trying to keep the RAID disks sleeping as much as possible, especially when the summer comes, every watt not heating up my room is valuable :-) but I often need to mount/ unmount file systems on USB devices and also remote filesystems (the latter ones covered in the second issue: #869).
However, the HDD's wake up on any mount / unmount operation. I've followed this advice to replacedumpe2fs with a logger:
https://unix.stackexchange.com/questions/408757/why-is-dumpe2fs-called-without-user-interaction/408763
and when I mount a USB device, dumpe2fs is called for the dm devices that correspond to the logical volumes, e.g. /dev/dm-6.
This is my storage layout (I think this table is clearer than a udisksctl dump):
As you can see, everything on the RAID is separated from the rest of the system. And it contains data I don't access every day. But the HDD's spin up multiple times per day because of the mount/unmount operations on USB and remote filesystems.
I did a few further reading a while ago and I remember stumbling upon someone explaining that the volume scan is there "for a reason" but unfortunately without explaining the reason. I'd like to learn about this reason. :-)
The text was updated successfully, but these errors were encountered: