2005-12-24 23:32:37

by Justin Piszcz

[permalink] [raw]
Subject: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

A very nice addition / release to the kernel, S.M.A.R.T. working through
the ATA passthru.

smartmontools is going to have to be updated, but I can finally see the
temperature of my SATA drives!! Nice work Jeff!

Dec 24 18:29:20 p34 smartd[2707]: Opened configuration file
/etc/smartd.conf
Dec 24 18:29:20 p34 smartd[2707]: Configuration file /etc/smartd.conf
parsed.
Dec 24 18:29:20 p34 smartd[2707]: Device: /dev/sda, opened
Dec 24 18:29:20 p34 smartd[2707]: Device /dev/sda: SATA disks accessed via
libata are not currently supported by smartmontools. By the time you read
this, support may have been added in recent kernels. Try a '-d ata' device
typeargument.
Dec 24 18:29:20 p34 smartd[2707]: Unable to register SCSI device /dev/sda
at line 101 of file /etc/smartd.conf
Dec 24 18:29:20 p34 smartd[2707]: Unable to register device /dev/sda (no
Directive -d removable). Exiting.

p34:/var/log# hddtemp /dev/sda
/dev/sda: WDC WD740GD-00FLC0: 38C

p34:/var/log# hddtemp /dev/sdb
/dev/sdb: Maxtor 6B250S0: 40C

Justin.


2005-12-24 23:43:39

by Mark Lord

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

>smartmontools is going to have to be updated

What for?

Use "smartctl -d ata /dev/sda"

-ml

2005-12-25 00:18:20

by Justin Piszcz

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

My mistake,

Was adding the option in the wrong place.

In the smartd.conf file, add the -d ata option here:

/dev/sda -d ata -H -l error -l selftest -t -I 194 -s (S/../.././02)
/dev/sdb -d ata -H -l error -l selftest -t -I 194 -s (S/../.././02)
/dev/hde -H -l error -l selftest -t -I 194 -s (S/../.././02)

Works now.

Thanks,

Justin.

On Sat, 24 Dec 2005, Mark Lord wrote:

>> smartmontools is going to have to be updated
>
> What for?
>
> Use "smartctl -d ata /dev/sda"
>
> -ml
>

2005-12-25 14:38:14

by Ed Tomlinson

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

On Saturday 24 December 2005 18:43, Mark Lord wrote:
> >smartmontools is going to have to be updated
>
> What for?
>
> Use "smartctl -d ata /dev/sda"

Its not perfect:

grover:/poola/home/ed# smartctl -d ata /dev/sda
smartctl version 5.34 [x86_64-unknown-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

smartctl has problems but hddtemp works

grover:/poola/home/ed# hddtemp /dev/hda
/dev/hda: Maxtor 6Y160P0: 25?C
grover:/poola/home/ed# hddtemp /dev/sda
/dev/sda: Maxtor 6L250S0: 29?C

Ed Tomlinson


2005-12-25 14:46:52

by Jeff Garzik

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

Ed Tomlinson wrote:
> On Saturday 24 December 2005 18:43, Mark Lord wrote:
>
>> >smartmontools is going to have to be updated
>>
>>What for?
>>
>>Use "smartctl -d ata /dev/sda"
>
>
> Its not perfect:
>
> grover:/poola/home/ed# smartctl -d ata /dev/sda
> smartctl version 5.34 [x86_64-unknown-linux-gnu] Copyright (C) 2002-5 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> smartctl has problems but hddtemp works

What are the problems? Your output gives us no clue...

Jeff



2005-12-25 15:44:33

by Grant Coady

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

On Sun, 25 Dec 2005 09:46:35 -0500, Jeff Garzik <[email protected]> wrote:

>Ed Tomlinson wrote:
>> On Saturday 24 December 2005 18:43, Mark Lord wrote:
>>
>>> >smartmontools is going to have to be updated
>>>
>>>What for?
>>>
>>>Use "smartctl -d ata /dev/sda"
>>
>>
>> Its not perfect:
>>
>> grover:/poola/home/ed# smartctl -d ata /dev/sda
>> smartctl version 5.34 [x86_64-unknown-linux-gnu] Copyright (C) 2002-5 Bruce Allen
>> Home page is http://smartmontools.sourceforge.net/
>>
>> smartctl has problems but hddtemp works
>
>What are the problems? Your output gives us no clue...

That _is_ the clue, no output ;)

Grant.

2005-12-25 15:56:23

by Jeff Garzik

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

