Bug#366471: smartmontools: sata support?
In my workplace the hard drive where my root is gives the following error when i try to start smartd: hdb: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hdb: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 and i can't enable smart on it: Error SMART Enable failed: Input/output error Smartctl: SMART Enable Failed. So in that case smartd is not an option. Regards Guido Guenther wrote: Hi Balázs, thanks for your patch. But this is unfortunately not correct: On Tue, May 09, 2006 at 01:21:48AM +0200, Balázs Hámorszky wrote: i'we made a litle patch to /etc/init.d/smartmontools with it sata works well. i think. enable_smart() { echo -n "Enabling S.M.A.R.T. for:" for device in $enable_smart; do echo -n " $device" if [ $device = /dev/sd[a-z] ]; then $SMARTCTL --quietmode=errorsonly -d ata --smart=on $device || \ { echo -n "(failed)"; RET=2; } not all sd? devices are sata, they could be regular scsi disks, in this case we can't pass "-d ata". There are two possibilites here: use e.g. "sdparm -i" to make sure it's a sata device or generalize "enable_smart" to also carry information about the disk. I currently even favour dropping enable_smart altogether since it's rarely used (most people run smartd anyway and so don't need it at all) and it causes problems when used with smartd. What do you think? Cheers, -- Guido else $SMARTCTL --quietmode=errorsonly --smart=on $device || \ { echo -n "(failed)"; RET=2; } fi done echo "." } -- Package-specific info: Ouput of /usr/share/bug/smartmontools: CONFIG_IDE_TASK_IOCTL=y -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.14 Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2) Versions of packages smartmontools depends on: ii debianutils 2.16 Miscellaneous utilities specific t ii libc6 2.3.6-7GNU C Library: Shared libraries Versions of packages smartmontools recommends: ii mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent -- debconf-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#366471: smartmontools: sata support?
Hi Balázs, thanks for your patch. But this is unfortunately not correct: On Tue, May 09, 2006 at 01:21:48AM +0200, Balázs Hámorszky wrote: > i'we made a litle patch to /etc/init.d/smartmontools > with it sata works well. i think. > > enable_smart() { > echo -n "Enabling S.M.A.R.T. for:" > for device in $enable_smart; do > echo -n " $device" > if [ $device = /dev/sd[a-z] ]; then > $SMARTCTL --quietmode=errorsonly -d ata --smart=on $device || \ > { echo -n "(failed)"; RET=2; } not all sd? devices are sata, they could be regular scsi disks, in this case we can't pass "-d ata". There are two possibilites here: use e.g. "sdparm -i" to make sure it's a sata device or generalize "enable_smart" to also carry information about the disk. I currently even favour dropping enable_smart altogether since it's rarely used (most people run smartd anyway and so don't need it at all) and it causes problems when used with smartd. What do you think? Cheers, -- Guido > else > $SMARTCTL --quietmode=errorsonly --smart=on $device || \ > { echo -n "(failed)"; RET=2; } > fi > done > echo "." > } > > > -- Package-specific info: > Ouput of /usr/share/bug/smartmontools: > CONFIG_IDE_TASK_IOCTL=y > > -- System Information: > Debian Release: testing/unstable > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/bash > Kernel: Linux 2.6.16.14 > Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2) > > Versions of packages smartmontools depends on: > ii debianutils 2.16 Miscellaneous utilities specific > t > ii libc6 2.3.6-7GNU C Library: Shared libraries > > Versions of packages smartmontools recommends: > ii mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent > > -- debconf-show failed >
Bug#366471: smartmontools: sata support?
Package: smartmontools Version: 5.36-6 Severity: wishlist Tags: patch i'we made a litle patch to /etc/init.d/smartmontools with it sata works well. i think. enable_smart() { echo -n "Enabling S.M.A.R.T. for:" for device in $enable_smart; do echo -n " $device" if [ $device = /dev/sd[a-z] ]; then $SMARTCTL --quietmode=errorsonly -d ata --smart=on $device || \ { echo -n "(failed)"; RET=2; } else $SMARTCTL --quietmode=errorsonly --smart=on $device || \ { echo -n "(failed)"; RET=2; } fi done echo "." } -- Package-specific info: Ouput of /usr/share/bug/smartmontools: CONFIG_IDE_TASK_IOCTL=y -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.14 Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2) Versions of packages smartmontools depends on: ii debianutils 2.16 Miscellaneous utilities specific t ii libc6 2.3.6-7GNU C Library: Shared libraries Versions of packages smartmontools recommends: ii mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent -- debconf-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]