seagate-207931.sh - Check if your system uses disks affected by Seagate KB #207931

Seagate drives (Barracuda 7200.11, DiamondMax 22, Barracuda ES.2 SATA, SV35) fail after powering on, see KB #207931.

download v1 here
download v2 here
download v3 here

There is no Linux tool (yet) to help the overworked admin, and as I do not want to check every server by hand, I wrote this.
You have to use the corresponding RAID-Tool in order to get the model, serial and firmware version.

Needs to be run as root!

UPDATE #1: SEAGATE has an online check now!
UPDATE #2: Script v2 available, it automatically queries the Seagate DB.
UPDATE #3: Seagates serial checker is currently down.
UPDATE #4: Seagates serial checker now uses captchas. DO NOT RELY ON v2!
UPDATE #5: v3 detects if the device cannot be read (hdparm), serial checking removed.
UPDATE #6: Firmware for NS finally available: #207963

current support:
- hdparm
- tw_cli (3ware)
- arcconf (Adaptec)

Hint:
$ ssh host "curl -s https://deploysrv/seagate-207931.sh | sh"

Return codes:

0: everything ok
1: one of the models was found (you still need to check the firmware version)

If you have code additions, mail me, I'd like to add support for more CLI raid tools.
Please supply me with complete output - or just buy me an areca, lsi and I'll add support for those, too ;)

Affected models:

Barracuda 7200.11
ST31000340AS
ST31000640AS
ST3750330AS
ST3750630AS
ST3640330AS
ST3640630AS
ST3500320AS
ST3500620AS
ST3500820AS
ST31500341AS
ST31000333AS
ST3640323AS
ST3640623AS
ST3320613AS
ST3320813AS
ST3160813AS

Barracuda ES.2 SATA
ST31000340NS
ST3750330NS
ST3500320NS
ST3250310NS

DiamondMax 22
STM31000340AS
STM31000640AS
STM3750330AS
STM3750630AS
STM3500320AS
STM3500620AS
STM3500820AS
STM31000334AS
STM3320614AS
STM3160813AS



Example run with a 3ware 9500s:

[root@develbox ~/dev]# sh seagate-207931.sh

seagate-207931.sh v1 by Stefan Behte (http://ge.mine.nu)

hdparm /dev/sda ok
hdparm /dev/sdb ok
3ware (tw_cli) /c0/p0: ok
3ware (tw_cli) /c0/p1: ok
Sorry, but you're affected:
/c0/p2 Model = ST3500320NS /c0/p2 Serial = 9QM0HMYP /c0/p2 Firmware Version = SN04

Sorry, but you're affected:
/c0/p3 Model = ST3500320NS /c0/p3 Serial = 9QM0DZP5 /c0/p3 Firmware Version = SN04

arcconf not found

[root@develbox ~/dev]# 


Written by Stefan Behte
Contact me, if you have any new ideas, bugs/bugfixes, recommondations or questions!
Please also contact me, if you just like the tool. :)

Stefan dot Behte at gmx dot net

Released under the GPL-v2