Bug#386248: fails to start with IDE CD drives scanned before SATA disks

2006-09-08 Thread Bruce Allen
OK, I see the problem.  Smartd was set up with the logic that if a user 
put '-d ata' then only ATA devices would be scanned, NOT including 
traditional SATA names.


For now, the only workaround I can suggest is to NOT use DEVICESCAN.  Just 
explicitly list each device, one device per line.


Bruce

On Fri, 8 Sep 2006, martin f krafft wrote:


also sprach Bruce Allen [EMAIL PROTECTED] [2006.09.08.1215 +0200]:

I'm not sure why smartd did not try to scan SCSI devices.  Could you
remove the '-d ata' to confirm that without this, it WILL scan SCSI
devices?   (This won't fix the problem but at least helps me to isolate
it.)


Without -d ata, SATA/SCSI devices are scanned.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386248: fails to start with IDE CD drives scanned before SATA disks

2006-09-08 Thread martin f krafft
also sprach Bruce Allen [EMAIL PROTECTED] [2006.09.08.1215 +0200]:
 I'm not sure why smartd did not try to scan SCSI devices.  Could you 
 remove the '-d ata' to confirm that without this, it WILL scan SCSI 
 devices?   (This won't fix the problem but at least helps me to isolate 
 it.)

Without -d ata, SATA/SCSI devices are scanned.

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems


signature.asc
Description: Digital signature (GPG/PGP)


Bug#386248: fails to start with IDE CD drives scanned before SATA disks

2006-09-08 Thread Bruce Allen

On Wed, 6 Sep 2006, Guido Guenther wrote:


On Wed, Sep 06, 2006 at 11:42:54AM +0200, martin f krafft wrote:

Package: smartmontools
Version: 5.36-6
Severity: normal

I have a system with hda/b IDE CD-ROM drives and /dev/sda-g as SATA
drives. I use

  DEVICESCAN -d ata -a -s (S/../.././02|L/../../7/04) -o on


DEVICESCAN has several issues and should be reimplemented using sysfs
(any takers?). I personally specify the drives explicitly in
/etc/smartd.conf. Nevertheless the bug is a valid one. Bruce, do you
have any suggestions?


I'm not sure why smartd did not try to scan SCSI devices.  Could you 
remove the '-d ata' to confirm that without this, it WILL scan SCSI 
devices?   (This won't fix the problem but at least helps me to isolate 
it.)


Cheers,
Bruce


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386248: fails to start with IDE CD drives scanned before SATA disks

2006-09-08 Thread Bruce Allen

DEVICESCAN has several issues and should be reimplemented using sysfs
(any takers?). I personally specify the drives explicitly in
/etc/smartd.conf. Nevertheless the bug is a valid one. Bruce, do you
have any suggestions?


The fix for this problem is not 'clean'.  It's going to require a 
reworking of the entire DEVICESCAN method. This is something that should 
become much simpler to do after Christian is done implementing a better 
device abstraction.


Cheers,
Bruce


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386248: fails to start with IDE CD drives scanned before SATA disks

2006-09-06 Thread martin f krafft
Package: smartmontools
Version: 5.36-6
Severity: normal

I have a system with hda/b IDE CD-ROM drives and /dev/sda-g as SATA
drives. I use

  DEVICESCAN -d ata -a -s (S/../.././02|L/../../7/04) -o on

When I start smartd, this fails:

smartd version 5.36 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

  Opened configuration file /etc/smartd.conf
  Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning 
devices
  Device: /dev/hda, opened
  Device: /dev/hda, packet devices [this device CD/DVD] not SMART capable
  Unable to register ATA device /dev/hda at line 108 of file /etc/smartd.conf
  Device: /dev/hdb, opened
  Device: /dev/hdb, packet devices [this device CD/DVD] not SMART capable
  Unable to register ATA device /dev/hdb at line 108 of file /etc/smartd.conf
  Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...

Undoubtedly, it should scan the SATA drives too.

-- Package-specific info:
Ouput of /usr/share/bug/smartmontools:
# CONFIG_IDE_TASK_IOCTL is not set

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages smartmontools depends on:
ii  debianutils 2.17 Miscellaneous utilities specific t
ii  libc6   2.3.999.2-12 GNU C Library: Shared libraries

Versions of packages smartmontools recommends:
ii  mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent

-- no debconf information

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems


signature.asc
Description: Digital signature (GPG/PGP)


Bug#386248: fails to start with IDE CD drives scanned before SATA disks

2006-09-06 Thread Guido Guenther
On Wed, Sep 06, 2006 at 11:42:54AM +0200, martin f krafft wrote:
 Package: smartmontools
 Version: 5.36-6
 Severity: normal
 
 I have a system with hda/b IDE CD-ROM drives and /dev/sda-g as SATA
 drives. I use
 
   DEVICESCAN -d ata -a -s (S/../.././02|L/../../7/04) -o on
 
DEVICESCAN has several issues and should be reimplemented using sysfs
(any takers?). I personally specify the drives explicitly in
/etc/smartd.conf. Nevertheless the bug is a valid one. Bruce, do you
have any suggestions?
 -- Guido


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]