Koozali.org: home of the SME Server

Disc Type, Age & Uptime

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Disc Type, Age & Uptime
« on: September 29, 2016, 02:03:34 PM »
Hi,

Have been wrestling with Smartctl which refuses to give me any useful info on the 2 installed SATA HDD

Code: [Select]
smartctl: Device Read Identity Failed: Invalid argument
if I use

Code: [Select]
smartctl -d ata --all /dev/sda -T permissive

=== START OF INFORMATION SECTION ===
Device Model:     [No Information Found]
Serial Number:    [No Information Found]
Firmware Version: [No Information Found]
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   [No Information Found]
ATA Standard is:  [No Information Found]
Local Time is:    Thu Sep 29 13:01:09 2016 BST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.


Is there any other way to get the info I want or to update the Smartctl DB?
"If you don't know what you want, you end up with a lot you don't."

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Disc Type, Age & Uptime
« Reply #1 on: September 29, 2016, 02:15:35 PM »
Found via search

Code: [Select]
/usr/sbin/# ./update-smart-drivedb
/usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible

Any tips?
"If you don't know what you want, you end up with a lot you don't."

guest22

Re: Disc Type, Age & Uptime
« Reply #2 on: September 29, 2016, 02:37:12 PM »
I believe there is a contrib for that...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Disc Type, Age & Uptime
« Reply #3 on: September 29, 2016, 04:03:05 PM »
Have been wrestling with Smartctl which refuses to give me any useful info on the 2 installed SATA HDD

Do you know what they are? Do they support SMART? What does 'hdparm -I'  tell you?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Disc Type, Age & Uptime
« Reply #4 on: September 29, 2016, 04:05:14 PM »
https://www.centos.org/forums/viewtopic.php?t=49139

...
A quick workaround to update your smart database is to edit line 46 in update-smart-drivedb (#nano /usr/sbin/update-smart-drivedb)
and replace the line/url with:

SRCEXPR='http://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw'
...

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Disc Type, Age & Uptime
« Reply #5 on: September 30, 2016, 11:31:07 AM »
Tried edit update as above then got;

[root@mail sbin]# ./update-smart-drivedb
/usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible

then;

[root@mail sbin]# hdparm -I /dev/sda

/dev/sda:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument

and

[root@mail sbin]# hdparm /dev/sda

/dev/sda:
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 30394/255/63, sectors = 488281250, start = 0


Thanks :)



"If you don't know what you want, you end up with a lot you don't."