John Theodore | 18 Sep 04:55 2014
Picon

smartd.conf not working

This command below works and scans 1 disk:
  sudo smartctl -l ssd -d megaraid,1 -t short /dev/sdb

I want to setup my /etc/smartd.conf so it runs a short test every night, and a long test once a week. The one line in my /etc/smartd.conf is below: 

DEVICESCAN -S on -o on -a -I 194 -s (S/../.././02|L/../../6/03)

I don't believe this works. What is wrong with this setup of my smartd.conf? What is the right thing I want?
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
srv4adm | 10 Sep 15:05 2014
Picon

SMART Self-test: Reserved (0x80)

Hello 
Could you explain me what does it mean:

SMART Self-test log structure revision number 0
Warning: ATA Specification requires self-test log structure revision number = 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Reserved (0x80)     Aborted by host               60%     42798         -
# 2  Short offline       Completed without error       00%     42787         -
# 3  Short offline       Aborted by host               00%     42763         -

I'm interested about #1 test. what does it mean: Reserved (0x80) ? 
The system was under heavy load, so i had to abort the test.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Olivier Calzi | 5 Sep 09:21 2014

Return Value 4 Perc/LSI

Hello Girls/Guys,

I'm facing a situation that i'm not able to understand the mechanisme of the return value of a smartcl command.

In a munin script to graph the state of the disk i have the return value of 4.
Same thing when i launch the command line by hand and when i made a "echo $?" i have the return value of 4.

Could you tell me where i'm wrong to my lead to understanding?

Thanks

------------------------------------------------
 Olivier Calzi

 Dir: +32 2 588 31 49 | Mobile: +32 498 817 703
 email|xmpp: ocalzi <at> voxbone.com
------------------------------------------------
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Kyle Sebion | 26 Aug 16:10 2014

drivedb.h(978): Error in regular expression: Empty '|' subexpression

A Windows 7 Professional 64-bit, Windows Server 2012, and Windows Server 2012 R2 are getting the following error with a drivedb.h update near 8/23/2014:
  drivedb.h(978): Error in regular expression: Empty '|' subexpression

The error seems to come from the change at: http://www.smartmontools.org/changeset/3988
The change was done during: http://www.smartmontools.org/ticket/329

As a workaround, I changed the string on line 979 in drivedb.h from "SanDisk SD6SB[12]M[0-9]*G(1022I|)|" to "SanDisk SD6SB[12]M[0-9]*G(1022I)?|" on the computers I mentioned above.

--
Kyle Sebion
Developer
Digital Forces Corp

Contact Information
Support 24/7/364: 630-978-2000 X 1. Quickest response. Rings multiple people.
Direct: 630-299-4971. Follows me.
Office 7 am-5 pm: 630-978-2000 x 804. One business day.
Email: help <at> digitalforces.com. Fastest email response one business day.
Texting: 630-447-0804.  Texting is not dependable.
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Terry Kennedy | 26 Aug 04:05 2014

Smartmontools 6.3 defect list query increments error count on Pliant SSD

  Smartmontools 6.3 (installed from ports) on FreeBSD 8-STABLE amd64. The
system is a Dell PowerEdge R710 with a Dell PERC H700 RAID controller.

  The regular disks on this system can be probed by smartmontools without
incident. However, every time the Pliant LB206M SSD is polled with smartctl,
the "non-medium error count" increments by one, and the following error is
logged to the console:

mfi0: 3580 (462244799s/0x0002/info) - Unexpected sense: PD 07(e0x20/s7) Path 5001e820026e8092, CDB:
b7 0c 00 00 00 00 00 00 00 08 00 00, Sense: 1/1c/00

  B7 is "Read defect list" and 1/1C/00 is "Defect list not found". This
seems to correspond to smartctl reporting "defect list format 6 unknown"
The problem is that the reported "Non-medium error count:" increments by
one each time smartctl is run, and this is remembered by the drive.

  Is it possible to define a quirk for this family of drives to prevent
the defect list inquiry? I am attaching the output of "smartctl -a" for
reference. Note that this is a Dell-labeled drive with Dell firmware - I
don't know if it happens with the OEM firmware.

smartctl 6.3 2014-07-26 r3976 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               Pliant
Product:              LB206M
Revision:             D323
Compliance:           SPC-4
User Capacity:        200,049,647,616 bytes [200 GB]
Logical block size:   512 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches
Logical Unit id:      0x5001e820026e8090
Serial number:        40796304
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Mon Aug 25 22:14:36 2014 EDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Percentage used endurance indicator: 0%
Current Drive Temperature:     39 C
Drive Trip Temperature:        60 C

Manufactured in week 36 of year 2013
Specified cycle count over device lifetime:  0
Accumulated start-stop cycles:  35
defect list format 6 unknown
Elements in grown defect list: 0

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:          0        0         0         0          0        173.373           0
write:         0        0         0         0          0         52.992           0

Non-medium error count:        8

SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   (hours)
# 1  Background short  Completed                  48       3                 - [-   -    -]
# 2  Background long   Completed                  48       2                 - [-   -    -]
# 3  Background short  Completed                  48       1                 - [-   -    -]

Long (extended) Self Test duration: 4200 seconds [70.0 minutes]

  Please CC me directly on any replies, so I'm sure to see them. Also, if
anyone knows of a method to zero the non-medium error count, I'd appreciate
hearing about it. Thanks!

        Terry Kennedy             http://www.tmk.com
        terry <at> tmk.com             New York, NY USA

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
John A. Wallace | 25 Aug 15:33 2014
Picon

Windows oddities