Grant Coady wrote:
> On Sun, 25 Dec 2005 09:46:35 -0500, Jeff Garzik <[email protected]> wrote:
>
>
>>Ed Tomlinson wrote:
>>
>>>On Saturday 24 December 2005 18:43, Mark Lord wrote:
>>>
>>>
>>>>>smartmontools is going to have to be updated
>>>>
>>>>What for?
>>>>
>>>>Use "smartctl -d ata /dev/sda"
>>>
>>>
>>>Its not perfect:
>>>
>>>grover:/poola/home/ed# smartctl -d ata /dev/sda
>>>smartctl version 5.34 [x86_64-unknown-linux-gnu] Copyright (C) 2002-5 Bruce Allen
>>>Home page is http://smartmontools.sourceforge.net/
>>>
>>>smartctl has problems but hddtemp works
>>
>>What are the problems? Your output gives us no clue...
>
>
> That _is_ the clue, no output ;)

Perhaps if the poster provided a useful command line to smartctl, it
would do useful work.

If you don't provide a command to smartctl, it won't do much of anything:

> [jgarzik@sata ~]$ sudo smartctl /dev/hda1
> smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/

> [jgarzik@sata ~]$ sudo smartctl -d ata /dev/sda1
> smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/

Regards,

Jeff


2005-12-25 15:58:19

by Justin Piszcz

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

Yes, it was my error..


On Sun, 25 Dec 2005, Jeff Garzik wrote:

> Grant Coady wrote:
>> On Sun, 25 Dec 2005 09:46:35 -0500, Jeff Garzik <[email protected]> wrote:
>>
>>
>>> Ed Tomlinson wrote:
>>>
>>>> On Saturday 24 December 2005 18:43, Mark Lord wrote:
>>>>
>>>>
>>>>>> smartmontools is going to have to be updated
>>>>>
>>>>> What for?
>>>>>
>>>>> Use "smartctl -d ata /dev/sda"
>>>>
>>>>
>>>> Its not perfect:
>>>>
>>>> grover:/poola/home/ed# smartctl -d ata /dev/sda
>>>> smartctl version 5.34 [x86_64-unknown-linux-gnu] Copyright (C) 2002-5
>>>> Bruce Allen
>>>> Home page is http://smartmontools.sourceforge.net/
>>>>
>>>> smartctl has problems but hddtemp works
>>>
>>> What are the problems? Your output gives us no clue...
>>
>>
>> That _is_ the clue, no output ;)
>
> Perhaps if the poster provided a useful command line to smartctl, it would do
> useful work.
>
> If you don't provide a command to smartctl, it won't do much of anything:
>
>> [jgarzik@sata ~]$ sudo smartctl /dev/hda1
>> smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce
>> Allen
>> Home page is http://smartmontools.sourceforge.net/
>
>> [jgarzik@sata ~]$ sudo smartctl -d ata /dev/sda1
>> smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce
>> Allen
>> Home page is http://smartmontools.sourceforge.net/
>
> Regards,
>
> Jeff
>
>

2005-12-26 12:43:52

by Ed Tomlinson

[permalink] [raw]
Subject: Re: 2.6.15-rc6 - Success with ICH5/SATA + S.M.A.R.T.

On Sunday 25 December 2005 10:56, Jeff Garzik wrote:
> Grant Coady wrote:
> > On Sun, 25 Dec 2005 09:46:35 -0500, Jeff Garzik <[email protected]> wrote:
> >
> >
> >>Ed Tomlinson wrote:
> >>
> >>>On Saturday 24 December 2005 18:43, Mark Lord wrote:
> >>>
> >>>
> >>>>>smartmontools is going to have to be updated
> >>>>
> >>>>What for?
> >>>>
> >>>>Use "smartctl -d ata /dev/sda"
> >>>
> >>>
> >>>Its not perfect:
> >>>
> >>>grover:/poola/home/ed# smartctl -d ata /dev/sda
> >>>smartctl version 5.34 [x86_64-unknown-linux-gnu] Copyright (C) 2002-5 Bruce Allen
> >>>Home page is http://smartmontools.sourceforge.net/
> >>>
> >>>smartctl has problems but hddtemp works
> >>
> >>What are the problems? Your output gives us no clue...
> >
> >
> > That _is_ the clue, no output ;)
>
> Perhaps if the poster provided a useful command line to smartctl, it
> would do useful work.
>
> If you don't provide a command to smartctl, it won't do much of anything:
>
> > [jgarzik@sata ~]$ sudo smartctl /dev/hda1
> > smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
> > Home page is http://smartmontools.sourceforge.net/
>
> > [jgarzik@sata ~]$ sudo smartctl -d ata /dev/sda1
> > smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
> > Home page is http://smartmontools.sourceforge.net/

Jeff,

You are quite right. I rather blindly followed the example from Grant which just specified
the device type. Adding a -a gets lots of info.

Thanks,
Ed Tomlinson