Purpose:
The article will guide you on how to check hard drives healthily. In this article, we use the Microsemi RAID card as an example. You can use arcconf CLI commands to get information.
Target Audience:
People who have basic knowledge of Linux, RAID, and how to run CLI commands in a Linux shell.
Requirement:
The environment with available Microsemi RAID card and please download arcconf utility from Microsemi web site: (Please follow the SLA from Microsemi)
Step:
- Download the arcconf utility and use the suitable arcconf command on OS, switch to root mode, and run the command in Linux mode.
- Check the controller number.
# ./arcconf list
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller ID : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
Controller 1: : Optimal, Slot 5, Mixed, ADV Adaptec ROC-8i, Unknown, 50123456789ABC00
Command completed successfully.
- Identify Raid card type, RAID level, Disk name & Logical Device Name(defined in RAID initial phase), and acceleration method.
# arcconf getconfig 1 |grep -E 'Controller Model|Functional Mode|Logical Device number|Disk Name|Array Number|RAID level|LD Acceleration Method|Logical Device name|Connector \#[01]|Connector Name|Functional Mode|No-Battery Write Cache'
Controller Model : Adaptec SmartROC 3154-8i
No-Battery Write Cache : Disabled
Connector #0
Connector Name : CN0
Functional Mode : Mixed
Connector #1
Connector Name : CN1
Functional Mode : Mixed
Array Number 0
Array Number 1
Logical Device number 0
Logical Device name : OS
Disk Name : /dev/sdb
RAID level : 10
LD Acceleration Method : SSD IO Bypass
Logical Device number 1
Logical Device name : Storage
Disk Name : /dev/sda
RAID level : 5
LD Acceleration Method : None
- Array status and physical hard drive mapping
# ./arcconf getconfig 1 ar
Controllers found: 1
----------------------------------------------------------------------
Array Information
----------------------------------------------------------------------
Array Number 0
Name : A
Status : Ok
Interface : SATA SSD
Total Size : 1953545 MB
Unused Size : 0 MB
Block Size : 512 Bytes
Array Utilization : 100.00% Used, 0.00% Unused
Type : Data
Transformation Status : Not Applicable
Spare Rebuild Mode : Dedicated
SSD I/O Bypass : Enabled
--------------------------------------------------------
Array Logical Device Information
--------------------------------------------------------
Logical 0 : Optimal (10, Data, 976708 MB) OS
--------------------------------------------------------
Array Physical Device Information
--------------------------------------------------------
Device 8 : Present (488386MB, SATA, SSD, Connector:CN0, Enclosure:0, Slot:0) 195225F21214
Device 9 : Present (488386MB, SATA, SSD, Connector:CN0, Enclosure:0, Slot:1) 195225F21009
Device 10 : Present (488386MB, SATA, SSD, Connector:CN0, Enclosure:0, Slot:2) 195225F1E4A8
Device 11 : Present (488386MB, SATA, SSD, Connector:CN0, Enclosure:0, Slot:3) 195225F1E90E
Array Number 1
Name : B
Status : Ok
Interface : SATA
Total Size : 15261791 MB
Unused Size : 2 MB
Block Size : 512 Bytes
Array Utilization : 100.00% Used, 0.00% Unused
Type : Data
Transformation Status : Not Applicable
Spare Rebuild Mode : Dedicated
SSD I/O Bypass : Not Applicable
--------------------------------------------------------
Array Logical Device Information
--------------------------------------------------------
Logical 1 : Optimal (5, Data, 11446245 MB) Storage
--------------------------------------------------------
Array Physical Device Information
--------------------------------------------------------
Device 12 : Present (3815447MB, SATA, HDD, Connector:CN0, Enclosure:0, Slot:4) WJG01DEC
Device 13 : Present (3815447MB, SATA, HDD, Connector:CN0, Enclosure:0, Slot:5) WJG0KCA7
Device 14 : Present (3815447MB, SATA, HDD, Connector:CN0, Enclosure:0, Slot:6) WJG0GM7X
Device 15 : Present (3815447MB, SATA, HDD, Connector:CN0, Enclosure:0, Slot:7) WJG0KKGQ
- List available Logical device information only.
# ./arcconf getconfig 1 LD
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical Device number 0
Logical Device name : os
Disk Name : /dev/sdi
Block Size of member drives : 512 Bytes
Array : 0
RAID level : 1
Status of Logical Device : Optimal
Size : 244162 MB
Stripe-unit size : 256 KB
Full Stripe Size : 256 KB
Interface Type : SATA SSD
Device Type : Data
Boot Type : None
Heads : 255
Sectors Per Track : 32
Cylinders : 61280
Caching : Disabled
Mount Points : /,/var/lib/kubelet/pods/32116b3d-19ff-48b2-99b2-62238f345569/volume-subpaths/queries/prometheus-postgres-exporter/0,/var/lib/kubelet/pods/be082dd4-1419-4279-a64e-b453fc248343/volume-subpaths/queries/prometheus-postgres-exporter/0,/var/lib/kubelet/pods/e3201c9d-de79-4502-82e1-2360a9d622af/volume-subpaths/configmap/ems-ac-control-dev/0,/var/lib/kubelet/pods/e3201c9d-de79-4502-82e1-2360a9d622af/volume-subpaths/configmap/ems-ac-control-dev/1 244161 MB Partition Number 1
LD Acceleration Method : SSD IO Bypass
Volume Unique Identifier : 600508B1001C8D13BDE492B443BFAE96
--------------------------------------------------------
Array Physical Device Information
--------------------------------------------------------
Device 8 : Present (244198MB, SATA, SSD, Connector:CN0, Enclosure:1, Slot:0) 20512C17318A
Device 9 : Present (244198MB, SATA, SSD, Connector:CN0, Enclosure:1, Slot:1) 20512C173180
- SMART status checking
# arcconf getconfig 1 pd|egrep "Device #|State\>|Reported Location|Reported Channel|S.M.A.R.T. warnings"
Device #8
State : Online
Reported Channel,Device(T:L) : 0,8(8:0)
Reported Location : Enclosure 0, Slot 0(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #9
State : Online
Reported Channel,Device(T:L) : 0,9(9:0)
Reported Location : Enclosure 0, Slot 1(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #10
State : Online
Reported Channel,Device(T:L) : 0,10(10:0)
Reported Location : Enclosure 0, Slot 2(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #11
State : Online
Reported Channel,Device(T:L) : 0,11(11:0)
Reported Location : Enclosure 0, Slot 3(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #12
State : Online
Reported Channel,Device(T:L) : 0,12(12:0)
Reported Location : Enclosure 0, Slot 4(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #13
State : Online
Reported Channel,Device(T:L) : 0,13(13:0)
Reported Location : Enclosure 0, Slot 5(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #14
State : Online
Reported Channel,Device(T:L) : 0,14(14:0)
Reported Location : Enclosure 0, Slot 6(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #15
State : Online
Reported Channel,Device(T:L) : 0,15(15:0)
Reported Location : Enclosure 0, Slot 7(Connector 0:CN0)
S.M.A.R.T. warnings : 0
Device #0
Reported Channel,Device(T:L) : 2,0(0:0)
Reported Location : Connector 0:CN0, Enclosure 0
Device #1
Reported Channel,Device(T:L) : 2,1(1:0)
- List Physical device information only and filter the keyword of "state" & "Array".
# ./arcconf getconfig 1 PD | grep -i 'state\|Array'
State : Predictive Failure
Array : 0
State : Predictive Failure
Array : 0
State : Online
Array : 1
State : Online
Array : 1
State : Ready
State : Ready
State : Ready
State : Ready
State : Ready
State : Ready
State : Ready
State : Ready
- Identify the location of Predictive Failure HD. refer to the following link for more information.
How to check HDD LEDs in RAID mode with arcconf under Linux ?
# ./arcconf IDENTIFY 1 ARRAY 0
Controllers found: 1
Only devices managed by an enclosure processor may be identified
The specified device(s) is/are blinking.
Press any key to stop the blinking.
Command completed successfully.
- Percent Lifetime Remaining threshold definition
- Predictive Failure trigger if reach the threshold
# arcconf getsmartstats 1 tabular | grep -i 0XCA -B1 -A6
Attribute
id ............................................. 0xCA
name ........................................... Data Address Mark Errors
normalizedCurrent .............................. 0
normalizedWorst ................................ 0
thresholdValue ................................. 1
rawValue ....................................... 100
Status ......................................... OK
Comments
0 comments
Please sign in to leave a comment.