提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
- 前言
- 一、获取ARCCONF
- 二、使用步骤
- 1.Windows Server 2022
- 1.查看RAID控制器
- 2.查询控制器属性
- 3.查询虚拟磁盘属性
- 4.查询物理硬盘属性
- 2.Ubuntu-22.04
- 3.CentOS7
- 三、配置RAID属性
- 总结
前言
最近接管了一个浪潮服务器,系统是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
我目前的环境,下载之后解压zip到任意目录(不要解压到C盘的系统目录
),找到windows_x64
。这个版本貌似只支持x86_64
,如果你是x86就去官网找旧版本
,看看是不是支持x86。
依次点进去直到看到arcconf.exe
工具。
注意:如果你的RAID正常使用,就不要使用driverUpdate.exe,以免出现问题!
下面介绍几个我常用的命令:
1.查看RAID控制器
./arcconf.exe LISTControllers 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> adControllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------Controller Status : OptimalController Mode : MixedChannel description : SCSIController Model : INSPUR PM8222-SHBAVendor ID : *****Device ID : *****Subsystem Vendor ID : *****Subsystem Device ID : *****Controller Serial Number : **********Controller World Wide Name : **********Physical Slot : 21Negotiated PCIe Data Rate : PCIe 3.0 x8(7880 MB/s)PCI Address (Domain:Bus:Device:Function) : 0:b1:0:0Number of Ports : 2Internal Port Count : 2External Port Count : 0Defunct disk drive count : 0NCQ status : EnabledQueue Depth : AutomaticMonitor and Performance Delay : 60 minutesElevator Sort : EnabledDegraded Mode Performance Optimization : DisabledLatency : DisabledPost Prompt Timeout : 0 secondsBoot Controller : FalsePrimary Boot Volume : NoneSecondary Boot Volume : NoneDriver Name : smartsamd.sysDriver Supports SSD I/O Bypass : YesNVMe Supported : NoNVMe Configuration Supported : NoManufacturing Part Number : Not ApplicableManufacturing Spare Part Number : Not ApplicableManufacturing Wellness Log : Not ApplicableManufacturing SKU Number : Not ApplicableManufacturing Model : Not ApplicableNVRAM Checksum Status : PassedSanitize Lock Setting : NoneExpander Minimum Scan Duration : 0 secondsExpander Scan Time-out : 120 secondsReboot Required Reasons : Not Available-------------------------------------------------------------------Power Settings-------------------------------------------------------------------Power Consumption : Not AvailableCurrent Power Mode : Maximum PerformancePending Power Mode : Not ApplicableSurvival Mode : Disabled-------------------------------------------------------------------Cache Properties--------------------------------------------------------------------------------------------------------------------------------------Physical Drive Write Cache Policy Information-------------------------------------------------------------------Configured Drives : DefaultUnconfigured Drives : DefaultHBA Drives : Default-------------------------------------------------------------------RAID Properties-------------------------------------------------------------------Logical devices/Failed/Degraded : 2/0/0Spare Activation Mode : FailureBackground consistency check : IdleConsistency Check Delay : 3 secondsParallel Consistency Check Supported : EnabledParallel Consistency Check Count : 1Inconsistency Repair Policy : DisabledConsistency Check Inconsistency Notify : DisabledRebuild Priority : HighExpand Priority : Medium-------------------------------------------------------------------Controller Version Information-------------------------------------------------------------------Firmware : 4.11Driver : Windows 1.52.0.0Hardware Revision : BHardware Minor Revision : Not AvailableSEEPROM Version : 3CPLD Revision : Not Available-------------------------------------------------------------------Out Of Band Interface Settings-------------------------------------------------------------------OOB Interface : PBSIPending OOB Interface : PBSII2C Address : 0xDEPending I2C Address : 0xDE-------------------------------------------------------------------PBSI-------------------------------------------------------------------I2C Clock Speed : 400 KHZI2C Clock Stretching : EnabledPending I2C Clock Speed : 400 KHZPending I2C Clock Stretching : Enabled-------------------------------------------------------------------MCTP-------------------------------------------------------------------SMBus Device Type : Not ApplicableSMBus Channel : Not ApplicableStatic EIDs Use On Initialization : Not ApplicableVDM Notification : Not ApplicablePending SMBus Device Type : Not ApplicablePending SMBus Channel : Not ApplicablePending Static EIDs Use On Initialization : Not ApplicablePending VDM Notification : Not Applicable-------------------------------------------------------------------Connector information-------------------------------------------------------------------Connector #0Connector name : CN0Connection Number : 0Functional Mode : MixedConnector Location : InternalSAS Address : 56C92BF0053B131EConnector #1Connector name : CN1Connection Number : 1Functional Mode : MixedConnector Location : InternalSAS Address : **********
RAID控制器ID就是上面LIST查询到的ID,浪潮服务器支持多个RAID控制器,每个控制器都有唯一的ID,咱们做的RAID就是在这些控制器基础上做的,你要查哪个RAID就要先找到管理它的控制器。我的机器是一个RAID控制器,一个控制器可以管理多组RAID。
3.查询虚拟磁盘属性
./arcconf.exe getconfig <RAID控制器ID> ldControllers found: 1
--------------------------------------------------------
Logical device information
--------------------------------------------------------
Logical Device number 0Logical Device name : Logical Drive 1Disk Name : \\.\PhysicalDrive0 (Disk0)Block Size of member drives : 512 BytesArray : 0RAID level : 0Status of Logical Device : OptimalSize : 915683 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Mount Points : 100 MB Partition Number 1 16 MB Partition Number 2 C:\ 914886 MB Partition Number 3 679 MB Partition Number 4LD Acceleration Method : SSD IO BypassVolume 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 1Logical Device name : Logical Drive 2Disk Name : \\.\PhysicalDrive1 (Disk1)Block Size of member drives : 512 BytesArray : 1RAID level : 1Status of Logical Device : OptimalSize : 2289240 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : Serial Attached SCSIDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Mount Points : D:\ 2289239 MB Partition Number 1LD Acceleration Method : NoneVolume 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) **********
这看到的是系统挂载的逻辑磁盘属性,不是物理磁盘属性。可以看到RAID控制器1下面配置了两个组,组1是RAID 0
且挂了一块硬盘,组2是RAID 1
且挂了2块硬盘。
注意:这种配置存在一定风险,一般系统盘都需要两块硬盘做RAID 1的,这样的话哪怕24小时运行也不必过于担心因硬盘故障导致的系统崩溃,甚至无法挽回的地步。
4.查询物理硬盘属性
./arcconf.exe getconfig <RAID控制器ID> pdControllers found: 1
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------Channel #0:Device #4Device is a Hard driveState : OnlineDrive has stale RIS data : FalseBlock Size : 512 BytesPhysical Block Size : 4K BytesTransfer Speed : SATA 6.0 Gb/sReported Channel,Device(T:L) : 0,4(4:0)Reported Location : Direct Attached, Slot 4(Connector 1:CN1)Array : 0Vendor : ATAModel : SAMSUNG ***************Firmware : *****Serial number : **********World-wide name : **********Reserved Size : 32768 KBUsed Size : 915683 MBUnused Size : 0 MBTotal Size : 915715 MBWrite Cache : Disabled (write-through)S.M.A.R.T. : NoS.M.A.R.T. warnings : 0SSD : YesNCQ supported : SupportedNCQ status : EnabledBoot Type : NoneCurrent Temperature : 32 deg CMaximum Temperature : 43 deg CThreshold Temperature : 70 deg CPHY Count : 1Drive Configuration Type : DataDrive Encryption Capability : SEDSED Security Status : Not ApplicableSED Qualification Status : Not ApplicableSED Ownership status : Not ApplicableSED Type : Not ApplicableForeign Key Identifier : Not ApplicableForeign Reset Key Identifier : Not ApplicableOriginal Factory State(OFS) : FalseDrive Exposed to OS : FalseSanitize Erase Support : TrueSanitize Lock Freeze Support : TrueSanitize Lock Anti-Freeze Support : TrueSanitize Lock Setting : NonePower On Hours : 3425Usage Remaining : 100 percentEstimated Life Remaining : Not ApplicableSSD Smart Trip Wearout : False56 Day Warning Present : FalseDrive Unique ID : 8B78DE7726E67D49Drive SKU Number : Not ApplicableDrive Part Number : Not ApplicableLast Failure Reason : No Failure----------------------------------------------------------------Device Phy Information----------------------------------------------------------------Phy #0Negotiated Physical Link Rate : 6 GbpsNegotiated Logical Link Rate : 6 GbpsMaximum Link Rate : 6 Gbps----------------------------------------------------------------Device Error Counters----------------------------------------------------------------Aborted Commands : 0Bad Target Errors : 0Ecc Recovered Read Errors : 0Failed Read Recovers : 0Failed Write Recovers : 0Format Errors : 0Hardware Errors : 0Hard Read Errors : 0Hard Write Errors : 0Hot Plug Count : 0Media Failures : 0Not Ready Errors : 0Other Time Out Errors : 0Predictive Failures : 0Retry Recovered Read Errors : 0Retry Recovered Write Errors : 0Scsi Bus Faults : 0Sectors Reads : 6974590021Sectors Written : 27616948749Service Hours : 3423Device #5Device is a Hard driveState : OnlineDrive has stale RIS data : FalseBlock Size : 512 BytesPhysical Block Size : 4K BytesTransfer Speed : SAS 12.0 Gb/sReported Channel,Device(T:L) : 0,5(5:0)Reported Location : Direct Attached, Slot 5(Connector 1:CN1)Array : 1Vendor : TOSHIBAModel : **********Firmware : ****Serial number : **********World-wide name : **********Reserved Size : 32768 KBUsed Size : 2289240 MBUnused Size : 0 MBTotal Size : 2289272 MBWrite Cache : Disabled (write-through)S.M.A.R.T. : NoS.M.A.R.T. warnings : 0SSD : NoBoot Type : NoneRotational Speed : 10500 RPMCurrent Temperature : 31 deg CMaximum Temperature : 34 deg CThreshold Temperature : 65 deg CPHY Count : 2Drive Configuration Type : DataDrive Exposed to OS : FalseSanitize Erase Support : TrueSanitize Lock Freeze Support : FalseSanitize Lock Anti-Freeze Support : FalseSanitize Lock Setting : NoneDrive Unique ID : **********Drive SKU Number : Not ApplicableDrive Part Number : Not ApplicableLast Failure Reason : No Failure----------------------------------------------------------------Device Phy Information----------------------------------------------------------------Phy #0Negotiated Physical Link Rate : 12 GbpsNegotiated Logical Link Rate : 12 GbpsMaximum Link Rate : 12 GbpsPhy #1Negotiated Physical Link Rate : unknownNegotiated Logical Link Rate : unknownMaximum Link Rate : 12 Gbps----------------------------------------------------------------Device Error Counters----------------------------------------------------------------Aborted Commands : 0Bad Target Errors : 0Ecc Recovered Read Errors : 0Failed Read Recovers : 0Failed Write Recovers : 0Format Errors : 0Hardware Errors : 0Hard Read Errors : 0Hard Write Errors : 0Hot Plug Count : 0Media Failures : 0Not Ready Errors : 0Other Time Out Errors : 0Predictive Failures : 0Retry Recovered Read Errors : 0Retry Recovered Write Errors : 0Scsi Bus Faults : 6Sectors Reads : 46358447399Sectors Written : 441995486Service Hours : 3423Device #6Device is a Hard driveState : OnlineDrive has stale RIS data : FalseBlock Size : 512 BytesPhysical Block Size : 4K BytesTransfer Speed : SAS 12.0 Gb/sReported Channel,Device(T:L) : 0,6(6:0)Reported Location : Direct Attached, Slot 6(Connector 1:CN1)Array : 1Vendor : TOSHIBAModel : **********Firmware : 1403Serial number : **********World-wide name : **********Reserved Size : 32768 KBUsed Size : 2289240 MBUnused Size : 0 MBTotal Size : 2289272 MBWrite Cache : Disabled (write-through)S.M.A.R.T. : NoS.M.A.R.T. warnings : 0SSD : NoBoot Type : NoneRotational Speed : 10500 RPMCurrent Temperature : 31 deg CMaximum Temperature : 34 deg CThreshold Temperature : 65 deg CPHY Count : 2Drive Configuration Type : DataDrive Exposed to OS : FalseSanitize Erase Support : TrueSanitize Lock Freeze Support : FalseSanitize Lock Anti-Freeze Support : FalseSanitize Lock Setting : NoneDrive Unique ID : **********Drive SKU Number : Not ApplicableDrive Part Number : Not ApplicableLast Failure Reason : No Failure----------------------------------------------------------------Device Phy Information----------------------------------------------------------------Phy #0Negotiated Physical Link Rate : 12 GbpsNegotiated Logical Link Rate : 12 GbpsMaximum Link Rate : 12 GbpsPhy #1Negotiated Physical Link Rate : unknownNegotiated Logical Link Rate : unknownMaximum Link Rate : 12 Gbps----------------------------------------------------------------Device Error Counters----------------------------------------------------------------Aborted Commands : 0Bad Target Errors : 0Ecc Recovered Read Errors : 0Failed Read Recovers : 0Failed Write Recovers : 0Format Errors : 0Hardware Errors : 0Hard Read Errors : 0Hard Write Errors : 0Hot Plug Count : 0Media Failures : 0Not Ready Errors : 0Other Time Out Errors : 0Predictive Failures : 0Retry Recovered Read Errors : 0Retry Recovered Write Errors : 0Scsi Bus Faults : 6Sectors Reads : 42869411170Sectors Written : 3891363294Service Hours : 3423Channel #2:Device #0Device is an Enclosure Services DeviceReported Channel,Device(T:L) : 2,0(0:0)Enclosure ID : 0Enclosure Logical Identifier : **********Type : SES2Vendor : INSPURModel : Virtual SGPIOFirmware : 4.11Status of Enclosure Services DeviceSpeaker status : Not AvailableCommand 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架构的不同,不要复制错文件!
执行命令和Windows一样,详情参考Windows的操作。
3.CentOS7
给了个rpm包
,可以拷贝到服务器上安装。
三、配置RAID属性
上面讲的是查看RAID属性,其实配置也是支持的,只不过查询就算输错命令也没关系,配置可能破坏数据
,不建议小白在生产服务器上测试。
像设置RAID工作模式
、创建删除
RAID都是支持的,详情不讲了,找供应商提供文档,按照文档一步步来。
总结
1、还蛮简单的,有问题可以留言一起讨论