Command line in Linux to get status of Adaptec (PMC) RAID controllers.
Save all the logs in the support archive. See output example AA below.
# /usr/StorMan/arcconf savesupportarchive
Examples below for controller 2, change the number accordingly for the desired controller.
Get status of running task (rebuild, verify, etc...) of a controller, this is NOT current status of the RAID, see getconfig for that.
# /usr/StorMan/arcconf getstatus 2
Commands to get logs of failed drive, see output example A below. NOTE, this is a dead drive log and does not represent the current status of the drives, so drives might had been replaced be okay now. See "getconfig" below to get current state.
# /usr/StorMan/arcconf getlogs 1 dead
# /usr/StorMan/arcconf getlogs 2 dead tabular
Command to get logs of device (drives)
# /usr/StorMan/arcconf getlogs 1 device
Command to clear the dead drive log entries.
# /usr/StorMan/arcconf getlogs 2 dead clear
Command to get complete controller configuration and current status, see output example B below.
Specifically for failed drives, look for "Status of logical device" entries, if it is not Optimal then need to investigate more closely under "Status of logical device" and see if there are any missing (failed) drives (Segment).
Also looks for "Degraded" to narrow down the search
# /usr/StorMan/arcconf getconfig 2
# /usr/StorMan/arcconf getconfig 2 | grep "Status of"
# /usr/StorMan/arcconf getconfig 2 | grep "Degraded"
# /usr/StorMan/arcconf getconfig 2 | grep "warnings"
# /usr/StorMan/arcconf getconfig 2 | grep "Segment"
Command to get the event log.
# /usr/StorMan/arcconf getlogs 2 event tabular
Command to set / change rebuild priority.
# ./arcconf setpriority
Output examples
Output example AA for savesupportarchive.
# /usr/StorMan/arcconf savesupportarchive
Controllers found: 1
Usage: SAVESUPPORTARCHIVE [Path] [Firmware|GUI|CIM|Arcconf|Storlib|Agent|Basecode]
===================================================================================
Saves all the logs
Path : directory other than default
Firmware : saves Firmware logs
GUI : saves GUI logs
CIM : saves CIM logs
Arcconf : saves Arcconf logs
StorLib : saves StorLib logs
Agent : saves Agent logs
Basecode : saves Basecode logs
The path is not specified, Using the default.
The logs are saved in relevant folders in /var/log/Support
Command completed successfully.
Output example A for getlogs command shows info of the failed drive, examples show.
# /usr/StorMan/arcconf getlogs 1 dead
Controllers found: 1
<ControllerLog controllerID="0" type="5" time="1424719380" version="1">
<deadDriveEntry vendorID="ATA " rtcSeconds="27" rtcMinutes="8" rtcHours="12" rtcDay="23" rtcMonth="2" rtcYear="2015" serialNumber="NAG28NAP " productID="HGST HUS" wwn="0000000000000000" failureReasonCode="2"/>
</ControllerLog>
Command completed successfully.# /usr/StorMan/arcconf getlogs 2 dead tabularControllers found: 3ControllerLogcontrollerID ..................... 1type ............................. 5time ............................. 1390333395version .......................... 1deadDriveEntryvendorID ......................... HitachirtcSeconds ....................... 23rtcMinutes ....................... 11rtcHours ......................... 7rtcDay ........................... 21rtcMonth ......................... 12rtcYear .......................... 2013serialNumber ..................... JK11A5YAKE2BUXproductID ........................ HUA72202wwn .............................. 0000000000000000failureReasonCode ................ 2
Output example B for getconfig command.
Controllers found: 3----------------------------------------------------------------------Controller information----------------------------------------------------------------------Controller Status : OptimalChannel description : SAS/SATAController Model : Adaptec 51245Controller Serial Number : 9A1110F7337Physical Slot : 3Temperature : 50 C/ 122 F (Normal)Installed memory : 512 MBCopyback : DisabledBackground consistency check : DisabledAutomatic Failover : EnabledGlobal task priority : HighPerformance Mode : Default/DynamicStayawake period : DisabledSpinup limit internal drives : 0Spinup limit external drives : 0Defunct disk drive count : 0Logical devices/Failed/Degraded : 3/0/0SSDs assigned to MaxIQ Cache pool : 0Maximum SSDs allowed in MaxIQ Cache pool : 8NCQ status : Enabled--------------------------------------------------------Controller Version Information--------------------------------------------------------BIOS : 5.2-0 (17544)Firmware : 5.2-0 (17544)Driver : 1.1-5 (2455)Boot Flash : 5.2-0 (17544)--------------------------------------------------------Controller Battery Information--------------------------------------------------------Status : OptimalOver temperature : NoCapacity remaining : 99 percentTime remaining (at current draw) : 3 days, 7 hours, 40 minutes----------------------------------------------------------------------Logical device information----------------------------------------------------------------------Logical device number 0Logical device name : sb_systemRAID level : 1Status of logical device : OptimalSize : 238289 MBRead-cache mode : EnabledMaxIQ preferred cache setting : DisabledMaxIQ cache setting : DisabledWrite-cache mode : Enabled (write-back)Write-cache setting : Enabled (write-back) when protected by battery/ZMMPartitioned : YesProtected by Hot-Spare : NoBootable : YesFailed stripes : NoPower settings : Disabled--------------------------------------------------------Logical device segment information--------------------------------------------------------Segment 0 : Present (0,2) 100614FC1L20NEJW93SGSegment 1 : Present (0,3) 100614FC1L20NEJVSMLGLogical device number 1Logical device name : Meta_SSDRAID level : 1Status of logical device : OptimalSize : 152489 MBRead-cache mode : EnabledMaxIQ preferred cache setting : DisabledMaxIQ cache setting : DisabledWrite-cache mode : Enabled (write-back)Write-cache setting : Enabled (write-back) when protected by battery/ZMMPartitioned : YesProtected by Hot-Spare : NoBootable : NoFailed stripes : NoPower settings : Disabled--------------------------------------------------------Logical device segment information--------------------------------------------------------Segment 0 : Present (0,0) CVPR137003L9160DGNSegment 1 : Present (0,1) CVPR136303J7160DGNLogical device number 2Logical device name : sb_data_1RAID level : 5Status of logical device : OptimalSize : 13332463 MBStripe-unit size : 256 KBRead-cache mode : EnabledMaxIQ preferred cache setting : DisabledMaxIQ cache setting : DisabledWrite-cache mode : Enabled (write-back)Write-cache setting : Enabled (write-back)Partitioned : YesProtected by Hot-Spare : NoBootable : NoFailed stripes : NoPower settings : Disabled--------------------------------------------------------Logical device segment information--------------------------------------------------------Segment 0 : Present (0,4) JK11A5YAKBP17XSegment 1 : Present (0,5) JK11A5YAKE2M6XSegment 2 : Present (0,6) JK11A5YAKBN2EXSegment 3 : Present (0,7) JK11A5YAKBNY4XSegment 4 : Present (0,8) JK11A5YAKBP0DXSegment 5 : Present (0,9) JK11A5YAKE2M5XSegment 6 : Present (0,10) JK11A5YAKE3ETXSegment 7 : Present (0,11) JK11A8B9GUT7PF----------------------------------------------------------------------Physical Device information----------------------------------------------------------------------Device #0Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,0(0:0)Reported Location : Connector 0, Device 0Vendor : INTELModel : SSDSA2BW16Firmware : 4PC10362Serial number : CVPR137003L9160DGNSize : 152627 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered offSSD : YesMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #1Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,1(1:0)Reported Location : Connector 0, Device 1Vendor : INTELModel : SSDSA2BW16Firmware : 4PC10362Serial number : CVPR136303J7160DGNSize : 152627 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered offSSD : YesMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #2Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,2(2:0)Reported Location : Connector 0, Device 2Vendor : HitachiModel : HTE723225L9A360Firmware : FCDOC30FSerial number : 100614FC1L20NEJW93SGSize : 238475 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #3Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,3(3:0)Reported Location : Connector 0, Device 3Vendor : HitachiModel : HTE723225L9A360Firmware : FCDOC30FSerial number : 100614FC1L20NEJVSMLGSize : 238475 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #4Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,4(4:0)Reported Location : Enclosure 0, Slot 4Reported ESD(T:L) : 2,0(0:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKBP17XSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #5Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,5(5:0)Reported Location : Enclosure 0, Slot 5Reported ESD(T:L) : 2,0(0:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKE2M6XSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #6Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,6(6:0)Reported Location : Enclosure 0, Slot 6Reported ESD(T:L) : 2,0(0:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKBN2EXSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #7Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,7(7:0)Reported Location : Enclosure 0, Slot 7Reported ESD(T:L) : 2,0(0:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKBNY4XSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #8Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,8(8:0)Reported Location : Enclosure 1, Slot 8Reported ESD(T:L) : 2,1(1:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKBP0DXSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #9Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,9(9:0)Reported Location : Enclosure 1, Slot 9Reported ESD(T:L) : 2,1(1:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKE2M5XSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #10Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,10(10:0)Reported Location : Enclosure 1, Slot 10Reported ESD(T:L) : 2,1(1:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A5YAKE3ETXSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #11Device is a Hard driveState : OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported Channel,Device(T:L) : 0,11(11:0)Reported Location : Enclosure 1, Slot 11Reported ESD(T:L) : 2,1(1:0)Vendor : HitachiModel : HUA722020ALA330Firmware : JKAOA3EASerial number : JK11A8B9GUT7PFSize : 1907729 MBWrite Cache : Enabled (write-back)FRU : NoneS.M.A.R.T. : NoS.M.A.R.T. warnings : 0Power State : Full rpmSupported Power States : Full rpm,Powered off,Reduced rpmSSD : NoMaxIQ Cache Capable : NoMaxIQ Cache Assigned : NoNCQ status : EnabledDevice #12Device is an Enclosure services deviceReported Channel,Device(T:L) : 2,0(0:0)Enclosure ID : 0Type : SES2Vendor : ADAPTECModel : Virtual SGPIOFirmware : 0001Status of Enclosure services deviceTemperature : NormalDevice #13Device is an Enclosure services deviceReported Channel,Device(T:L) : 2,1(1:0)Enclosure ID : 1Type : SES2Vendor : ADAPTECModel : Virtual SGPIOFirmware : 0001Status of Enclosure services deviceTemperature : NormalCommand completed successfully.
0 Comments