[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Launchpad has imported 38 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=491552. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2009-03-22T22:53:45+00:00 Mace wrote: Created attachment 336227 "sysctl -w vm.block_dump=1" activity for sdb Description of problem: I have an internal SATA drive (sdb) that I only use for backups; it is otherwise unmounted. I have it set to spin down when idle. Recently, I noticed taht the drive is not spinning down. I checked to see what was accessing it using "sysctl -w vm.block_dump=1" (see the attached who-io.log). It appeared to be devkit-disks-part-id. I ran "devkit-disks --monitor-detail" (see attached devkit.log), and it appears that deviceKit is polling smart data, which keeps the drive from spinning down. The device is not removable, and it's not in the list of polled drives: # ps -Afl | grep devkit-disks-daemon | grep -v grep 4 S root 4326 1 0 80 0 - 0 poll_s 17:23 ?00:00:02 /usr/libexec/devkit-disks-daemon 1 S root 4382 4326 0 80 0 - 0 poll_s 17:23 ?00:00:03 devkit-disks-daemon: polling /dev/sdg /dev/sdf /dev/sr0 /dev/sde /dev/sr1 /dev/sdd Version-Release number of selected component (if applicable): DeviceKit-disks-003-7.fc11.x86_64 DeviceKit-003-1.x86_64 DeviceKit-power-006-3.fc11.x86_64 How reproducible: Always Steps to Reproduce: 1.Unmount a drive 2.Set the spin down time 3.Watch nothing happen Actual results: Drives stay spun up, even when unmounted Expected results: Drives should spin down Additional info: Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/0 On 2009-03-22T22:55:00+00:00 Mace wrote: Created attachment 336228 devkit-disks --monitor-detail Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/1 On 2009-03-24T21:22:12+00:00 Eric wrote: Mace, feel free to add it to the tracker bug if you like; it's a slightly different issue, but the same net result, sounds like. -Eric Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/2 On 2009-03-24T21:30:16+00:00 David wrote: FWIW, this is fixed with the smartmontools->libatasmart port that I committed upstream yesterday. I'll keep this bug open until it's in Rawhide. Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/3 On 2009-03-25T00:31:19+00:00 Mace wrote: (In reply to comment #3) > FWIW, this is fixed with the smartmontools->libatasmart port that I committed > upstream yesterday. I'll keep this bug open until it's in Rawhide. I don't have libatasmart installed; how does it relate to the issue? Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/4 On 2009-03-25T16:52:28+00:00 David wrote: (In reply to comment #4) > (In reply to comment #3) > > FWIW, this is fixed with the smartmontools->libatasmart port that I > > committed > > upstream yesterday. I'll keep this bug open until it's in Rawhide. > > I don't have libatasmart installed; how does it relate to the issue? As I said this is fixed upstream but the fix is not in Rawhide yet. Once the next version hits Rawhide libatasmart will be pulled in and then a drive will not be spun up for checking ATA SMART if the drive are sleeping. Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/5 On 2009-04-07T04:43:04+00:00 Matthias wrote: Should be fixed in DeviceKit-disks-004 Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/6 On 2009-04-07T05:17:41+00:00 Mace wrote: Created attachment 338456 devkit-disks monitor output I updated to DeviceKit-disks-004 from Koji, rebooted, and still see the same issue. Sdb is unmounted, has 'hdparm -S2' set, but will not spin down. The 'devkit-disks --monitor-detail' still shows /dev/sdb being polled. Reply at: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/comments/7 On 2009-04-07T16:19:32+00:00 David wrote: Interesting. Please try to boot into runlevel 3 (to avoid the desktop starting devkit-disks-daemon), ensure that devkit-disk
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
As of 2013, Martin's package is no more in the "PPA" cited in message #38. I tried to install libatasmart4 from packages.ubuntu.com/saucy/libatasmart4, but it doesn't fix the problem for me. I'm on Debian 6.0, which doesn't have the updated package in repos (not in "unstable" repo, apparently). Where can I get the package, preferably the individual "raw" .deb file so to not cause repo conflicts? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/435190 Title: Disk wakes up every 30 minutes and produces errors on dmesg To manage notifications about this bug go to: https://bugs.launchpad.net/libatasmart/+bug/435190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
For those still affected by this issue please compile the attached test case and run against the suspected disk. If it produces [189046.60] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen [189046.75] ata1.00: cmd b0/d1:01:00:4f:c2/00:00:00:00:00/00 tag 0 pio 512 in [189046.77] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) On demand then let us know so we can duplicate this issue to https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/1092622 TEST CASE: # sudo apt-get install -y libatasmart-dev # gcc -o read_thresh_test skreadthreshold.c -latasmart # sudo ./read_thresh_test /dev/sdX, where X is suspect device ** Attachment added: "skreadthreshold.c" https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/435190/+attachment/3464889/+files/skreadthreshold.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/435190 Title: Disk wakes up every 30 minutes and produces errors on dmesg To manage notifications about this bug go to: https://bugs.launchpad.net/libatasmart/+bug/435190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/435190 Title: Disk wakes up every 30 minutes and produces errors on dmesg -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart Importance: Medium => Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/435190 Title: Disk wakes up every 30 minutes and produces errors on dmesg -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
By the way, I use smartd once comment out the lines -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Running latest ubuntu 9.10 and this bug still happens. It caused 3000 load/unload counts on my a week old hard drive. A work around is to comment out # USB ATA enclosures with a SAT layer #KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode" # ATA disks driven by libata #KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="ata", ENV{DEVTYPE}=="disk", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode" in /lib/udev/rules.d/95-devkit-disks.rules -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
The PPA version fixed the main problem, however it seems that a smaller problem remains: if drive spin down timeout is 30minutes (or above I suppose) the drive never spins down. Drive is polled while being spinning and it resets the timeout and prevents it from spinning down. I guess this should at least be documented somehow since it (smaller timeouts work, longer timeout dowsn't) appears like an extremely weird behaviour. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
This bug is three months old, and the fix is two months old, but I can't find any mention of this bug (or the fix) in the Karmic release notes: http://www.ubuntu.com/getubuntu/releasenotes/910 Please folks - when you find and fix a problem, be proud of your work and update the release notes so that the rest of us have a clue what we're getting into when we install the new release. This power-up/power-down bug is a disk-killer (24 power-cycles per day!) and people should know about it and the PPA fix if you aren't going to push the fix into the regular Karmic update stream. Thanks to Martin for the PPA. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart (Ubuntu) Status: Fix Released => Confirmed ** Changed in: libatasmart (Ubuntu) Status: Confirmed => Fix Released -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
It looks like the patch works for me too. My second hard disk (Western Digital WD2000JD of 200Gb) was constantly spinning up and down since the upgrade to karmic. I had modified /etc/hdparm.conf so that this disk spins down automatically after a few minutes. It worked great with jaunty, with the hard disk spinninp up only when I wanted to access it. After the upgrade, it was periodically spinning up, even if I did not access to the hard disk at all. I found this bug and installed the PPA package. Since then, the hard disk did not spin up periodically : it looks like it solved my problem. Thanks to all of you who worked on it. Will this patch be backported for karmic? -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Thanks for the PPM fix, it also worked for my Seagate disk. It also spins up fine when doing the devkit-disks --ata-smart-refresh /dev/sdb --ata-smart-wakeup -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I'm seeing the same issue here. with a new build of Karmic. I have drives, WD1000EADS, HDS, Maxtor, seagate. Drives are set to spindown every 20minutes. They are in RAID sets md0, md1 and md2. using mdadm software raid. I applied the updated package from the PPA above and so far (30 minutes) none of the drives have spun up. I'll give it another hour then reboot to see if all the changes are persistent. Thanks for the fast help on this one. I hate the idea of leaving 11 drives spinning in a system that's barely used. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
On fedora, since they aren't backporting to 11, I've done this in root's cron until I move to 12: @hourly /usr/bin/killall devkit-disks-daemon > /dev/null 2>&1 Maybe it would work around it on ubuntu as well? -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
thanks martin! is there anything i/we can do, to get this fix backported to karmic? imho its worth it and the regression potential is quite low, but it seems you think, its not important enough (i may be wrong in all points though :) without a fix (the ppa is good enough for me personally), i would have to remove one backup harddrive from my pc, because its too noisy, which could lead to loss of data eventually. not exactly what the "user data loss" directive from https://wiki.ubuntu.com/StableReleaseUpdates#When means, i guess, but worth mentioning imo :) -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
0.17-1 synced into lucid, which fixes this. ** Changed in: libatasmart (Ubuntu) Status: Fix Committed => Fix Released -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Petru, Did you try with libatasmart from the PPA? See #24 above. See also #11 with a non-elegant work-around. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I have the same issue: one of the hdd i use for backups (Hitachi Deskstar T7K250 series, model HDT722525DLA380) wakes up every 30 minutes. Please help, Petru -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
i was affected too. after installing libatasmart from the ppa '/usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 1' does not wake up my ST3250823AS (7200.8) drive anymore, thanks. pls add this to karmic updates. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart Status: Confirmed => Fix Released -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart (Fedora) Status: In Progress => Fix Released -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Hello Martin, When ca we expect the fix to reach Karmic proper? -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Martin, Thanks again. After a night of practical use, the fix is sticking to the correct behaviour. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Fixed in 0.17-1 in Debian. ** Changed in: libatasmart (Ubuntu) Status: In Progress => Fix Committed -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Martin, I have the same behaviour as Antti's. So I'm guessing that we are good to go! Many thanks! -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Martin, Thanks for the PPA package! Works for me as expected: $ sudo /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 1 Disk /dev/sdb is asleep and nowakeup option was passed $ sudo /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 0 [disk spins up and encoded SMART data is printed] $ sudo /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 1 [encoded SMART data is printed] [wait for 31 s here, the spin-down timeout of my disk is 30 s] $ sudo /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 1 Disk /dev/sdb is asleep and nowakeup option was passed -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I'm soon leaving my home for a day at the office and I'd prefer not to have the 30mn wake ups for the whole day if it does not fix it. But be assured that the PPA will be in as soon as I am back this evening! I'll report back then. Thanks! -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
For easier testing, I prepared a package with Lennart's patch and uploaded it to https://launchpad.net/~ubuntu-desktop/+archive/ppa There's nothing else in this PPA, so it's safe for upgrading. Can folks affected by this please upgrade to this and verify that it fixes the problem? Thanks! ** Changed in: libatasmart (Ubuntu) Importance: Wishlist => Medium ** Changed in: libatasmart (Ubuntu) Status: New => In Progress ** Changed in: libatasmart (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart Status: Unknown => Confirmed -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Bug watch added: freedesktop.org Bugzilla #24579 https://bugs.freedesktop.org/show_bug.cgi?id=24579 ** Also affects: libatasmart via https://bugs.freedesktop.org/show_bug.cgi?id=24579 Importance: Unknown Status: Unknown -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: libatasmart (Fedora) Status: Unknown => In Progress -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
The source file atasmart.c in current head of libatasmart Git repository [1] is identical Karmic's current 0.16 version. Just checked that to make sure a fix isn't already on its way. [1]: git://git.0pointer.de/libatasmart.git -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Rich, Thanks for the Fedora bug link. That bug is assigned to the author of libatasmart, so I posted my findings there as well (see comment #15 above), with a link back to this Launchpad bug. ** Also affects: libatasmart (Fedora) via https://bugzilla.redhat.com/show_bug.cgi?id=491552 Importance: Unknown Status: Unknown -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Not to mention the wear in the hard drive's spindle motor from spin-up /spin-down every 30 minutes. This will result in bad drives and is not acceptable in a mature release! -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
wow wow wow ! Wishlist? Really? Please help us! The disk I am using for rsnapshot backups is perfectly fine, but it is noisy. Plus I have 2 disks in a small Shuttle enclosure, it gets hot in there, so spin-down is not part of a wishlist for me, it is a necessity! Please help! -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
This affects my 3 hdds...: /dev/sda: Maxtor 6L300R0 /dev/sdb: SAMSUNG HD154UI /dev/sdc: ST9120822AS I only use sda and sdc once a day so I would also like to see this fixed. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
FYI: The RedHat folks are also tracking this, but they claim it is a harddrive bug -- that the request shouldn't wake up most drives. https://bugzilla.redhat.com/show_bug.cgi?id=491552 Regardless I'd like to see this fixed somehow... I'd rather not have to replace the 5 drives in my RAID5 setup! ** Bug watch added: Red Hat Bugzilla #491552 https://bugzilla.redhat.com/show_bug.cgi?id=491552 -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Adding libatasmart to the "Affects" list since that seems to be the root cause for the problem: libatasmart can't query the sleep state of a drive without opening it first, and opening a disk executes the "Read Thresholds" call which spins up the disk. ** Package changed: devicekit-disks (Ubuntu) => libatasmart (Ubuntu) ** Changed in: libatasmart (Ubuntu) Status: Triaged => New -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I've traced the reason for the spin-up to the disk_smart_read_thresholds() call at the end of sk_disk_open() in atasmart.c. Apparently the SMART "Read Thresholds" command implies spinning up the disk, at least on my and Ricardo's controllers. I wonder why libatasmart4 always executes that call already when opening the disk device. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I sprinkled some debug output into job-ata-smart-collect.c and it seems that the sk_disk_open() call spins up the disk even before the sleep mode gets checked. sk_disk_open() is provided by libatasmart4, so should this bug be assigned there? Strangely, hdparm -C manages to retrieve the sleep state correctly without spinning the disk up. Hdparm doesn't use libatasmart4, so it must use a more advanced method for getting smart data from a drive. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Ricardo, Yes, any updates to devicekit-disks will break my work-around. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Just checked your workaround and it works for me. Don't know if updates will break it... -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Antti, I've checked and both commands spin up the disk. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Here's a dirty work-around: ~$ cd /usr/lib/devicekit-disks /usr/lib/devicekit-disks$ sudo mv devkit-disks-helper-ata-smart-collect devkit-disks-helper-ata-smart-collect.real /usr/lib/devicekit-disks$ sudo sh -c "cat >devkit-disks-helper-ata-smart-collect < #!/bin/sh > [ "$1" != "/dev/sdb" ] && /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect.real "$@" > EOF" /usr/lib/devicekit-disks$ sudo chmod a+x devkit-disks-helper-ata-smart-collect $ ls -l devkit-disks-helper-ata-smart-collect* -rwxr-xr-x 1 root root 99 2009-10-16 09:30 devkit-disks-helper-ata-smart-collect -rwxr-xr-x 1 root root 5608 2009-09-19 18:30 devkit-disks-helper-ata-smart-collect.real Replace /dev/sdb with the device you don't want to spin up. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Ricardo, You could check whether these commands spin up the disk on your system: $ sudo /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdX 1 $ sudo /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdX 0 (replace sdX with your disk device) -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Hello. I think I don't have the knowledge to help you in debugging this but I hope you succeed. If you need any help please post. Thanks. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I peeked at the source code. The ATA smart collect script is called by the daemon like this: /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 1 The "1" parameter is the "nowakeup" option. Executing the above call as root always spins up my disk (also when replacing "1" with "0"). The corresponding code is: nowakeup = atoi (argv[2]); if (sk_disk_open (device, &d) != 0) { g_printerr ("Failed to open disk %s: %m\n", device); goto out; } if (sk_disk_check_sleep_mode (d, &awake) != 0) { g_printerr ("Failed to check if disk %s is awake: %m\n", device); goto out; } /* don't wake up disk unless specically asked to */ if (nowakeup && !awake) { g_printerr ("Disk %s is asleep and nowakeup option was passed\n", device); ret = 2; goto out; } So either sk_disk_check_sleep_mode fails to detect that the disk is sleeping, or the nowakeup option is parsed incorrectly. I'll debug that later. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Same problem here. Strangely, when I tried monitoring disk access, I got no indication of any process accessing /dev/sdb* when the disk spun up or at any other time. I used this script to monitor: echo 1 >/proc/sys/vm/block_dump while ( ! dmesg -c|grep sdb ); do sleep 1; done echo 0 >/proc/sys/vm/block_dump A work-around would be greatly appreciated. This pretty much prevents me from using Mythbuntu with my current hardware as a HTPC. My motherboard can't boot from the silent 1TB disk connected to my SATA PCI card, so I need an old noisy IDE disk just for booting up. Can't sleep if it's spinning up every 30 minutes in the next room. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I noticed the same problem, any workarounds? Thanks. -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
But is there a way (even if it is a hard one) to disable the spinning up? -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
This is pretty much wontfix, though. However, this could be made configurable. ** Changed in: devicekit-disks (Ubuntu) Importance: Low => Wishlist ** Changed in: devicekit-disks (Ubuntu) Status: New => Triaged -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
** Changed in: devicekit-disks (Ubuntu) Importance: Undecided => Low -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
To furthermore pinpoint the problem it seems that the spinning up is happening because devkit is pooling the disk for smart data. I did the following: r...@jupiter:~# hdparm -y /dev/sdc /dev/sdc: issuing standby command r...@jupiter:~# hdparm -C /dev/sdc /dev/sdc: drive state is: standby r...@jupiter:~# devkit-disks --ata-smart-refresh /dev/sdc >dump.txt r...@jupiter:~# hdparm -C /dev/sdc /dev/sdc: drive state is: active/idle but according to the devicekit man page it should only wakeup the disk if I issued devkit-disks --ata-smart-refresh /dev/sdc --ata-smart-wakeup -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
I figure out what is spinning up the disks. If I kill devkit-disks-daemon the spinning up stops. I'm assigning this bug to devkit-disks. ** Package changed: ubuntu => devicekit-disks (Ubuntu) -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 435190] Re: Disk wakes up every 30 minutes and produces errors on dmesg
Here is the dmesg output with echo 1 > /proc/sys/vm/block_dump. Could it be kjournald2 that is causing the spin ups? The disk in question is /dev/sda and apparently there is no write actions to the disk at the time of spin up. I don't know how to check if there is any read actions. ** Attachment added: "dmesg.txt" http://launchpadlibrarian.net/32320137/dmesg.txt -- Disk wakes up every 30 minutes and produces errors on dmesg https://bugs.launchpad.net/bugs/435190 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs