Bruce Allen | 1 Mar 2008 09:27
Picon
Favicon

Re: Offline Data Collection cannot be enabled in FreeBSD

Sergey,

I have poor access at the moment.  Could you check in the os_netbsd and 
os_freebsd changes?

Cheers,
 	Bruce

On Fri, 29 Feb 2008, Sergey Svishchev wrote:

> On Thu, Feb 28, 2008 at 07:23:32PM -0600, Bruce Allen wrote:
>> Cyrus,
>> 
>> OK.  Will put this into 5.38 stable release and NetBSD code.  Segey, do you 
>> approve?
>
> Uh oh.  I will have to double-check, but os_netbsd is broken in more
> ways than (this) one.  In particular, ATACMD_READREG has to be set in
> req.flags for commands that return status in device registers; this
> breaks STATUS_CHECK, AUTOSAVE and AUTO_OFFLINE commands...
>
> Preliminary fix attached.
>
>

-------------------------------------------------------------------------
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/
(Continue reading)

Bruce Allen | 1 Mar 2008 09:48
Picon
Favicon

Re: New behaviour in trunk

On Fri, 29 Feb 2008, Erwan Velu wrote:

> Bruce Allen wrote:
>> 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.
> Hum, this patches doesn't apply to the 5.38 tag.
> Is it possible to have patches for this tag ?

I think it was a patch off CVS HEAD.  I will try to test it as soon as 
possible, and fix it if needed.  Did you reproduce the problem youself?

Cheers,
 	Bruce

-------------------------------------------------------------------------
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/
(Continue reading)

Erwan | 1 Mar 2008 11:22

Re: New behaviour in trunk

Bruce Allen wrote:
> [..]
> I think it was a patch off CVS HEAD.  I will try to test it as soon as 
> possible, and fix it if needed.  Did you reproduce the problem youself?
>   
I didn't myself but I have several bug reporters ready to test a "beta" 
build of smartmontools + patch.
As they did report the failure, I'm pretty sure they'll report success 
or comments ;o)

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.

(Continue reading)

Jorge Bastos | 1 Mar 2008 11:54
Picon

