UCS – Festplattendaten durch UCSB-MRAID12G unter SLES auslesen

Unter manchen Szenarien kann oder muss man B-Series-Server im UCS mit lokalen Festplatten lassen. In den neuen B200 M4 neue RAID-Controller verbaut. Genauer gesagt, der Cisco FlexStorage 12G SAS RAID (UCSB-MRAID12G).

UCS - Local Raid

UCS - Local HDD

Hier haben sich (wie fast schon üblich) die Werte geändert. Mit smartctl kann man den Controller scannen.

# smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/bus/0 -d megaraid,4 # /dev/bus/0 [megaraid_disk_04], SCSI device
/dev/bus/0 -d megaraid,5 # /dev/bus/0 [megaraid_disk_05], SCSI device

Es handelt sich noch immer um eine Variante des MegaRaid. Mit der Erweiterung des „-d“ gelangt man über das Raid auf die einzelne Platte. Im dargestellten Fall handelt es sich um ein Raid mit zwei Platten.

# smartctl -d megaraid,4 -s on /dev/sg0 -a
smartctl 6.3 2015-02-08 r4039 [x86_64-linux-3.0.101-63-default] (SUSE RPM)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST300MM0006
Revision:             0003
Compliance:           SPC-4
User Capacity:        300,000,000,000 bytes [300 GB]
Logical block size:   512 bytes
LB provisioning type: unreported, LBPME=0, LBPRZ=0
Rotation Rate:        10500 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000c5007efd78e3
Serial number:        S0K3MCGC0000N52306Y6
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Mon Jul 27 15:20:20 2015 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
Informational Exceptions (SMART) enabled
Temperature warning enabled

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

Current Drive Temperature:     20 C
Drive Trip Temperature:        50 C

Manufactured in week 50 of year 2014
Specified cycle count over device lifetime:  10000
Accumulated start-stop cycles:  167
Specified load-unload count over device lifetime:  300000
Accumulated load-unload cycles:  167
Elements in grown defect list: 0

Vendor (Seagate) cache information
  Blocks sent to initiator = 4973704
  Blocks received from initiator = 12832291
  Blocks read from cache and sent to initiator = 277515
  Number of read and write commands whose size <= segment size = 27141
  Number of read and write commands whose size > segment size = 0

Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 6.12
  number of minutes until next internal SMART test = 34

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:    8745357        0         0   8745357          0          2.547           0
write:         0        0         0         0          0          7.055           0
verify:     1180        0         0      1180          0          0.000           0

Non-medium error count:        0


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
No self-tests have been logged

Um diese Werte nun noch dauerhaft im System prüfen zu lassen, muss die /etc/smartd.conf angepasst werden.

# --- CUSTOM SETTING ---
#
# sgX (X = Vaule of your RAID-Sets)
# Raid 1
/dev/sg0 -d megaraid,4 -a -s S/../../7/03
/dev/sg0 -d megaraid,5 -a -s S/../../7/03

Den Restart des Smart-Daemons nicht vergessen. Wurde alles richtig erkannt, findet man die entsprechenden Einträge im System-Log.

Jul 25 15:39:55 linux-srv-m4 smartd[16077]: smartd 6.3 2015-02-08 r4039 [x86_64-linux-3.0.101-63-default] (SUSE RPM)
Jul 25 15:39:55 linux-srv-m4 smartd[16077]: Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
Jul 25 15:39:55 linux-srv-m4 smartd[16077]: Opened configuration file /etc/smartd.conf
Jul 25 15:39:55 linux-srv-m4 smartd[16077]: Configuration file /etc/smartd.conf parsed.
Jul 25 15:39:55 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_04], opened
Jul 25 15:39:55 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_04], [SEAGATE  ST300MM0006      0003], lu id: 0x5000c5007efd78e3, S/N: S0K3MCGC0000N52306Y6, 300 GB
Jul 25 15:39:56 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_04], is SMART capable. Adding to "monitor" list.
Jul 25 15:39:56 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_05], opened
Jul 25 15:39:56 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_05], [SEAGATE  ST300MM0006      0003], lu id: 0x5000c5007ebbf23f, S/N: S0K3GJQ50000N5206JKY, 300 GB
Jul 25 15:39:57 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_05], is SMART capable. Adding to "monitor" list.
Jul 25 15:39:57 linux-srv-m4 smartd[16077]: Monitoring 0 ATA and 2 SCSI devices
Jul 25 15:39:58 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_04], initial Temperature is 20 Celsius (Min/Max ??/20)
Jul 25 15:39:58 linux-srv-m4 smartd[16077]:     [trip Temperature is 50 Celsius]
Jul 25 15:39:59 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_05], initial Temperature is 21 Celsius (Min/Max ??/21)
Jul 25 15:39:59 linux-srv-m4 smartd[16077]:     [trip Temperature is 50 Celsius]
Jul 25 15:40:00 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_04], state written to /var/lib/smartmontools/smartd.SEAGATE-ST300MM0006-S0K3MCGC0000N52306Y6.scsi.state
Jul 25 15:40:00 linux-srv-m4 smartd[16077]: Device: /dev/sg0 [megaraid_disk_05], state written to /var/lib/smartmontools/smartd.SEAGATE-ST300MM0006-S0K3GJQ50000N5206JKY.scsi.state
Jul 25 15:40:00 linux-srv-m4 smartd[16079]: smartd has fork()ed into background mode. New PID=16079.

Marcel

Hallo, ich bin Marcel - Systemfummler mit Adminrechten und Internetjunkie. Ich liebe jeden Technikkram, meine Spielwiesen und das Internet, Reisen sowie Sushi und Thaifood.