Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: gbentley on September 29, 2016, 02:03:34 PM

Title: Disc Type, Age & Uptime
Post by: gbentley 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?
Title: Re: Disc Type, Age & Uptime
Post by: gbentley 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?
Title: Re: Disc Type, Age & Uptime
Post by: guest22 on September 29, 2016, 02:37:12 PM
I believe there is a contrib for that...
Title: Re: Disc Type, Age & Uptime
Post by: CharlieBrady 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?
Title: Re: Disc Type, Age & Uptime
Post by: CharlieBrady 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'
...
Title: Re: Disc Type, Age & Uptime
Post by: gbentley 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 :)