Difference between revisions of "Smartctl and megaraid"

From vpsget wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
[DRAFT]
 
[DRAFT]
  
 +
for LSI RAID (usually used with supermicro or dell servers )
  
 
  smartctl -a -d megaraid,5 /dev/sda #device port specified after megaraid,N
 
  smartctl -a -d megaraid,5 /dev/sda #device port specified after megaraid,N

Latest revision as of 15:27, 19 April 2017

[DRAFT]

for LSI RAID (usually used with supermicro or dell servers )

smartctl -a -d megaraid,5 /dev/sda #device port specified after megaraid,N
smartctl -a -d megaraid,4 /dev/sda #look into port 4
smartctl -a -d sat+megaraid,5 /dev/sda #in case ddisk connected via sata interface,not sas
smartctl /dev/sda -d sat+megaraid,5 -t short #test
smartctl /dev/sda -d megaraid,5 -t short
smartctl /dev/sda -d sat+megaraid,0 -l selftest  #selftest log example [sata]
smartctl /dev/sda -d megaraid,0 -l selftest [sas]

for HP smart array you need to use cciss ,like:

smartctl -a  -d cciss,0 /dev/sda

for non-raid disk or for disk in software raid like mdadm commdn usage is more simple:

smartctl -a  /dev/sdd
smartctl -i  /dev/sdd


MegaCli:

  1. Show status
MegaCli -AdpAllInfo -aAll
  1. Get physical drive info
MegaCli -PDList -aAll
  1. Get virtual disk info
MegaCli -LDInfo -Lall -aAll
  1. Display configuration
MegaCli -CfgDsply -aAll
  1. Dump eventlog events to file 'events' and open it
MegaCli -AdpEventLog -GetEvents -f events -aAll && less events

Hopefully this will help you out if you ever have to use the MegaCLI RAI