> John A. Wallace wrote:
> > Windows installation oddities
> >
> > I have installed the most recent Windows version6.3-1, whichIgot from
> >
> here:_http://sourceforge.net/projects/smartmontools/files/latest/downlo
> ad_.
> > All appears to be running well from what I have seen so far. Thanks
> > for that.I manually uninstalled the previous version.
> >
> > I ama bit puzzled by the versioning and such. Before I got this
> > version, I hadbeen using one labeled as?smartmontools-win-6.2-2.zip?.
> >
> We never provided such a file on the above download location.
>
> The file is possibly from independent project
> http://www.netpower.fr/smartmontools. It provides an alternative
> installer for smartmontools.
>
Yes, you're probably right about that as I see the different numbering
version available from there.

Regarding the other question I had:

So I am curious about whether it is possible whether a failing, or faulty,
controller on an external USB enclosure could result in a report indicating
that a disk was bad or failing although in fact it might just be that the
controller itself, not the disk, could have a problem? Thanks, Christian.

- John

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
John A. Wallace | 22 Aug 20:58 2014
Picon

Windows installation oddities

I have installed the most recent Windows version 6.3-1, which I got from here: http://sourceforge.net/projects/smartmontools/files/latest/download. All appears to be running well from what I have seen so far. Thanks for that. I manually uninstalled the previous version.

I am a bit puzzled by the versioning and such. Before I got this version, I had been using one labeled assmartmontools-win-6.2-2.zip. However, your current program, along with its previous versions shown on the Sourceforge site, all appear to have*.exe formats, instead of the*.zip version; and your previous number shows to be version-6.2-1, not-6.2-2, such as I had. Im not 100% sure where I got the previous one, but I thought it was on your official site, but it appears now that might not have been so. Have you changed numbering in this way?

Also, when I installed the previous version (on Windows 7 Pro), it went intoC:\Program Files (x86)\smartmontools for Windows\. However, your current version ended up being installed toC:\Program Files\smartmontools\, since I chose to make use of the 64-bit version on my 64-bit OS. I presume that it would have gone toC:\Program Files (x86)\smartmontools\”, if I had not clicked the checkbox for 64-bit during installation. Even so, one of the leftover folders from the previously installed version isC:\Program Files (x86)\smartmontools for Windows\, which did not get removed completely while un-installing, and it left behind two files:smart.log and and smartmontools-install-6.2-1.log. Are these files in fact part of your program, or had I somehow gotten someone elses version of smartmontools for Windows?

Finally, on to an important question about functionality, instead of administration, which I was looking for in the FAQ, but nothing showed up. So I am curious about whether it is possible whether a failing, or faulty, controller on an external USB enclosure could result in a report indicating that a disk was bad or failing although in fact it might just be that the controller itself, not the disk, could have a problem? Thanks.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Marcel Partap | 18 Aug 23:21 2014
Picon
Picon

USB: WD My Book 4TB 0x1058:0x1230 drivedb entry

..works with -d sat
f.e.
>   { "USB: WD My Book; ",
> -   "0x1058:0x1102",
> +   "0x1058:0x1(102|230)",
>     "", // 0x1028
>     "",
>     "-d sat"
>   },

> Bus 002 Device 002: ID 1058:1230 Western Digital Technologies, Inc. 
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               3.00
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0 
>   bDeviceProtocol         0 
>   bMaxPacketSize0         9
>   idVendor           0x1058 Western Digital Technologies, Inc.
>   idProduct          0x1230 
>   bcdDevice           10.50
>   iManufacturer           2 Western Digital
>   iProduct                3 My Book 1230

#Regards!

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
John Teddy | 18 Aug 18:57 2014
Picon

Smart behind a raid

I'm trying to get smartd to run and report to syslog. There are a lot of options in smart.conf, are there any recommended setups? My command for using smartctl manually is this: 

sudo smartctl -l ssd -d megaraid,0 -H /dev/sda

How can I get smartd to dump to syslog?

Does it report any errors it would find from smart onto syslog?

Do I need to have cronjobs to run smartctl manually? Or if I setup smartd, does smartd do that itself?

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
John Theodore | 20 Aug 03:35 2014
Picon

smartd.conf advice, how often to run scans, what options?

I finally got smartd working and the puppet-smartd module works now too. I realized how useful devicescan is.

How often are you guys having short or long tests occur?

Currently my smartd.conf looks like this:

DEVICESCAN -S on -o on -a -I 194 -s (S/../.././02|L/../../6/03)

Do I need additional options to cause it to dump errors it finds to syslog? or does devicescan do that automatically? All these disks are behind a megaraid controller, will the query work properly through devicescan?

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Christian Franke | 18 Aug 21:05 2014
Picon

Re: smartctl output for Crucial 512Gb SSD

Mike wrote:
> Great thanks. I've applied the patch and ran the same command, which
> initially takes around 30 seconds to return any data at all, it then
> hung for about 1 minute after printing the GPL table.

This is because, with the patch, these large logs are completely read 
into memory. Smartctl should only read sectors needed but this requires 
some rework.

> ...
> Self-test execution status:      (  80) The previous self-test completed having
> the electrical element of the test failed.

This suggests a serious problem with the drive.

> ...
>
> SMART Extended Comprehensive Error Log Version: 1 (16383 sectors)
> No Errors Logged
>
> SMART Extended Self-test Log Version: 1 (3449 sectors)

smartctl should print one entry here but doesn't. There is either a bug 
in smartctl or the drive does not fill the self-test log as specified by 
the standard.

Please provide output of "smartctl -l gplog,0x07,0-1 /dev/sdb" as 
attachment(!).

Connecting to another SATA controller with better pass-through support 
may help to read the old Self-test Log (don't use -x, use -a or -l 
selftest).

Thanks,
Christian

------------------------------------------------------------------------------

Gmane