Package: smartmontools Version: 5.36-6 Severity: wishlist
Hello, I'm trying to use new Smartmontools 5.36 with CCISS patch to monitor a pair of SCSI disks in a RAID1 smartarray. I've tried smartctl command which seems to work : # smartctl -a -d cciss,0 /dev/cciss/c0d0 or # smartctl -a -d cciss,1 /dev/cciss/c0d0 Then, I've tried to run smartd daemon to monitor them and periodically run short / long test on them, with this kind of line in smartd.conf : ... /dev/cciss/c0d0 -d cciss,0 -a -o on -S on -s (S/../.././02|L/../../6/03) \ -m <my e-mail> \ -M test \ -M exec /etc/smartmontools/smartd-runner /dev/cciss/c0d0 -d cciss,1 -a -o on -S on -s (S/../.././04|L/../../6/05) \ -m <my e-mail> \ -M test \ -M exec /etc/smartmontools/smartd-runner ... But it doesn't work as expected : * first, in my scripts called by /etc/smartmontools/smartd-runner, I want to run smartctl to add the full SMART log to the e-mail sent in case of failure. I do this with following code : ... smartctl -a -l selftest -l error -d "$SMARTD_DEVICETYPE" "$SMARTD_DEVICE" ... but it fails as these environment variables aren't correctly set : I got : smartctl -a -l selftest -l error -d scsi '/dev/cciss/c0d0 [cciss_disk_01]' * second, I've noticed that scheduled short tests (at 2h and 4h A.M.) are all done on the second disk ! * third, as a side effect, an other array supervisor, cpqarrayd (which only monitor messages from the array), tells me exactly one hour after the first short test (at 3h A.M.) : 03:25:17 cpqarrayd: CCISS controler /dev/cciss/c0d0 logical volume 0 changed state to Logical drive is ready for recovery operation. 03:25:17 cpqarrayd: CCISS controler /dev/cciss/c0d0 logical volume 0 changed state to Logical drive is is currently recovering. 03:25:17 cpqarrayd: CCISS controler /dev/cciss/c0d0 logical volume 0 changed state to Logical drive is ok. with regards, Frédéric Boiteux. -- Package-specific info: Ouput of /usr/share/bug/smartmontools: # CONFIG_IDE_TASK_IOCTL is not set -- System Information: Debian Release: 3.1 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.4.27-dev Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) -- no debconf information