Difference between revisions of "Check disk failure and send alert"

From Define Wiki
Jump to navigation Jump to search
(Created page with "when no disks failed, the output of storcli is: <bash [root@disk-test-node1 ~]# storcli64 /c0/vall show Controller = 0 Status = Success Description = None Virtual Drives...")
(No difference)

Revision as of 10:28, 2 July 2015

when no disks failed, the output of storcli is:

<bash [root@disk-test-node1 ~]# storcli64 /c0/vall show Controller = 0 Status = Success Description = None


Virtual Drives :

==

DG/VD TYPE State Access Consist Cache Cac sCC Size Name


0/0 RAID6 Optl RW No RWBD - ON 1.063 TB


Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent| R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack| AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency

</syntaxhighlight>

when disk failure occurs, the output is:

[root@disk-test-node1 ~]# storcli64 /c0/vall show 
Controller = 0
Status = Success
Description = None


Virtual Drives :
==============

-------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC     Size Name 
-------------------------------------------------------------
0/0   RAID6 Pdgd  RW     No      RWBD  -   ON  1.063 TB      
-------------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|
R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency

To check if any disk failure occurs, we can use this command:

[root@disk-test-node1 ~]# storcli64 /c0/vall show |grep '\ Optl\ '
0/0   RAID6 Optl  RW     No      RWBD  -   ON  1.063 TB