[Bug 205107] No HDD spindown/parking on shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=205107

--- Comment #16 from Kaur Männamaa (kaurman@xxxxxxxxxxx) ---
Did some additional testing & asked Mark's opinion and here's what we found.

First, I must say that one's ears do not seem to be a trustworthy source of
information. I tested with another drive where accessing SMART data was not a
problem and found that on many occasions the count didn't actually increase
although I would have presumed so judging by what I heard.

Now, as for what is actually going on, it is Mark's view that the kernel is
probably not to blame here. Rather systemd or one of its services acting up,
for example, which is where you started from...

It is worth pointing out, however that Mark found the presence of the bug to be
dependent on whether the drive had been previously mounted. This is something
that differs from your observations, unless I'm mistaken.

True, it appears that you didn't test with a drive that had never been mounted
after connecting but rather with one that you had unmounted. Who knows, maybe
even that can make a difference but that's just speculation by me at the
moment. 

Do note, however, what I said about relying on your ears. IF you have based
some of your recent reporting on what you heard instead of checking the actual
count then this is something to consider.

If, on the other hand, you have checked the count and can still confirm that
the bug doesn't care if the drive has been previously mounted or not then you
are probably seeing something similar to what I'm seeing on my system, i.e
shutting down without ever mounting does not seem to make a difference (meaning
the problem is present *sometimes*). Yet, the kernel still seems to do what is
expected (at least according to the basic tests Mark helped to arrange). I.e
the drive does get flagged for start & stop management by the kernel, as it
should.


What I ran into was similar to what is described here:
https://www.toradex.com/community/questions/22373/udisk-unable-to-detach-device-after-unmount.html

In other words, I started the system, connected the drive and tried to unmount
(if mounted) & power-off manually but did not always succeed as for powering
off. If that happens, shutdown always results in the count increasing, which
makes sense, after all.

The scenario described in the report I linked to cannot be the problem in my
case, as the material is old and the packages, including the kernel, I use are
newer. It does indicate, however, that the problem as such has been noticed
before. I have some thoughts on what could be happening in my case but I
haven't had the time to test my hypothesis yet. I will let you know should I
find anything relevant.

K

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux