Marcus Sorensen | 9 Feb 00:05
Picon

Re: disk APM

cool, will do

On Wed, Feb 8, 2012 at 2:25 PM, Christian Franke
<Christian.Franke <at> t-online.de> wrote:
> Christian Franke wrote:
>>
>> Marcus Sorensen wrote:
>>>
>>> Ok, here's my patch. It applies against the stable 5.42 from
>>> sourceforge (as that's what we want to roll out).
>>
>>
>> Thanks
>>
>>
>>> One thing I noticed while changing it over to -l was that scterc is
>>> using it's own function 'ataGetSetSCTErrorRecoveryControltime' to set
>>> SCT values, whereas I just added the necessary commands to allow me to
>>> use the existing 'smartcommandhandler'. I'm not sure if one method is
>>> necessarily preferred over the other, but I imagine someone will want
>>> to be consistent, and I'm not really excited to change what I've
>>> already got.
>>
>>
>> smartcommandhandler() is actually legacy code from the old interface which
>> only supports ATA commands from smart_command_set. The enum is still used by
>> the os_*.cpp parts which are not migrated to new interface. New code should
>> directly call dev->ata_pass_through(.).
>>
>> I will change this and commit your patch in a week or so.
(Continue reading)

Daniel Lenski | 9 Feb 07:09
Picon
Gravatar

working USB bridge chip report (USB id 13fd:1ef0, -d sat)

Hi all,
I have a new USB bridge to report: ID 13fd:1e40. Smartctl reports that it is an unknown USB bridge but -d sat does the trick perfectly. I have tested it with several different 3.5" HDDs.

This bridge chip is made by Initio Corporation according to lsusb, and is found in my NexStar CX USB enclosure.

Thanks for this great software,
Dan

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Chris Maltby | 7 Feb 00:49
X-Face
Picon
Gravatar

Problem enabling SMART on a drive in a CCISS RAID.

I have a system with an HP CCISS RAID with 6x36GB drives (an old one)
which has a drive that I can't enable SMART on. All the others are fine.

# smartctl -i -q noserial -d cciss,3 /dev/cciss/c0d0
smartctl 5.42 2011-10-20 r3458 (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               COMPAQ
Product:              BD03685A24
Revision:             HPB2
User Capacity:        36,419,584,000 bytes [36.4 GB]
Logical block size:   512 bytes
Device type:          disk
Transport protocol:   Parallel SCSI (SPI-4)
Local Time is:        Tue Feb  7 10:42:45 2012 EST
Device supports SMART and is Disabled
Temperature Warning Enabled

Attempting to enable SMART produces this:

# smartctl -s on -d cciss,3 /dev/cciss/c0d0

Informational Exceptions (SMART) disabled
Temperature warning enabled

I can still use smartctl to perform offline tests etc, but because SMART
is off, smartd won't monitor it or perform automatic tests.

Any clues?

Chris

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Wainer Vandelli | 4 Feb 13:58
Picon
Picon

smartctl fails on sat pass-through for version >=5.39.1


Dear smartmontools developers,

  we are experiencing a problem in accessing SMART information of SATA
disks attached to an Adaptec 5805 on Linux after the update to
smartmontools-5.41. With the previous version, smartmontools-5.39, we
had full access to SMART information and test.

On smartmontools-5.41, the following command, that is normally
successful with smartmontools-5.39, fails with "Operation not permitted"

[root <at> pc-tdq-sfo-12 ~]# smartctl  /dev/sg1 -d sat -a
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.18-274.12.1.el5] (local
build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Smartctl: Device Read Identity Failed: Operation not permitted

A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.

After some bisecting, we realized the problem we experience was
introduced in release 5.39.1, by this change:

http://sourceforge.net/apps/trac/smartmontools/changeset/3052

My understanding is that ioctls on the scsi devices fails due to the
device being opened with the O_RDONLY flag:

[root <at> pc-tdq-sfo-12 ~]# strace smartctl  /dev/sg1 -d sat -a 2>&1 |grep
open |grep sg1
open("/dev/sg1", O_RDONLY|O_NONBLOCK)   = 3
[root <at> pc-tdq-sfo-12 ~]# smartctl  /dev/sg1 -d sat -a -r ioctl
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.18-274.12.1.el5] (local
build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

REPORT-IOCTL: Device=/dev/sg1 Command=IDENTIFY DEVICE
 Input:   FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
sat_device::ata_pass_through: scsi_pass_through() failed, errno=1
[Operation not permitted]
REPORT-IOCTL: Device=/dev/sg1 Command=IDENTIFY DEVICE returned -1
errno=1 [Operation not permitted]

REPORT-IOCTL: Device=/dev/sg1 Command=IDENTIFY PACKET DEVICE
 Input:   FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xa1 IN
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 a1 00 ]
sat_device::ata_pass_through: scsi_pass_through() failed, errno=1
[Operation not permitted]
REPORT-IOCTL: Device=/dev/sg1 Command=IDENTIFY PACKET DEVICE returned -1
errno=1 [Operation not permitted]
Smartctl: Device Read Identity Failed: Operation not permitted

A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.

We verified that simply replacing the O_RDONLY flag with O_RDRW,
smartmontools-5.41 becomes fully functional for us.

Now, I don't have enough experience with SCSI and SAT to easily
understand the underlying source of the observed behaviour. I can
imagine it could depend on the driver/firmware version of the RAID card,
which in fact are not the most up-to-date ones. Or perhaps I'm just
missing some trivial option ...

Do you have any hint?

Thanks a lot in advance.
Cheers
        Wainer

Attachment (smime.p7s): application/pkcs7-signature, 4400 bytes
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Lee Duncan | 28 Jan 02:48
Picon
Gravatar

How to disable smartd on root iscsi (or fcoe) disks?

Hi:

I am trying to fix a problem where a root iscsi remote disc boot is being disrupted by smartd.

The problem appears to be that smartd sends down multiple SCSI Inquiry requests with the wrong StatSN. This trigger the iSCSI target to reject the PDU, which trigger session recovery, i.e. it disconnects.

The default smartd.conf seems to scarf all discs. Is there or could there be an option to skip iSCSI (or otherwise remote) discs?

[I am not on the email list, so please reply to me directly.]

Thank you.

-- 

The Lee-Man

            "Blinded by the science." -- Thomas Dolby


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Patrick Zuther | 1 Feb 13:44
Picon
Picon

Bad block HOWTO for smartmontools

Hello,

thanks for your Bad block Howto for smartmontools under:

http://smartmontools.sourceforge.net/badblockhowto.html

It helped me understand the problems I had.

Since I use a software RAID5, your offered solutions did not quite work out, 
but I finally found a very elegant solution for Softraid:

echo repair > /sys/block/md1/md/sync_action

I am not sure, if this howto is still maintained. If yes, I think the mention 
of the above command could be of help for people with Softraid.

Best Regards

Patrick Zuther

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Lee Duncan | 28 Jan 07:43
Gravatar

smartd and iSCSI root volume disruption

Hi:

I am trying to diagnose a problem on SUSE. It appears that booting from
an iSCSI volume is either failing or taking a really long time (one
assume because of error recovery).

It appears that the smartmon daemon is sending multiple SCSI Inquiry
commands with the wrong StatSN. This causes my target (from
iscsitarget.sourceforge.net) to reject the INQUIRY PDU, which triggers
session recovery (i.e. disconnect, reconnect, and try again).

My first question is why are these INQUIRY commands being sent.

My second question is why is smartd trying to monitory an iSCSI target?
The default configuration file seems to scarf up all discs. Is there an
option to tell it to skip virtualized or remote targets? It seems to me
smartd has little value in the case of a remote iSCSI target.

Thank you.
--

-- 
Lee Duncan

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Artem Bokhan | 1 Feb 13:10
Picon
Favicon

ssd's self-test error log

Hello.

May it is better to output xselftest with -a option when selftest is not 
supported (like for all sandforce devices)?

#smartctl /dev/sg0 -d sat+megaraid,26 -l selftest
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.32-33-server] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Self-test Log not supported

# smartctl /dev/sg0 -d sat+megaraid,26 -l xselftest
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.32-33-server] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Extended offline    Completed without error       10%      2132         -

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
smallpox | 28 Jan 19:06
Picon
Gravatar

Smart Array P400i in Embedded Slot unsupported?

pretty much the same info as this:

http://sourceforge.net/mailarchive/message.php?msg_id=21681580

I also checked out CVS as of 1/28/2012. tried prior versions also.

hp utility output, not sure what else is needed, let me know, this thing is like a full diag output:
Configured Logical Drives    3  (0x03)
Configuration Signature    0xa000a5c7
RAM Firmware Revision    4.12
ROM Firmware Revision    4.12
Hardware Revision    0x03
Boot Block Revision    0.02
Drive Present Map    0x00000000
External Drive Map    0x00000000
Board ID    0x3235103c
Swapped Cable Flags    0x00
Non Disk Map    0x00000000
Bad Host RAM Addr    0x00
CPU Revision    0x93
PDPI Revision    0x00
EPIC Revision    0x00
WCXC Revision    0x00
Marketing Revision    D

06:00.0 RAID bus controller: Hewlett-Packard Company Smart Array Controller (rev 03)
        Subsystem: Hewlett-Packard Company P400i SAS Controller
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fde00000 (64-bit, non-prefetchable) [size=1M]
        I/O ports at 4000 [size=256]
        Memory at fddf0000 (64-bit, non-prefetchable) [size=4K]
        [virtual] Expansion ROM at d0000000 [disabled] [size=256K]
        Capabilities: [b0] Express Endpoint, MSI 00
        Capabilities: [d4] MSI-X: Enable+ Count=4 Masked-
        Capabilities: [e0] Power Management version 2
        Capabilities: [ec] Vital Product Data
        Capabilities: [100] Power Budgeting <?>
        Kernel driver in use: cciss
        Kernel modules: hpsa, cciss

root <at> test:~/smartmontools/trunk/smartmontools# ./smartctl -d cciss,0 -i /dev/cciss/c0d0
smartctl 5.43 2012-01-26 r3502 [x86_64-linux-2.6.37.6] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

User Capacity:        300,000,000,000 bytes [300 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=9 offset=27 bd_len=23
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
root <at> test:~/smartmontools/trunk/smartmontools# ./smartctl -d cciss,0 -i /dev/cciss/c0d0 -T permissive
smartctl 5.43 2012-01-26 r3502 [x86_64-linux-2.6.37.6] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

User Capacity:        300,000,000,000 bytes [300 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=9 offset=27 bd_len=23
>> Terminate command early due to bad response to IEC mode page
root <at> test:~/smartmontools/trunk/smartmontools#

root <at> test:~/smartmontools-5.42# ./smartctl -d cciss,0 -i /dev/cciss/c0d0 -T permissive
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.37.6] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

User Capacity:        300,000,000,000 bytes [300 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=9 offset=27 bd_len=23
>> Terminate command early due to bad response to IEC mode page
root <at> test:~/smartmontools-5.42#

root <at> test:~# smartctl -d cciss,0 -i /dev/cciss/c0d0 -T permissive
smartctl 5.40 2010-10-16 r3189 [x86_64-slackware-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

scsiModePageOffset: response length too short, resp_len=9 offset=27 bd_len=23
>> Terminate command early due to bad response to IEC mode page
root <at> test:~#

by the way, it  doesn't matter how far i go in cciss,0-5, it does the same thing, there is nothing beyond 6.

Thank you.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Artem Bokhan | 27 Jan 17:14
Picon
Favicon

problems with vertex SSD

Hello.

May somebody with good English help me to explain these guys that they are
wrong?

http://www.ocztechnologyforum.com/forum/showthread.php?98662-vertex-3-MI-does-not-store-worst-data&p=709972 
<http://www.ocztechnologyforum.com/forum/showthread.php?98662-vertex-3-MI-does-not-store-worst-data&p=709972>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Franc Zabkar | 26 Jan 10:19
Favicon
Gravatar

Re: WD Temperature Attributes

At 07:57 PM 26/01/12, you wrote:

>Message: 3
>Date: Sat, 21 Jan 2012 08:39:20 +0200
>From: "Ivan Lezhnjov Jr." <ivan.lezhnjov.jr <at> gmail.com>
>Subject: Re: [smartmontools-support] WD Temperature Attributes
>To: smartmontools-support <at> lists.sourceforge.net
>Message-ID:
>         <CA+eHkGN1Yk=x7764fpzT5Gwo3+v9Nc1j7o1nzn61pC8sLN_=2w <at> mail.gmail.com>
>Content-Type: text/plain; charset=ISO-8859-1
>
>What is normalized value useful for? What does it essentially tell a user?
>
>Oh, and where does 143 come from?

The normalised value is a "health" score. In many cases a normalised 
value of 100 indicates perfect health for a particular attribute. In 
your case it appears that WD has chosen 43C as the acceptable norm, 
and assigned it a health score of 100. If the drive is cooler than 
43C, then it is healthier (greater than 100), whereas if it is hotter 
than 43C, then it is less healthy (less than 100).

-Franc 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

Gmane