LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-10-2008, 04:48 PM   #1
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: CentOS
Posts: 50

Rep: Reputation: 15
Mandriva 2008.1 and hddtemp


I recently installed Mandriva 2008.1 on a new computer and so far everything seems to have gone great, except for one minor issue. I noticed that there seemed to be a lot of idle drive activity, as though something were accessing the harddrive every few seconds. The activity light is almost always blinking but I couldn't seem to find anything running that would account for it. Finally I happened to catch a process start and stop while looking at htop today and I think I have found the "problem," but I'm not sure how to fix it.

It seems that hddtemp (a harddrive temperature monitoring package) is constantly being started in the background. My auth.log contains evidence like this:

Code:
May 10 16:43:20 mycomputer userhelper[28052]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:25 mycomputer userhelper[28055]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:30 mycomputer userhelper[28059]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:35 mycomputer userhelper[28062]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:40 mycomputer userhelper[28065]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
As you can see, something is running hddtemp every 5 seconds. Aside from the fact that it is filling up my logs, it's really annoying and I'd rather not have the drive constantly being accessed like this. Hddtemp is also run as a service at start-up, but stopping the service (service hddtemp stop) doesn't seem to help. For reference, my harddrive is a Western Digital Caviar RE WD1600YS, 160Gb SATA drive. Does anyone have any ideas/suggestions? Thanks!
 
Old 05-10-2008, 06:37 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
stopping the service should help so am a lost on that one.

2) I installed it to have a look but could find some /etc/ files but none on timing.

I suggest you disable this on bootup as well pls and I rely on lm_sensors with a gui gkrellm for other temps (not hdd) and they have little impact.

BTW if you have a service checking a drive of course you are going to see drive light activity.

3) however if you still want it, consider having it removed from auth log. Not sure but probably pam may have a setting?
 
Old 05-10-2008, 09:18 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,415
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
hddtemp config is usually found in /etc/sysconfig/ and the datadase is /etc/hddtemp.db

/etc/smartd.conf is a package that allows the timings of the sensors for harddrives.

and sensors for motherboard sensors.


/etc/smartd.conf has lots of info as to how and when the process can be setup.

Hope this helps, cheers, Glenn
 
Old 05-11-2008, 12:46 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
damn I did look at syscofig but had not thought of smart ....good one Glenn
 
Old 05-11-2008, 09:07 PM   #5
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: CentOS
Posts: 50

Original Poster
Rep: Reputation: 15
I checked in /etc/sysconfig and there was a config file for hddtemp, but it didn't contain any information on timing or anything similar. And it turns out I don't have smartd installed. The hddtemp settings in sysconfig only seem to pertain to the hddtemp daemon and to me it looks like some other program is constantly trying to run it manually. I haven't been able to find out where the command to run it is coming from though.

In any event, I just decided to uninstall it. I'd still be interested in finding out what was causing this problem if anyone knows, since it is a neat little program. Thanks.
 
Old 05-11-2008, 11:12 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,415
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
The sensors package is for monitoring the motherboard (fans, temps and voltages) libsensors. It is NOT used by the lm_sensors directly.

See also the lm_sensors homepage at:
http://www.lm-sensors.org/

This file is used by /etc/init.d/lm_sensors and defines the modules to
be loaded/unloaded. This file is sourced into /etc/init.d/lm_sensors.


smartd http://smartmontools.sourceforge.net is for the smart monitoring built into modern harddrives.

man hddtemp reveals...

DESCRIPTION
hddtemp will give you the temperature of your hard drive by reading
Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T.) infor‐
mation on drives that support this feature. Only modern hard drives
have a temperature sensor. hddtemp supports reading S.M.A.R.T. infor‐
mation from SCSI drives too. hddtemp can work as simple command line
tool or as a daemon.

You can specify one or more device drive path, where each path can be
prefixed with a type like PATA, SATA or SCSI to force hddtemp too use
one of these type (because detection can fail).


As with most of these type of package, we need to configure it before it works.


Anyway, I think you could set it up, you'll need to research some more.

Cheers, Glenn
 
Old 05-12-2008, 08:46 AM   #7
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: CentOS
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for all the replies and I really appreciate the help, and I don't want to sound rude, but I think some of the replies have missed the point. I had hddtemp installed and configured correctly. The daemon would run at start-up and would report drive temps just fine. The problem is that some other program kept trying to run hddtemp via a command line every 5 seconds. This is annoying, and is compounded by the fact that these repeated run attempts are being logged in places like auth.log because whatever is running it is using userhelper to do it.