FW: New behaviour in trunk

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 <at> 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 <at> lists.sourceforge.net [mailto:smartmontools-support-bounces <at> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>

-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Boniforti Flavio | 2 Mar 2008 13:29
Picon

Error starting smartmontools on Debian

Hello list,

here is my problem: when I start up my Debian SID, I get errors about
smartmontools.
Here is the relevant output when starting manually:

loop:~# /etc/init.d/smartmontools start
Starting S.M.A.R.T. daemon: smartd failed!

Here my config. files:

loop:~# cat /etc/default/smartmontools
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment

# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_smart="/dev/hda /dev/hdc /dev/sda /dev/sdb"

# uncomment to start smartd on system startup
start_smartd=yes

# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"

And the /etc/smartd.conf file just has following *uncommented*

/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
/dev/hdc -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
/dev/sda -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
/dev/sdb -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com

What is wrong? Where is some more logging info to be read?

Thanks in advance,
Flavio.

-------------------------------------------------------------------------
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/
Justin Piszcz | 2 Mar 2008 13:40

Re: Error starting smartmontools on Debian


On Sun, 2 Mar 2008, Boniforti Flavio wrote:

> Hello list,
>
> here is my problem: when I start up my Debian SID, I get errors about
> smartmontools.
> Here is the relevant output when starting manually:
>
> loop:~# /etc/init.d/smartmontools start
> Starting S.M.A.R.T. daemon: smartd failed!
>
> Here my config. files:
>
> loop:~# cat /etc/default/smartmontools
> # Defaults for smartmontools initscript (/etc/init.d/smartmontools)
> # This is a POSIX shell fragment
>
> # List of devices you want to explicitly enable S.M.A.R.T. for
> # Not needed (and not recommended) if the device is monitored by smartd
> #enable_smart="/dev/hda /dev/hdc /dev/sda /dev/sdb"
>
> # uncomment to start smartd on system startup
> start_smartd=yes
>
> # uncomment to pass additional options to smartd on startup
> #smartd_opts="--interval=1800"
>
> And the /etc/smartd.conf file just has following *uncommented*
>
> /dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
> /dev/hdc -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
> /dev/sda -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
> /dev/sdb -a -o on -S on -s (S/../.././02|L/../../6/03) -m boniforti.f <at> gmail.com
>
> What is wrong? Where is some more logging info to be read?
>
> Thanks in advance,
> Flavio.
>
> -------------------------------------------------------------------------
> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>

tail -n 50 /var/log/syslog /var/log/daemon.log

Look for the error in there, what does it say?

-------------------------------------------------------------------------
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/
Boniforti Flavio | 2 Mar 2008 19:15
Picon

Re: Error starting smartmontools on Debian

2008/3/2, Justin Piszcz <jpiszcz <at> lucidpixels.com>:

>  tail -n 50 /var/log/syslog /var/log/daemon.log
>
>  Look for the error in there, what does it say?

Here it was:

Mar  2 18:59:24 loop smartd[3275]: Device /dev/sda: ATA disk detected
behind SAT layer
Mar  2 18:59:24 loop smartd[3275]:   Try adding '-d sat' to the device
line in the smartd.conf file.
Mar  2 18:59:24 loop smartd[3275]:   For example: '/dev/sda -a -d sat'

I just added this "-d sat" and it doesn't tell me anymore errors ;-)

Thanks!!!

-------------------------------------------------------------------------
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/
Bruce Allen | 3 Mar 2008 14:31
Picon
Favicon

Re: FW: New behaviour in trunk

Hi Jorge,

Thanks for the positive report.  I'd feel much better if there was someone 
who could test my patch on a system containing IDE disks (/dev/hd*) SATA 
disks (through libata as /dev/sd*), and SCSI disks (/dev/sd*).

I think I can easily remove the un-necessary warnings.  I'll have a look.

Cheers,
 	Bruce

On Sat, 1 Mar 2008, Jorge Bastos wrote:

> 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 <at> 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 <at> lists.sourceforge.net
> [mailto:smartmontools-support-bounces <at> 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.3
> 86
> <http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/smartd.cpp?r1=1.
> 386&r2=1.387> &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 <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>>
>
>

-------------------------------------------------------------------------
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/
Jorge Bastos | 3 Mar 2008 14:37
Picon

Re: FW: New behaviour in trunk

Hum, I can add a SCSI controller and do that test.
Just give me 1/2 days and I'll do it and give you feedback ok?

-----Original Message-----
From: Bruce Allen [mailto:ballen <at> gravity.phys.uwm.edu] 
Sent: segunda-feira, 3 de Março de 2008 13:32
To: Jorge Bastos
Cc: smartmontools-support <at> lists.sourceforge.net
Subject: Re: [smartmontools-support] FW: New behaviour in trunk

Hi Jorge,

Thanks for the positive report.  I'd feel much better if there was someone 
who could test my patch on a system containing IDE disks (/dev/hd*) SATA 
disks (through libata as /dev/sd*), and SCSI disks (/dev/sd*).

I think I can easily remove the un-necessary warnings.  I'll have a look.

Cheers,
 	Bruce

On Sat, 1 Mar 2008, Jorge Bastos wrote:

> 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 <at> 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 <at> lists.sourceforge.net
> [mailto:smartmontools-support-bounces <at> 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.3
> 86
>
<http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/smartd.cpp?r1=1.
> 386&r2=1.387> &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 <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>>
>
>

-------------------------------------------------------------------------
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/
Bruce Allen | 3 Mar 2008 14:42
Picon
Favicon

Re: New behaviour in trunk

Hi Erwan,

>> I think it was a patch off CVS HEAD.  I will try to test it as soon as
>> possible, and fix it if needed.  Did you reproduce the problem youself?

> I didn't myself but I have several bug reporters ready to test a "beta" 
> build of smartmontools + patch. As they did report the failure, I'm 
> pretty sure they'll report success or comments ;o)

I can not reproduce the failure of the patches to apply cleanly to the 
smartmontools CVS. If I understand correctly, the users were reporting 
failure to patch the files properly.  I just had a user report that they 
could do the patching, and also I just did this successfully:

cvs co sm5
cd sm5
patch < patch1
patch < patch2

If the patches did not apply cleanly, could you please try to reproduce 
this and send me the error transcript?  It would also be helpful to have 
the output of the command: 'ident smartd.cpp smartd.h'.  Or get these from 
the users please!

Cheers,
 	Bruce

>
> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>

-------------------------------------------------------------------------
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/

Gmane