Page 1 of 2

Drive Temperature

Posted: Mon Jul 13, 2009 12:08 pm
by marcel
I don't know of this question is asked before, but when I go to the Amahi dashbord then storage tab > monitor. There is information about the hard drive. Only the temperature column is empty. Any idea?

Re: Drive Temperature

Posted: Mon Jul 13, 2009 12:15 pm
by bsk
You probably do not have a sensor in place for the HDD.

Re: Drive Temperature

Posted: Mon Jul 13, 2009 12:25 pm
by marcel
hmmm, your probably right. Never tought about that. Go looking in the motherboard Manuel.

Re: Drive Temperature

Posted: Mon Jul 13, 2009 12:44 pm
by bsk
Haha, most newer model PCs come with Drive CPU and Case sensors for you to monitor it, they also make things that will show it on the front (I use to have one before) but is not needed as software can now do the same thing, and its built in.

Re: Drive Temperature

Posted: Mon Jul 13, 2009 1:01 pm
by marcel
BrandonK1989,

I did some googling
hddtemp utility will give you the temperature of your hard drive by reading data from S.M.A.R.T. on drives that support this feature. Only modern hard drives have a temperature sensor. hddtemp supports reading S.M.A.R.T. information from SCSI drives too. hddtemp can work as simple command line tool or as a daemon to get information from all servers.
if you type:

Code: Select all

hddtemp /dev/sda
I'll get:

/dev/sda: WDC WD10EACS-00ZJB0: 33°C

So it's working but I think it is config issue. I'am googling further...

Re: Drive Temperature

Posted: Mon Jul 13, 2009 1:02 pm
by bsk
Hmm, cpg will be the one to look at that, as I dont have a working HDA ATM, but there might be some kind of connection issues with the code and your sensor. Has it worked before?

Re: Drive Temperature

Posted: Mon Jul 13, 2009 1:09 pm
by cpg
this is probably a bug.

i would venture to say that you have partition your drive(s) in LVM mode. correct?

the temperature detection code does not work for LVM.
the code that finds out the disks is probably incomplete and gets
confused when the drives are in LVM mode.

we need to find out the latest official way to find how many drives are in the system, regardless of the file system and partitioning mode ...

this code is picky and has to be more robust. we probably need to deal with ways to exclude the dvd/rom drives and other things that look like drives like network mounts, fuse, sshfs, and a zillion other things that can be mounted.

can't check the bug tracker to see if there is one for this ...

Re: Drive Temperature

Posted: Mon Jul 13, 2009 1:25 pm
by marcel
yep the drives are partition in LVM mode. I've searched the bug tracker. There is already a bug report.

Re: Drive Temperature

Posted: Mon Jul 13, 2009 1:28 pm
by bsk
Well, if theres already a bug post the link here please. If not either you or I can post one, does not matter to me.

Its a priority but not a big one ATM, but will get resolved and anyone that can help is welcome to.

Post any info on a fix here.

Re: Drive Temperature

Posted: Mon Jul 13, 2009 1:32 pm
by marcel