I suspect this is some bizarre problem with the Mandriva implementation of hddtemp. Hddtemp was installed with my new installation of 2008.1 and everything appeared to be set up correctly until I noticed that my auth.log file was huge. It looks to me like something similar to a cron job keeps running it every 5 seconds (but I checked all my scheduled cron jobs and no luck). The reason I think this is because stopping the hddtemp service does not fix the problem (I also stopped it from loading at boot time and that still didn't work).

Perhaps the better question is does anyone know what services typically use uerhelper to execute jobs? I know userhelper is a service that writes out all sorts of stuff to the standard out when you use it to execute commands, but I'm not sure why it would be used to run hddtemp in this case.
 
Old 05-12-2008, 09:07 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,415
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
My auth log is only 37.5kb

Sorry if I was off topic.
 
Old 05-12-2008, 07:07 PM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
well I probably equally guilty but I live in aussieland so am already a convict.

1) the daemon runs ok at startup is good to know but only suggests thats an init script

2) so I am wondering if you have changed your log to hide your username or is that the true message?

I am wondering if, you would like to try a work around (means I am not cluey enough on pam)

use root powers to directly add your user name to /usr/sbin/hddtemp reboot and see if there is any change.
 
Old 05-12-2008, 07:10 PM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
I am looking at this....but I do not want you to lose more meaningful messages

http://linux.die.net/man/3/pam_authenticate
 
Old 05-12-2008, 11:39 PM   #11
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: CentOS
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
My auth log is only 37.5kb
After about 2 days, my auth.log was about 10mb or so in size. I know it's not a huge problem or anything, but it's really annoying. I'm also a little paranoid about log sizes since I once misconfigured a program to log way too much stuff in a very short period of time and ended up filling all the free space on my root drive -- there wasn't even enough space left to start x and since I was a big newbie at the time I wasn't sure what to do. So ever since then I've been trying to keep better track of all my logging services.

Quote:
so I am wondering if you have changed your log to hide your username or is that the true message?
That's correct, I am hiding my username and my computer name.

Quote:
use root powers to directly add your user name to /usr/sbin/hddtemp reboot and see if there is any change
I will try this to see if anything happens. This might solve the logging problem since it's obviously userhelper that's logging to auth.log and not hddtemp.

I also had the opportunity to install hddtemp on a machine running Mandriva 2008.0. I used urpmi to install it and it runs just fine -- and nothing is attempting to run it every 5 seconds. So I'm even more suspicious that somewhere in the 2008.1 distro is a program that is configured to continuously execute hddtemp instead of just letting the daemon do its job.

Last edited by 81bones; 05-16-2008 at 03:33 PM. Reason: grammar
 
Old 12-14-2008, 05:20 AM   #12
otherland
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 1
most likely ksensors?

I just noticed the same problem on my machine (Fedora10), and - for my case - found the solution:
I was running ksensors, to display the CPU temp and Fan speed in the system dock. If I kill ksensors, the log messages go away; if I increase the checking interval there (default is 5 seconds), then the time interval of the log messages increases.

I have not yet found a way to use ksensors without it checking HDD temp - still looking into that.

UPDATE:
It seems that ksensors starts periodically checking HDD-temp after configuring HDD-temp readout for the first time. This creates configuration sections in /home/<username>/.kde/share/config/ksensorsrc.
I have not found any way to stop periodic HDD-temp checking from within ksensors. However, after I stopped ksensors, manually deleted all sections pertaining to HDD-temp from the configuration file, and then restarted ksensors, periodic checking has stopped.
So far I have found no way of teaching ksensors to query a running hddtemp daemon instead of doing the checking itself - the hddtemp daemon does not seem to create offending log entries.

Last edited by otherland; 12-14-2008 at 05:38 AM.
 
Old 11-20-2011, 01:10 AM   #13
dmitry.khn
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by 81bones View Post
As you can see, something is running hddtemp every 5 seconds. Aside from the fact that it is filling up my logs, it's really annoying and I'd rather not have the drive constantly being accessed like this. Hddtemp is also run as a service at start-up, but stopping the service (service hddtemp stop) doesn't seem to help. For reference, my harddrive is a Western Digital Caviar RE WD1600YS, 160Gb SATA drive. Does anyone have any ideas/suggestions? Thanks!
in my case it was webminstat module for webmin. this software has one of graph - hddtemp. when i stoped this sensor in this software - that kind messages in auth.log disapeared
 
1 members found this post helpful.
Old 11-20-2011, 01:26 AM   #14
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,415
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
Hi, I'm glad you found the solution! I, for one was puzzled.

Please make you thread as "SOLVED"

Regards Glenn
 
  


Reply

Tags
hddtemp, mandriva


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Perfect Server - Mandriva 2008 Spring Free (Mandriva 2008.1) LXer Syndicated Linux News 0 04-10-2008 04:10 PM
LXer: DistroWatch Weekly: First Look at Mandriva Flash 2008, Gentoo Linux 2008.0 sche LXer Syndicated Linux News 0 01-28-2008 05:30 AM
Mandriva 2008 Fails To Update Mandriva 2007 Spring Free max53000 Mandriva 1 10-20-2007 04:53 AM
LXer: The Perfect Desktop - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-16-2007 07:20 PM
LXer: The Perfect Server - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-11-2007 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration