Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188941 - sys-apps/smartmontools-5.36-r1 fails w/ SATA drivers on 2.6.22 kernels
Summary: sys-apps/smartmontools-5.36-r1 fails w/ SATA drivers on 2.6.22 kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.22
  Show dependency tree
 
Reported: 2007-08-15 05:12 UTC by a_tevelev
Modified: 2007-08-23 02:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,2.86 KB, text/plain)
2007-08-15 05:13 UTC, a_tevelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a_tevelev 2007-08-15 05:12:22 UTC
sys-apps/smartmontools-5.36-r1 fail on 2.6.22-hardened:

# smartctl -a -d ata /dev/sda
smartctl version 5.36 [x86_64-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     ST3300622AS
Serial Number:    4NF1JAV8
Firmware Version: 3.AAH
User Capacity:    300,069,052,416 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Aug 15 00:47:10 2007 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:
CMD=0x50
FR =0x00
NS =0x00
SC =0x00
CL =0x00
CH =0x00
SEL=0x00
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

The disk is S-ATA disk and the controller is nVidia MCP55.

The same hardware worked fine with the same version of smart tools on 2.6.21-hardened kernel:

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

=== START OF INFORMATION SECTION ===
Device Model:     ST3300622AS
Serial Number:    4NF1JAV8
Firmware Version: 3.AAH
User Capacity:    300,069,052,416 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Mon Aug  6 07:10:05 2007 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
...


This problem was apparently also reported on non-hardened 2.6.22-rc4 kernel:
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg358354.html
Comment 1 a_tevelev 2007-08-15 05:13:29 UTC
Created attachment 128141 [details]
emerge --info
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-08-15 07:30:19 UTC
I'm using 2.6.23-rc1-gd941cf5e and smartmontools 5.37 and it works fine here.
Try using '-d sat' instead of '-d ata' and see if that helps you?
Comment 3 a_tevelev 2007-08-16 03:09:41 UTC
I upgraded smrt tools to sys-apps/smartmontools-5.37. (Still 2.6.22 kernel.) But still get the same problem:

# smartctl -a -d ata /dev/sda
smartctl version 5.37 [x86_64-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.9 family
Device Model:     ST3300622AS
Serial Number:    4NF1ZDSG
Firmware Version: 3.AAH
User Capacity:    300,069,052,416 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Aug 15 23:06:50 2007 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:
CMD=0x50
FR =0x00
NS =0x00
SC =0x00
CL =0x00
CH =0x00
SEL=0x00
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

or

# smartctl -a -d sat /dev/sda
smartctl version 5.37 [x86_64-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.9 family
Device Model:     ST3300622AS
Serial Number:    4NF1ZDSG
Firmware Version: 3.AAH
User Capacity:    300,069,052,416 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Aug 15 23:06:58 2007 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Values from ATA status return descriptor are:
 00     09 0c 00 00 00 00 00 00  00 00 00 00 00 50
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
Comment 4 Carsten Böcker 2007-08-19 10:41:32 UTC
similar problem here, since upgrade to kernel 2.6.22-gentoo-r2 smartd checks failed with sata-drives but smartctl-output is ok.
google gives: http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg358354.html

what is the same problem I have:

Device: /dev/sda, not capable of SMART self-check
from smartd when it is time to check the drive but output smartctl is ok in my case
Comment 5 a_tevelev 2007-08-23 02:35:12 UTC
The bug seems to be fixed on 2.6.22-hardened-r2 and sys-apps/smartmontools-5.37.