提示:文章寫完后,目錄可以自動生成,如何生成可參考右邊的幫助文檔
前言
最近接管了一個浪潮服務器,系統是Windows Server 2022
,本來想打開硬件管理器看看硬盤配置的,結果只顯示INSPUR LOGICAL VOLUME
,而且服務器是24小時開機的,所以只能借助RAID管理工具了,我這款RAID控制器是PM8222-SHBA
,是MicroChip的方案
,使用ARCCON
F命令行工具即可。
由于我們使用的服務器主要是基于MegaRAID
的方案,手上只有這一款基于Inspur的RAID方案,而且已經裝了Windows系統,所以主要講下Windows上的使用,Linux類似。
一、獲取ARCCONF
這里就直接給官方網址了,上傳資源我也嫌麻煩。
ARCCONF官網
支持的產品(官方給出):
親測:我的這款PM8222-SHBA是支持的!
二、使用步驟
1.Windows Server 2022
我目前的環(huán)境,下載之后解壓zip到任意目錄(不要解壓到C盤的系統目錄
),找到windows_x64
。這個版本貌似只支持x86_64
,如果你是x86就去官網找舊版本
,看看是不是支持x86。
依次點進去直到看到arcconf.exe
工具。注意:如果你的RAID正常使用,就不要使用driverUpdate.exe,以免出現問題!
下面介紹幾個我常用的命令:
1.查看RAID控制器
./arcconf.exe LIST
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller ID : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
Controller 1: : Optimal, Slot 21, Mixed, INSPUR PM8222-SHBA, **********, **********
可以看到機器里RAID卡的信息和個數,我的機器是一個RAID卡。每個RAID卡在這個機器上都有一個唯一的ID
,第一個就是1,以此類推,記得這個ID,后面有用。
2.查詢控制器屬性
./arcconf.exe getconfig <RAID控制器ID> ad
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Status : Optimal
Controller Mode : Mixed
Channel description : SCSI
Controller Model : INSPUR PM8222-SHBA
Vendor ID : *****
Device ID : *****
Subsystem Vendor ID : *****
Subsystem Device ID : *****
Controller Serial Number : **********
Controller World Wide Name : **********
Physical Slot : 21
Negotiated PCIe Data Rate : PCIe 3.0 x8(7880 MB/s)
PCI Address (Domain:Bus:Device:Function) : 0:b1:0:0
Number of Ports : 2
Internal Port Count : 2
External Port Count : 0
Defunct disk drive count : 0
NCQ status : Enabled
Queue Depth : Automatic
Monitor and Performance Delay : 60 minutes
Elevator Sort : Enabled
Degraded Mode Performance Optimization : Disabled
Latency : Disabled
Post Prompt Timeout : 0 seconds
Boot Controller : False
Primary Boot Volume : None
Secondary Boot Volume : None
Driver Name : smartsamd.sys
Driver Supports SSD I/O Bypass : Yes
NVMe Supported : No
NVMe Configuration Supported : No
Manufacturing Part Number : Not Applicable
Manufacturing Spare Part Number : Not Applicable
Manufacturing Wellness Log : Not Applicable
Manufacturing SKU Number : Not Applicable
Manufacturing Model : Not Applicable
NVRAM Checksum Status : Passed
Sanitize Lock Setting : None
Expander Minimum Scan Duration : 0 seconds
Expander Scan Time-out : 120 seconds
Reboot Required Reasons : Not Available
-------------------------------------------------------------------
Power Settings
-------------------------------------------------------------------
Power Consumption : Not Available
Current Power Mode : Maximum Performance
Pending Power Mode : Not Applicable
Survival Mode : Disabled
-------------------------------------------------------------------
Cache Properties
-------------------------------------------------------------------
-------------------------------------------------------------------
Physical Drive Write Cache Policy Information
-------------------------------------------------------------------
Configured Drives : Default
Unconfigured Drives : Default
HBA Drives : Default
-------------------------------------------------------------------
RAID Properties
-------------------------------------------------------------------
Logical devices/Failed/Degraded : 2/0/0
Spare Activation Mode : Failure
Background consistency check : Idle
Consistency Check Delay : 3 seconds
Parallel Consistency Check Supported : Enabled
Parallel Consistency Check Count : 1
Inconsistency Repair Policy : Disabled
Consistency Check Inconsistency Notify : Disabled
Rebuild Priority : High
Expand Priority : Medium
-------------------------------------------------------------------
Controller Version Information
-------------------------------------------------------------------
Firmware : 4.11
Driver : Windows 1.52.0.0
Hardware Revision : B
Hardware Minor Revision : Not Available
SEEPROM Version : 3
CPLD Revision : Not Available
-------------------------------------------------------------------
Out Of Band Interface Settings
-------------------------------------------------------------------
OOB Interface : PBSI
Pending OOB Interface : PBSI
I2C Address : 0xDE
Pending I2C Address : 0xDE
-------------------------------------------------------------------
PBSI
-------------------------------------------------------------------
I2C Clock Speed : 400 KHZ
I2C Clock Stretching : Enabled
Pending I2C Clock Speed : 400 KHZ
Pending I2C Clock Stretching : Enabled
-------------------------------------------------------------------
MCTP
-------------------------------------------------------------------
SMBus Device Type : Not Applicable
SMBus Channel : Not Applicable
Static EIDs Use On Initialization : Not Applicable
VDM Notification : Not Applicable
Pending SMBus Device Type : Not Applicable
Pending SMBus Channel : Not Applicable
Pending Static EIDs Use On Initialization : Not Applicable
Pending VDM Notification : Not Applicable
-------------------------------------------------------------------
Connector information
-------------------------------------------------------------------
Connector #0
Connector name : CN0
Connection Number : 0
Functional Mode : Mixed
Connector Location : Internal
SAS Address : 56C92BF0053B131E
Connector #1
Connector name : CN1
Connection Number : 1
Functional Mode : Mixed
Connector Location : Internal
SAS Address : **********
RAID控制器ID就是上面LIST查詢到的ID,浪潮服務器支持多個RAID控制器,每個控制器都有唯一的ID,咱們做的RAID就是在這些控制器基礎上做的,你要查哪個RAID就要先找到管理它的控制器。我的機器是一個RAID控制器,一個控制器可以管理多組RAID。
3.查詢虛擬磁盤屬性
./arcconf.exe getconfig <RAID控制器ID> ld
Controllers found: 1
--------------------------------------------------------
Logical device information
--------------------------------------------------------
Logical Device number 0
Logical Device name : Logical Drive 1
Disk Name : \\.\PhysicalDrive0 (Disk0)
Block Size of member drives : 512 Bytes
Array : 0
RAID level : 0
Status of Logical Device : Optimal
Size : 915683 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 : 65535
Mount Points : 100 MB Partition Number 1 16 MB Partition Number 2 C:\ 914886 MB Partition Number 3 679 MB Partition Number 4
LD Acceleration Method : SSD IO Bypass
Volume Unique Identifier : ********************
--------------------------------------------------------
Array Physical Device Information
--------------------------------------------------------
Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------
Device 4 : Present (915715MB, SATA, SSD, Connector:1, Device:4) **********
Logical Device number 1
Logical Device name : Logical Drive 2
Disk Name : \\.\PhysicalDrive1 (Disk1)
Block Size of member drives : 512 Bytes
Array : 1
RAID level : 1
Status of Logical Device : Optimal
Size : 2289240 MB
Stripe-unit size : 256 KB
Full Stripe Size : 256 KB
Interface Type : Serial Attached SCSI
Device Type : Data
Boot Type : None
Heads : 255
Sectors Per Track : 32
Cylinders : 65535
Mount Points : D:\ 2289239 MB Partition Number 1
LD Acceleration Method : None
Volume Unique Identifier : ********************
--------------------------------------------------------
Array Physical Device Information
--------------------------------------------------------
Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------
Device 5 : Present (2289272MB, SAS, HDD, Connector:1, Device:5) **********
Device 6 : Present (2289272MB, SAS, HDD, Connector:1, Device:6) **********
這看到的是系統掛載的邏輯磁盤屬性,不是物理磁盤屬性??梢钥吹絉AID控制器1下面配置了兩個組,組1是RAID 0
且掛了一塊硬盤,組2是RAID 1
且掛了2塊硬盤。
注意:這種配置存在一定風險,一般系統盤都需要兩塊硬盤做RAID 1的,這樣的話哪怕24小時運行也不必過于擔心因硬盤故障導致的系統崩潰,甚至無法挽回的地步。
4.查詢物理硬盤屬性
./arcconf.exe getconfig <RAID控制器ID> pd
Controllers found: 1
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
Channel #0:
Device #4
Device is a Hard drive
State : Online
Drive has stale RIS data : False
Block Size : 512 Bytes
Physical Block Size : 4K Bytes
Transfer Speed : SATA 6.0 Gb/s
Reported Channel,Device(T:L) : 0,4(4:0)
Reported Location : Direct Attached, Slot 4(Connector 1:CN1)
Array : 0
Vendor : ATA
Model : SAMSUNG ***************
Firmware : *****
Serial number : **********
World-wide name : **********
Reserved Size : 32768 KB
Used Size : 915683 MB
Unused Size : 0 MB
Total Size : 915715 MB
Write Cache : Disabled (write-through)
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
SSD : Yes
NCQ supported : Supported
NCQ status : Enabled
Boot Type : None
Current Temperature : 32 deg C
Maximum Temperature : 43 deg C
Threshold Temperature : 70 deg C
PHY Count : 1
Drive Configuration Type : Data
Drive Encryption Capability : SED
SED Security Status : Not Applicable
SED Qualification Status : Not Applicable
SED Ownership status : Not Applicable
SED Type : Not Applicable
Foreign Key Identifier : Not Applicable
Foreign Reset Key Identifier : Not Applicable
Original Factory State(OFS) : False
Drive Exposed to OS : False
Sanitize Erase Support : True
Sanitize Lock Freeze Support : True
Sanitize Lock Anti-Freeze Support : True
Sanitize Lock Setting : None
Power On Hours : 3425
Usage Remaining : 100 percent
Estimated Life Remaining : Not Applicable
SSD Smart Trip Wearout : False
56 Day Warning Present : False
Drive Unique ID : 8B78DE7726E67D49
Drive SKU Number : Not Applicable
Drive Part Number : Not Applicable
Last Failure Reason : No Failure
----------------------------------------------------------------
Device Phy Information
----------------------------------------------------------------
Phy #0
Negotiated Physical Link Rate : 6 Gbps
Negotiated Logical Link Rate : 6 Gbps
Maximum Link Rate : 6 Gbps
----------------------------------------------------------------
Device Error Counters
----------------------------------------------------------------
Aborted Commands : 0
Bad Target Errors : 0
Ecc Recovered Read Errors : 0
Failed Read Recovers : 0
Failed Write Recovers : 0
Format Errors : 0
Hardware Errors : 0
Hard Read Errors : 0
Hard Write Errors : 0
Hot Plug Count : 0
Media Failures : 0
Not Ready Errors : 0
Other Time Out Errors : 0
Predictive Failures : 0
Retry Recovered Read Errors : 0
Retry Recovered Write Errors : 0
Scsi Bus Faults : 0
Sectors Reads : 6974590021
Sectors Written : 27616948749
Service Hours : 3423
Device #5
Device is a Hard drive
State : Online
Drive has stale RIS data : False
Block Size : 512 Bytes
Physical Block Size : 4K Bytes
Transfer Speed : SAS 12.0 Gb/s
Reported Channel,Device(T:L) : 0,5(5:0)
Reported Location : Direct Attached, Slot 5(Connector 1:CN1)
Array : 1
Vendor : TOSHIBA
Model : **********
Firmware : ****
Serial number : **********
World-wide name : **********
Reserved Size : 32768 KB
Used Size : 2289240 MB
Unused Size : 0 MB
Total Size : 2289272 MB
Write Cache : Disabled (write-through)
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
SSD : No
Boot Type : None
Rotational Speed : 10500 RPM
Current Temperature : 31 deg C
Maximum Temperature : 34 deg C
Threshold Temperature : 65 deg C
PHY Count : 2
Drive Configuration Type : Data
Drive Exposed to OS : False
Sanitize Erase Support : True
Sanitize Lock Freeze Support : False
Sanitize Lock Anti-Freeze Support : False
Sanitize Lock Setting : None
Drive Unique ID : **********
Drive SKU Number : Not Applicable
Drive Part Number : Not Applicable
Last Failure Reason : No Failure
----------------------------------------------------------------
Device Phy Information
----------------------------------------------------------------
Phy #0
Negotiated Physical Link Rate : 12 Gbps
Negotiated Logical Link Rate : 12 Gbps
Maximum Link Rate : 12 Gbps
Phy #1
Negotiated Physical Link Rate : unknown
Negotiated Logical Link Rate : unknown
Maximum Link Rate : 12 Gbps
----------------------------------------------------------------
Device Error Counters
----------------------------------------------------------------
Aborted Commands : 0
Bad Target Errors : 0
Ecc Recovered Read Errors : 0
Failed Read Recovers : 0
Failed Write Recovers : 0
Format Errors : 0
Hardware Errors : 0
Hard Read Errors : 0
Hard Write Errors : 0
Hot Plug Count : 0
Media Failures : 0
Not Ready Errors : 0
Other Time Out Errors : 0
Predictive Failures : 0
Retry Recovered Read Errors : 0
Retry Recovered Write Errors : 0
Scsi Bus Faults : 6
Sectors Reads : 46358447399
Sectors Written : 441995486
Service Hours : 3423
Device #6
Device is a Hard drive
State : Online
Drive has stale RIS data : False
Block Size : 512 Bytes
Physical Block Size : 4K Bytes
Transfer Speed : SAS 12.0 Gb/s
Reported Channel,Device(T:L) : 0,6(6:0)
Reported Location : Direct Attached, Slot 6(Connector 1:CN1)
Array : 1
Vendor : TOSHIBA
Model : **********
Firmware : 1403
Serial number : **********
World-wide name : **********
Reserved Size : 32768 KB
Used Size : 2289240 MB
Unused Size : 0 MB
Total Size : 2289272 MB
Write Cache : Disabled (write-through)
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
SSD : No
Boot Type : None
Rotational Speed : 10500 RPM
Current Temperature : 31 deg C
Maximum Temperature : 34 deg C
Threshold Temperature : 65 deg C
PHY Count : 2
Drive Configuration Type : Data
Drive Exposed to OS : False
Sanitize Erase Support : True
Sanitize Lock Freeze Support : False
Sanitize Lock Anti-Freeze Support : False
Sanitize Lock Setting : None
Drive Unique ID : **********
Drive SKU Number : Not Applicable
Drive Part Number : Not Applicable
Last Failure Reason : No Failure
----------------------------------------------------------------
Device Phy Information
----------------------------------------------------------------
Phy #0
Negotiated Physical Link Rate : 12 Gbps
Negotiated Logical Link Rate : 12 Gbps
Maximum Link Rate : 12 Gbps
Phy #1
Negotiated Physical Link Rate : unknown
Negotiated Logical Link Rate : unknown
Maximum Link Rate : 12 Gbps
----------------------------------------------------------------
Device Error Counters
----------------------------------------------------------------
Aborted Commands : 0
Bad Target Errors : 0
Ecc Recovered Read Errors : 0
Failed Read Recovers : 0
Failed Write Recovers : 0
Format Errors : 0
Hardware Errors : 0
Hard Read Errors : 0
Hard Write Errors : 0
Hot Plug Count : 0
Media Failures : 0
Not Ready Errors : 0
Other Time Out Errors : 0
Predictive Failures : 0
Retry Recovered Read Errors : 0
Retry Recovered Write Errors : 0
Scsi Bus Faults : 6
Sectors Reads : 42869411170
Sectors Written : 3891363294
Service Hours : 3423
Channel #2:
Device #0
Device is an Enclosure Services Device
Reported Channel,Device(T:L) : 2,0(0:0)
Enclosure ID : 0
Enclosure Logical Identifier : **********
Type : SES2
Vendor : INSPUR
Model : Virtual SGPIO
Firmware : 4.11
Status of Enclosure Services Device
Speaker status : Not Available
Command completed successfully.
這看到的是物理磁盤屬性,比如硬盤品牌、型號、接口、容量、材質(SSD或機械)。其它的屬性大家自行觀看。
還有其它查詢命令就不一一列出:
查詢虛擬磁盤的ID
./arcconf.exe getconfig <RAID卡ID> ld_id
硬盤所在Channel的ID
./arcconf.exe getconfig <RAID卡ID> channel_id
硬盤槽位號
./arcconf.exe getconfig <RAID卡ID> slot_id
表示查詢maxCache信息
./arcconf.exe getconfig <RAID卡ID> mc
表示查詢所有信息
./arcconf.exe getconfig <RAID卡ID> al
2.Ubuntu-22.04
官方提供了Linux版的二進制文件,將文件復制到服務器上。
chmod a+x arcconf
sudo mv arcconf /usr/bin
示例
sudo arcconf LIST
注意:ARM和X86架構的不同,不要復制錯文件!
執(zhí)行命令和Windows一樣,詳情參考Windows的操作。
3.CentOS7
給了個rpm包
,可以拷貝到服務器上安裝。
三、配置RAID屬性
上面講的是查看RAID屬性,其實配置也是支持的,只不過查詢就算輸錯命令也沒關系,配置可能破壞數據
,不建議小白在生產服務器上測試。
像設置RAID工作模式
、創(chuàng)建刪除
RAID都是支持的,詳情不講了,找供應商提供文檔,按照文檔一步步來。文章來源:http://www.zghlxwxcb.cn/news/detail-855884.html
總結
1、還蠻簡單的,有問題可以留言一起討論文章來源地址http://www.zghlxwxcb.cn/news/detail-855884.html
到了這里,關于浪潮服務器使用ARCCONF查看RAID配置信息的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!