Don’t know why but i think that the message below I wrote didn’t went to the mailing list.

Please check below.

 

 

 

Hi bruce,

I compiled the cvs trunk with those patch's and it seams that now the SATA disks are recognized, however I have some messages that should be removed no?

My smartd.conf:

---
DEVICESCAN -m email@domain.pt -M exec /usr/share/smartmontools/smartd-runner
---

Check my syslog:

Feb 29 20:13:27 flecha smartd[29270]: smartd version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-7 Bruce Allen
Feb 29 20:13:27 flecha smartd[29270]: Home page is http://smartmontools.sourceforge.net/
Feb 29 20:13:27 flecha smartd[29270]: Opened configuration file /etc/smartd.conf
Feb 29 20:13:27 flecha smartd[29270]: Drive: DEVICESCAN, implied '-a' Directive on line 22 of file /etc/smartd.conf
Feb 29 20:13:27 flecha smartd[29270]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices

Feb 29 20:13:27 flecha smartd[29270]: Device: /dev/hde, opened
Feb 29 20:13:27 flecha smartd[29270]: Device: /dev/hde, found in smartd database.
Feb 29 20:13:27 flecha smartd[29270]: Device: /dev/hde, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:27 flecha smartd[29270]: Device: /dev/hdf, opened
Feb 29 20:13:27 flecha smartd[29270]: Device: /dev/hdf, found in smartd database.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/hdf, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/hdg, opened
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/hdg, found in smartd database.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/hdg, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sda, opened
Feb 29 20:13:28 flecha smartd[29270]: Device /dev/sda: ATA disk detected behind SAT layer
Feb 29 20:13:28 flecha smartd[29270]:   Try adding '-d sat' to the device line in the smartd.conf file.
Feb 29 20:13:28 flecha smartd[29270]:   For example: '/dev/sda -a -d sat'
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sda, opened
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sda, found in smartd database.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdb, opened
Feb 29 20:13:28 flecha smartd[29270]: Device /dev/sdb: ATA disk detected behind SAT layer
Feb 29 20:13:28 flecha smartd[29270]:   Try adding '-d sat' to the device line in the smartd.conf file.
Feb 29 20:13:28 flecha smartd[29270]:   For example: '/dev/sdb -a -d sat'
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdb, opened
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdb, found in smartd database.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdb, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdc, opened
Feb 29 20:13:28 flecha smartd[29270]: Device /dev/sdc: ATA disk detected behind SAT layer
Feb 29 20:13:28 flecha smartd[29270]:   Try adding '-d sat' to the device line in the smartd.conf file.
Feb 29 20:13:28 flecha smartd[29270]:   For example: '/dev/sdc -a -d sat'
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdc, opened
Feb 29 20:13:28 flecha smartd[29270]: Device: /dev/sdc, found in smartd database.
Feb 29 20:13:29 flecha smartd[29270]: Device: /dev/sdc, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:29 flecha smartd[29270]: Device: /dev/sdd, opened
Feb 29 20:13:29 flecha smartd[29270]: Device /dev/sdd: ATA disk detected behind SAT layer
Feb 29 20:13:29 flecha smartd[29270]:   Try adding '-d sat' to the device line in the smartd.conf file.
Feb 29 20:13:29 flecha smartd[29270]:   For example: '/dev/sdd -a -d sat'
Feb 29 20:13:29 flecha smartd[29270]: Device: /dev/sdd, opened
Feb 29 20:13:29 flecha smartd[29270]: Device: /dev/sdd, found in smartd database.
Feb 29 20:13:29 flecha smartd[29270]: Device: /dev/sdd, is SMART capable. Adding to "monitor" list.
Feb 29 20:13:29 flecha smartd[29270]: Monitoring 3 ATA and 4 SCSI devices
Feb 29 20:13:30 flecha smartd[29304]: smartd has fork()ed into background mode. New PID=29304.

 

-----Original Message-----
From: smartmontools-support-bounces@lists.sourceforge.net [mailto:smartmontools-support-bounces@lists.sourceforge.net] On Behalf Of Bruce Allen

Sent: sexta-feira, 29 de Fevereiro de 2008 1:22
To: Erwan Velu
Cc: smartmontools support list; Smartmontools Developers List; Douglas Gilbert; Christian Franke
Subject: Re: [smartmontools-support] New behaviour in trunk

Hi Erwan,

There have been a lot of requests to have DEVICESCAN automatically detect and monitor SATA drives behind the libata layer. This was (at some point) attempted but unfortunately the code fix had some unexpected side effects and so it was reverted by Doug Gilbert:

http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/smartd.cpp?r1=1.386&r2=1.387

I spent a couple of hours hacking and came up with the attached patch to CVS HEAD. WARNING -- UNTESTED! Please don't put this into your distro!!

But if you test it on a few machines and it works OK, then I'll consider checking it into CVS.

Doug: I think I have fixed this 'properly' (to the degree that this word can ever be applied to smartd!). I did this by combining the ATA and SCSI device lists into a single list, which makes it trivial to retag a 'scsi'

device as an 'ata' or 'sat' one.  Could you have a look at the diff?  I think it should now properly work on IDE, SCSI and SATA. Unfortunately this work was done between 00:00 and 02:00 so I may have done something really dumb.  But the idea is pretty simple, I think.

Christian: I am looking forward to a C++ rewrite of smartd with lots of data hiding. It will be a much simpler bit of code!

Cheers,
        Bruce

 

On Thu, 28 Feb 2008, Erwan Velu wrote:

> As many other distro, we've been switching to the current trunk.
> Two users already reports this bug
> https://qa.mandriva.com/show_bug.cgi?id=37887
> It means that some users now needs "-d sat" to make smartmontools working.
>
> I'm proving a default configuration file that do :  DEVICESCAN -a -o
> on -S on -s L/../../6/03 Since "-d sat" is needed on some devices, it
> makes the demon failing to start.
>
> Is there any possibility to make smartmontools trying "-d sat"
> automatically when the defaut behaviour fails ?
>
> Erwan,
>
>
> ----------------------------------------------------------------------
> ---------- Les opinions et prises de position emises par le signataire
> du present message lui sont propres et ne sauraient engager la
> responsabilite de la societe SEANODES.
>
> Ce message ainsi que les eventuelles pieces jointes constituent une
> correspondance privee et confidentielle a l'attention exclusive du
> destinataire designe ci-dessus. Si vous n'etes pas le destinataire du
> present message ou une personne susceptible de pouvoir le lui
> delivrer, il vous est signifie que toute divulgation, distribution ou
> copie de cette transmission est strictement interdite. Si vous avez
> recu ce message par erreur, nous vous remercions d'en informer
> l'expediteur par telephone ou de lui retourner le present message,
> puis d'effacer immediatement ce message de votre systeme.
>
>
> The views and opinions expressed by the author of this message are personal.
> SEANODES shall assume no liability, express or implied for such message.
>
> This e-mail and any attachments is a confidential correspondence
> intended only for use of the individual or entity named above. If you
> are not the intended recipient or the agent responsible for delivering
> the message to the intended recipient, you are hereby notified that
> any disclosure, distribution or copying of this communication is
> strictly prohibited. If you have received this communication in error,
> please notify the sender by phone or by replying this message, and then delete this message from your system.
>
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by: Microsoft Defy all challenges.
> Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Smartmontools-support mailing list
> Smartmontools-support@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>