[Bug 733122] New: udisks-helper-ata-smart-collect wakes up external USB drive on standby
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c0 Summary: udisks-helper-ata-smart-collect wakes up external USB drive on standby Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: 64bit OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: lukrez.forums@gmx.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 After upgrading to openSUSE 12.1 I noticed that my external USB started spinning all 30 minutes. The drive usually spins down, as it is used for backup. In /var/log/messages I can see entries like 28.11.2011 18:01:18 odysseus dbus-daemon[869] **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4:1.0/host9/target9:0:0/9:0:0:0/block/sdb 28.11.2011 18:01:18 odysseus dbus-daemon[869] helper(pid 8417): launched job udisks-helper-ata-smart-collect on /dev/sdb /dev/sdb is the USB drive. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |nadvornik@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c1 --- Comment #1 from Franz Häuslschmid <lukrez.forums@gmx.net> 2012-01-03 11:23:21 UTC --- I could imagine that the problem of <https://bugs.freedesktop.org/show_bug.cgi?id=24579> is related to this issue, may be a regression. I tried to start the data collector manually with the disk in standby mode: localhost:~ # /usr/lib/udisks/udisks-helper-ata-smart-collect /dev/sdb 1; sleep 5 ; /usr/lib/udisks/udisks-helper-ata-smart-collect /dev/sdb 1 Disk /dev/sdb is asleep and nowakeup option was passed SURGWQAAAgB6Qv8/N8gQAAAAAAA/AAAAAAAAACAgICBXIC1EQ1dQQTBXOTA2MTQwAAAA[ ... ] The output of the second call to udisks-helper-ata-smart-collect is shortended for readability. The point is, that the tool correctly reports that the disk is asleep and it shouldn't wake it up, but nevertheless wakes it up and reports its data in the second run. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c Vladimir Nadvornik <nadvornik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nadvornik@suse.com |vuntz@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c2 Jean Delvare <jdelvare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdelvare@suse.com OS/Version|SUSE Other |openSUSE 12.1 Severity|Normal |Major --- Comment #2 from Jean Delvare <jdelvare@suse.com> 2012-05-23 07:56:49 UTC --- I see exactly the same here. This is very annoying. Spinning up a HDD 48 times per day will make it age faster, not to mention the extra power consumption and noise. This needs to be fixed quickly. udisks should never poll sleeping disks. BTW, I have been trying to run a long SMART self-test on my external drive several times yesterday, and it never completed. smartctl says: Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Aborted by host 70% 637 - # 2 Extended offline Aborted by host 80% 615 - # 3 Extended offline Aborted by host 90% 614 - # 4 Short offline Completed without error 00% 613 - # 5 Extended offline Aborted by host 70% 608 - So it was supposedly "aborted by host" but certainly not by me. Now I suspect that the repeated polling by udisks is what caused the test to be aborted. The test is supposed to take 107 minutes to complete, and the furthest the test went is ~30% which corresponds to ~32 minutes. This is suspiciously close to the 30 minutes polling period of udisks. So this would be another annoyance from udisks. I presume I can't uninstall or stop udisks altogether, but is there a way to disable the SMART helpers, at least until the issues above are resolved? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c3 --- Comment #3 from Jean Delvare <jdelvare@suse.com> 2012-05-23 09:40:19 UTC --- I was able to get a complete extended offline self-test of my drive with the Gnome disk utility. It uses udisks as a back-end so udisks-helper-ata-smart-collect knows it must not run while self-test is in progress. This solves my second problem. The first issue still holds though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c4 Roman Evstifeev <someuniquename@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |someuniquename@gmail.com --- Comment #4 from Roman Evstifeev <someuniquename@gmail.com> 2012-07-30 21:49:48 UTC --- I am experiencing same messages flooding, but with hdd dbus-daemon[892]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:1f.5/ata3/host2/target2:0:0/2:0:0:0/block/sda dbus-daemon[892]: helper(pid 26520): launched job udisks-helper-ata-smart-collect on /dev/sda dbus-daemon[892]: helper(pid 26520): completed with exit code 0 dbus-daemon[892]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.5/ata3/host2/target2:0:0/2:0:0:0/block/sda My system is openSUSE 12.1 HDD itself can successfully finish short smart self-test, so the hardware problem is unlikely related -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c5 --- Comment #5 from Roman Evstifeev <someuniquename@gmail.com> 2012-07-30 21:53:13 UTC --- Oh, i forgot to mention that along with messages come 1-second ui freezes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c6 --- Comment #6 from Roman Evstifeev <someuniquename@gmail.com> 2012-07-30 21:55:14 UTC --- Forget my last comment for now. I am still testing if it is related -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c7 tosiara tosiara <tosiara@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tosiara@gmail.com --- Comment #7 from tosiara tosiara <tosiara@gmail.com> 2012-09-04 14:39:20 UTC --- I have same issue. Every 30 minutes disks are being woken up. System log is full of garbage like this: dbus-daemon[989]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:11.0/host1/target1:0:0/1:0:0:0/block/sdb dbus-daemon[989]: helper(pid 10364): launched job udisks-helper-ata-smart-collect on /dev/sdb dbus-daemon[989]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:11.0/host0/target0:0:0/0:0:0:0/block/sda dbus-daemon[989]: helper(pid 10365): launched job udisks-helper-ata-smart-collect on /dev/sda dbus-daemon[989]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:11.0/host3/target3:0:0/3:0:0:0/block/sdd dbus-daemon[989]: helper(pid 10366): launched job udisks-helper-ata-smart-collect on /dev/sdd dbus-daemon[989]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:11.0/host2/target2:0:0/2:0:0:0/block/sdc dbus-daemon[989]: helper(pid 10367): launched job udisks-helper-ata-smart-collect on /dev/sdc dbus-daemon[989]: helper(pid 10364): completed with exit code 0 dbus-daemon[989]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:11.0/host1/target1:0:0/1:0:0:0/block/sdb dbus-daemon[989]: helper(pid 10366): completed with exit code 0 dbus-daemon[989]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:11.0/host3/target3:0:0/3:0:0:0/block/sdd dbus-daemon[989]: helper(pid 10367): completed with exit code 0 dbus-daemon[989]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:11.0/host2/target2:0:0/2:0:0:0/block/sdc dbus-daemon[989]: helper(pid 10365): completed with exit code 0 dbus-daemon[989]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:11.0/host0/target0:0:0/0:0:0:0/block/sda openSUSE 12.1 32 bit -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c8 --- Comment #8 from Jean Delvare <jdelvare@suse.com> 2012-09-04 14:50:14 UTC --- See the workaround in comment #3 for the time being. But it would be great if the user did not have to care. I don't know what is the status in 12.2, did anyone test? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c9 --- Comment #9 from Walter Jontofsohn <wjontofs@atriumberlin.de> 2012-09-19 08:19:35 UTC --- I can confirm the message flooding with my HDDs as in comment #7 with opensuse-12.2 (besides, it's even every 20 minutes). openSUSE 12.2 64 bit -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c10 --- Comment #10 from tosiara tosiara <tosiara@gmail.com> 2012-11-16 19:11:20 UTC --- I noticed that after some updates I installed on November 4 there are no more flooding messages in the log (both 12.1 and 12.2). Can anybody confirm that the issue is resolved in some of the patches? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c11 Jean Delvare <jdelvare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |tosiara@gmail.com --- Comment #11 from Jean Delvare <jdelvare@suse.com> 2012-11-16 19:43:30 UTC --- I still see the log message flood for internal disks on my two up-to-date 12.1 systems as of today. Did you install a non-official update of the udisks package maybe? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c12 --- Comment #12 from tosiara tosiara <tosiara@gmail.com> 2012-11-17 10:03:29 UTC --- All my machines are configured to receive only official updates. No any manual changes or patches Currently I have following: 1. workstation 12.1 (kernel 3.1.10-1.9-desktop, last patched Nov 4) - issue disappeared on Nov 4 2. workstation 12.1 (kernel 3.1.10-1.16-desktop, last patched Nov 17) - has issue. 3. laptop 12.2 (kernel 3.4.11-2.16-desktop, last patched Nov 17) - has issue. So now I'm completely confused -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c13 --- Comment #13 from Vincent Untz <vuntz@suse.com> 2013-01-17 17:31:46 UTC --- For the record, this shouldn't happen with udisks2 (as it doesn't do polling). So if you're using 12.2 or later, maybe try removing udisks (not sure which desktop still requires it). A workaround is to add some udev rules, as mentioned in https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/638765/comments/7 (https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/638765 is tracking this) Not sure if there'll ever be a real fix, as the 1.x branch of udisks is not actively developed :/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c14 --- Comment #14 from Franz Häuslschmid <lukrez.forums@gmx.net> 2013-02-24 10:39:45 UTC --- In the meantime, I solved that problem for me by purchasing a solid state disk and using the former system drive as backup medium. Now I have no more need for permanently using an external usb drive ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c15 --- Comment #15 from tosiara tosiara <tosiara@gmail.com> 2013-02-28 06:48:59 UTC --- Vincent, I have tried removing udisks - this brakes kdelibs dependency (about 120 packages) I will also try udev rule to disable polling and let you know if that helps -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733122 https://bugzilla.novell.com/show_bug.cgi?id=733122#c16 --- Comment #16 from tosiara tosiara <tosiara@gmail.com> 2013-04-14 08:26:28 UTC --- While there is still no official fix for this issue I decided to save my disk and disabled smart polling completely by replacing following scripts: /usr/lib/udisks/udisks-helper-ata-smart-collect /lib/udev/udisks-probe-ata-smart Replaced by this empty script: ########### #!/bin/bash exit 0 ########### The scripts are still triggered every 30 minutes, but this does not wake up disks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com