https://support.huawei.com/enterprise/zh/doc/EDOC1100048779/a5f68ac3
查询RAID控制卡的基本信息。
arcconf list controller_id
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
无
# 查询ID为1的控制器属性。
[root@localhost ~]# arcconf list 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller ID : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
Controller 1: : Optimal, Slot 1, Mixed, MSCC Adaptec SmartRAID 3152-8i, 7A45F30016A, 50000D1E00189F30
----------------------------------------------------------------------
Array Information
----------------------------------------------------------------------
Array ID : Status (Interface, TotalSize MB, FreeSpace MB)
----------------------------------------------------------------------
Array 0 : Ok (SATA SSD, 305152 MB, 0 MB)
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical ID : Status (RAID, Interface, Size MB) Name
----------------------------------------------------------------------
Logical 0 : Optimal (0, Data, 305190 MB) LogicalDrv 0
----------------------------------------------------------------------
maxCache information
----------------------------------------------------------------------
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
Physical ID : State (Interface, BlockSize, SizeMB, Vendor, Model, Type) WWN, [Location]
----------------------------------------------------------------------
Physical 0,0 : Online (SATA, 512 Bytes, 152627MB, ATA , INTEL SSDSA2BW16, Solid State Drive) 30000D1E00189F30, [Enclosure Direct Attached, Slot 0(Connector 0:CN0)]
Physical 0,1 : Online (SATA, 512 Bytes, 1526185MB, ATA , SSDSC2BB016T7H , Solid State Drive) 30000D1E00189F32, [Enclosure Direct Attached, Slot 1(Connector 0:CN0)]
Physical 0,4 : Ready (SAS, 512 Bytes, 1716957MB, TOSHIBA , AL14SEB18EQ , Hard Drive) 500003969812C842, [Enclosure Direct Attached, Slot 4(Connector 1:CN1)]
Physical 0,5 : Ready (SAS, 512 Bytes, 858483MB, HGST , HUC101890CSS200 , Hard Drive) 5000CCA0361C09C1, [Enclosure Direct Attached, Slot 5(Connector 1:CN1)]
Physical 0,6 : Ready (SATA, 512 Bytes, 457862MB, ATA , MTFDDAK480TDC-1A, Solid State Drive) 30000D1E00189F39, [Enclosure Direct Attached, Slot 6(Connector 1:CN1)]
Physical 0,7 : Ready (SATA, 512 Bytes, 915715MB, ATA , MTFDDAK960TDC-1A, Solid State Drive) 30000D1E00189F3B, [Enclosure Direct Attached, Slot 7(Connector 1:CN1)]
Physical 2,2 : Ready (SES2, Not Applicable, Not Applicable, MSCC , Virtual SGPIO, Enclosure Services Device) 50000D1E00189F30, [Not Applicable]
Command completed successfully.
查询RAID控制卡的基本信息。
命令格式 |
功能 |
---|---|
arcconf getconfig controller_id AD |
查询适配器信息 |
arcconf getconfig controller_id LD |
查询所有LD的信息 |
arcconf getconfig controller_id LD LD_id |
查询特定LD的信息 |
arcconf getconfig controller_id PD |
查询所有物理硬盘的信息 |
arcconf getconfig controller_id PD physical_id |
查询特定物理硬盘的信息 |
arcconf getconfig controller_id AR |
查询所有Array的信息 |
arcconf getconfig controller_id AR AR_id |
查询特定Array的信息 |
arcconf getconfig controller_id MC |
查询maxCached的信息 |
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
LD_id |
LD的ID |
– |
physical_id |
硬盘的physical编号 |
– |
slot_id |
物理硬盘槽位编号 |
– |
AR_id |
Array的ID |
– |
无
# 查询所有Array的信息。
[root@localhost ~]# ./arcconf getconfig 1 ar Controllers found: 1 ---------------------------------------------------------------------- Array Information ---------------------------------------------------------------------- Array Number 0 Name : A Status : Ok Interface : SATA SSD Total Size : 305152 MB Unused Size : 204800 MB Block Size : 512 Bytes Array Utilization : 32.77% Used, 67.23% Unused Type : Data Transformation Status : Not Applicable Spare Rebuild Mode : Dedicated SSD I/O Bypass : Disabled -------------------------------------------------------- Array Logical Device Information -------------------------------------------------------- Logical 0 : Optimal (1, Data, 49999 MB) LogicalDrv 0 -------------------------------------------------------- Array Physical Device Information -------------------------------------------------------- Device 0 : Present (915715MB, SATA, SSD, Channel:0, Device:0) 18031A983BCA Device 1 : Present (152627MB, SATA, SSD, Channel:0, Device:1) CVPR1461036N160DGN -------------------------------------------------------- Array Hotspare Information -------------------------------------------------------- Device 3 : Dedicated Hot-Spare (457862MB, SATA, SSD, Channel:0, Device:3) 2029E247 Command completed successfully. [root@localhost ~]#
# 查询所有LD的基本信息。
[root@localhost ~]# ./arcconf getconfig 1 ld Controllers found: 1 ---------------------------------------------------------------------- Logical device information ---------------------------------------------------------------------- Logical Device number 0 Logical Device name : LogicalDrv 0 Disk Name : /dev/sdd Block Size of member drives : 512 Bytes Array : 0 RAID level : 1 Status of Logical Device : Optimal Size : 49999 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 : 12549 Caching : Enabled Mount Points : Not Applicable LD Acceleration Method : Controller Cache Volume Unique Identifier : 600508B1001C329D07A9BDA053FF081B -------------------------------------------------------- Array Physical Device Information -------------------------------------------------------- Device 0 : Present (915715MB, SATA, SSD, Channel:0, Device:0) 18031A983BCA Device 1 : Present (152627MB, SATA, SSD, Channel:0, Device:1) CVPR1461036N160DGN -------------------------------------------------------- Array Hotspare Information -------------------------------------------------------- Device 3 : Dedicated Hot-Spare (457862MB, SATA, SSD, Channel:0, Device:3) 2029E247 Command completed successfully. [root@localhost ~]#
查询RAID控制卡的FW和驱动的版本信息。
arcconf getversion
# 查询RAID控制卡FW和驱动的版本信息。
[root@localhost ~]# ./arcconf getversion Controllers found: 1 Controller #1 ============== Firmware : 1.43[0] (0) Driver : 0.9.14-100 (0) Command completed successfully. [root@localhost ~]#
通过该命令可以升级RAID控制卡的Firmware。
arcconf romupdate controller_id fwfile
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
RAID控制卡的ID |
- |
fwfile |
Firmware升级所需的.bin文件名 |
- |
# 升级RAID控制卡FW。
[root@linux 2.93]# arcconf romupdate 1 SmartFWx100.bin Controllers found: 1 Are you sure you want to continue? Press y, then ENTER to continue or press ENTER to abort: y Updating controller 1 firmware... Succeeded You must restart the system for firmware updates to take effect. Command completed successfully.
设置RAID控制卡工作模式。
RAID控制卡工作模式默认为“Mixed”。
arcconf setcontrollermode controller_id mode
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
RAID控制卡的ID |
– |
mode |
RAID控制卡工作模式 |
|
无
# 设置RAID控制卡工作模式为“Mixed”。
[root@localhost ~]# ./arcconf setcontrollermode 1 5
Controllers found: 1
Command completed successfully.
# 查询RAID控制卡工作模式。
[root@localhost ~]# arcconf getconfig 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Status : Optimal
Controller Mode : Mixed
Channel description : SCSI
Controller Model : MSCC Adaptec SmartRAID 3152-8i
Controller Serial Number : 7A45F30016A
Controller World Wide Name : 50000D1E00189F30
Physical Slot : 1
Temperature : 48 C/ 118 F (Normal)
Host bus type : PCIe 3.0
Host bus speed : 7880 MBps
Host bus link width : 8 bit(s)/link(s)
PCI Address (Bus:Device:Function) : 0:3b: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
Statistics data collection mode : Disabled
Post Prompt Timeout : 0 seconds
Boot Controller : False
Primary Boot Volume : None
Secondary Boot Volume : ADDD8BE3B85736315B553DAF0D36B31E
Driver Name : smartpqi
Driver Supports SSD I/O Bypass : Yes
Manufacturing Part Number : Not Applicable
Manufacturing Spare Part Number : Not Applicable
Manufacturing Wellness Log : Not Applicable
NVRAM Checksum Status : Passed
Sanitize Lock Setting : None
......
回显信息中的“Controller Mode”即为RAID控制卡的工作模式。
查询所有适用arcconf工具的RAID控制卡。
arcconf list
# 查询所有适用arcconf工具的RAID控制卡。
[root@localhost ~]# ./arcconf list Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller ID : Status, Slot, Mode, Name, SerialNumber, WWN ---------------------------------------------------------------------- Controller 1: : Optimal, Slot 1, Mixed, MSCC Adaptec SmartRAID 3152-8i, 7A45F30016A, 50000D1E00189F30 Command completed successfully. [root@localhost ~]#
通过该命令可以将PD或LD设置成启动设备,其中,PD在RAID控制卡的工作模式为HBA或MIX时生效,LD在RAID控制卡的工作模式为MIX或RAID时生效。
arcconf setboot controller_id logicaldrive LD_id type boot_type
arcconf setboot controller_id device physical_id type boot_type
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
LD_id |
LD的ID |
– |
boot_type |
启动项的类型 |
Primary :将LD或PD设置为第一启动设备。 Secondary :将LD或PD设置为第二启动设备。 |
physical_id |
硬盘的physical ID |
– |
# 设置LD0为第一启动设备。
[root@localhost ~]# arcconf setboot 1 logicaldrive 0 type primary Controllers found: 1 Do you wish to change the boot type of the selected device. Press y, then ENTER to continue or press ENTER to abort: y Command completed successfully. [root@localhost ~]#
设置热备盘的模式。
arcconf setarrayparam controller_id array_id sparetype mode
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
array_id |
array的ID |
– |
mode |
热备盘的类型 |
|
# 设置Array的热备盘模式为:Dedicated。
[root@localhost ~]# arcconf setarrayparam 1 0 sparetype 1 Controllers found: 1 Command completed successfully. [root@localhost ~]#
点亮、熄灭控制器的硬盘定位指示灯。
命令 |
功能 |
---|---|
arcconf identify controller_id device physical_id time time |
对特定的物理硬盘进行点灯,time为可选项,表示点灯持续的时间,单位为秒。 |
arcconf identify controller_id device physical_id |
对特定的物理硬盘持续点灯,按任意键会停止点灯。 |
arcconf identify controller_id all time time |
对所有的物理硬盘进行点灯,time为可选项,表示点灯持续的时间,单位为秒。 |
arcconf identify controller_id all stop |
对所有的物理硬盘停止点灯 |
arcconf identify controller_id logicaldrive LD_id time time |
对特定的LD进行点灯,time为可选项,表示点灯持续的时间,单位为秒。 |
arcconf identify controller_id logicaldrive LD_id |
对特定的LD停止点灯 |
arcconf identify controller_id array array_id time time |
对特定的Array进行点灯,time为可选项,表示点灯持续的时间,单位为秒。 |
arcconf identify controller_id array array_id |
对特定的Array停止点灯 |
arcconf identify controller_id maxcache time time |
对maxCache进行点灯,time为可选项,表示点灯持续的时间,单位为秒。 |
arcconf identify controller_id maxcache |
对maxCache停止点灯 |
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
LD_id |
LD的ID |
– |
physical_id |
硬盘的physical ID |
– |
time |
硬盘指示灯点亮的时间。 |
为可选项,表示点灯持续的时间,单位为秒。 |
array_id |
array的ID |
– |
# 对slot 0硬盘的停止指示灯。
[root@localhost ~]# ./arcconf identify 1 device 0 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.
# 设置所有的盘进行点灯60秒。
[root@localhost ~]# ./arcconf identify 1 all time 60
Controllers found: 1
Only devices managed by an enclosure processor may be identified
Command completed successfully.
# 熄灭所有的硬盘指示灯。
[root@localhost ~]# ./arcconf identify 1 all stop
Controllers found: 1
Command completed successfully.
修改LD的条带大小。
arcconf modify controller_id from LD_id to stripesize size LD_size LD_level physical_id physical_id......
为准确修改LD的条带大小,执行该命令前,请提前确认并正确输入LD的容量大小,级别以及成员盘的physical ID。
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
size |
修改后的条带大小 |
16/32/64/128/256/512/1024,单位为KB |
LD_size |
LD的容量大小 |
单位为MB |
LD_level |
LD的RAID级别 |
– |
physical_id |
LD成员盘的physical ID |
– |
# 将LD的条带大小设置为256KB。
[root@localhost ~]# arcconf modify 1 from 0 to stripesize 256 49999 1 0 0 0 1
Controllers found: 1
Reconfiguration of a logical device is a long process. Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y
Reconfiguring logical device: LogicalDrv 0
Command completed successfully.
在Virtual Drives未占用成员硬盘全部容量时,可通过调整Virtual Drives的可用空间,扩大Virtual Drives容量。
arcconf modify controller_id from LD_id to LD_size LD_level physical_id physical_id......
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
LD_id |
LD的ID |
– |
LD_size |
扩容后LD的容量大小 |
单位为MB |
LD_level |
LD的RAID级别 |
– |
physical_id |
LD成员盘的physical ID |
– |
# 将LD的容量扩展为89999MB。
[root@localhost ~]# arcconf modify 1 from 0 to 89999 1 0 0 0 1
Controllers found: 1
Reconfiguration of a logical device is a long process. Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y
Reconfiguring logical device: LogicalDrv 0
Command completed successfully.
在已存在的RAID中添加新硬盘,扩大RAID容量。
通过增加新盘进行扩容分两步进行,先给Array添加硬盘,再进行扩容。
arcconf modify controller_id array array_id expand physical_id physical_id......
arcconf modify controller_id from LD_id to LD_size LD_level physical_id physical_id......
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
array_id |
Array的id |
– |
LD_size |
扩容后的RAID容量 |
– |
physical_id |
成员盘的physical ID |
– |
# 为Array添加硬盘。
[root@localhost ~]# arcconf modify 1 array 0 expand 0 2
Controllers found: 1
This will modify the array 0.
Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y
Modifying array: 0
Command completed successfully.
# 对LD进行扩容。
[root@localhost ~]# arcconf modify 1 from 0 to 109996 0 0 0 0 1 0 2 Controllers found: 1 Reconfiguration of a logical device is a long process. Are you sure you want to continue? Press y, then ENTER to continue or press ENTER to abort: y Reconfiguring logical device: LogicalDrv 0 Command completed successfully. [root@localhost ~]#
对RAID级别进行迁移。
arcconf modify controller_id from LD_id to LD_size LD_level physical_id physical_id......
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
LD_id |
LD的ID |
– |
LD_size |
LD迁移前的容量 |
– |
LD_level |
迁移后的LD级别 |
– |
physical_id |
LD成员盘的physical ID |
– |
#从RAID 0迁移到RAID 5。
[root@localhost ~]# arcconf modify 1 from 0 to 305190 5 0 0 0 1 0 6 0 7
Controllers found: 1
Reconfiguration of a logical device is a long process. Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y
Reconfiguring logical device: LogicalDrv 0
Command completed successfully.
# 查询迁移进程。
[root@localhost ~]# arcconf getconfig 1 ld
Controllers found: 1
^[[A----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical Device number 0
Logical Device name : LogicalDrv 0
Disk Name : /dev/sda
Block Size of member drives : 512 Bytes
Array : 0
RAID level : 5
Status of Logical Device : Optimal(Background Parity Initialization : 51 %)
Parity Initialization Status : In Progress
Size : 305190 MB
Stripe-unit size : 256 KB
Full Stripe Size : 768 KB
Interface Type : SATA SSD
Device Type : Data
Boot Type : None
Heads : 255
Sectors Per Track : 32
Cylinders : 65535
Caching : Enabled
Mount Points : Not Applicable
LD Acceleration Method : Controller Cache
Volume Unique Identifier : 600508B1001C7B7C4BBF3ACB01F885BC
--------------------------------------------------------
Array Physical Device Information
--------------------------------------------------------
Device 0 : Present (152627MB, SATA, SSD, Channel:0, Device:0) CVPR1461036N160DGN
Device 1 : Present (1526185MB, SATA, SSD, Channel:0, Device:1) PHDV624000FL1P6EGN
Device 6 : Present (457862MB, SATA, SSD, Channel:0, Device:6) 17501B83246B
Device 7 : Present (915715MB, SATA, SSD, Channel:0, Device:7) 18031A983BCA
Command completed successfully.
为LD设置热备盘。
arcconf setstate controller_id device physical_id hsp array array_id sparetype type
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
physical_id |
硬盘的physical ID |
– |
array_id |
Array的ID |
– |
type |
热备盘的类型 |
1 : Dedicated 2 : Autoreplace 说明:
热备盘相关介绍请参见硬盘热备份。 |
# 为LD设置Autoreplace热备盘。
[root@localhost ~]# arcconf setstate 1 device 0 3 hsp array 0 sparetype 2 Controllers found: 1 Any existing hot-spare drives of a different sparetype will be removed. The physical drive used for this operation is connected to Mixed Mode(Smart HBA) connector. Using it will not allow operating system to use the drive contents. Are you sure you want to continue? Press y, then ENTER to continue or press ENTER to abort: y Command completed successfully. [root@localhost ~]#
设置后台任务优先级并使当前任务优先级生效。
后台任务包括后台初始化、RAID重构、迁移、扩容等。
arcconf setpriority controller_id priority current
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
RAID控制卡的ID |
– |
priority |
后台任务优先级 |
|
无
# 设置后台任务优先级为“high”并生效。
domino:~# ./arcconf setpriority 1 high current
Controllers found: 1
Command completed successfully.
使能和关闭LD的cache功能。
arcconf setcache controller_id logicaldrive LD_id con
arcconf setcache controller_id logicaldrive LD_id coff
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
LD_id |
LD的ID |
– |
# 使能LD0的cache功能。
[root@localhost ~]# arcconf setcache 1 logicaldrive 0 con Controllers found: 1 Cache mode is already set to Enabled. Command aborted. [root@localhost ~]#
# 关闭LD0的cache功能。
[root@localhost ~]# arcconf setcache 1 logicaldrive 0 coff Controllers found: 1 Command completed successfully. [root@localhost ~]#
设置后台一致性校验的并行个数。
arcconf consistencycheck controller_id parallelcount parallelcount_number
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
parallelcount_number |
后台一致性校验的并行个数 |
– |
# 设置后台一致性校验的并行个数为4。
[root@localhost ~]# arcconf consistencycheck 1 parallelcount 4 Controllers found: 1 Command completed successfully. [root@localhost ~]# CONSISTENCYCHECK <Controller#> PARALLELCOUNT <Count>
创建、删除RAID。
arcconf create controller_id logicaldrive option size level physical_id physical_id......
arcconf delete controller_id logicaldrive ld_id noprompt
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
RAID控制卡ID |
请参照查询RAID控制卡的基本信息获取RAID控制卡的controller_id。 controller_id从1开始排序,如果有多张RAID控制卡,将按照1,2,3...的方式进行排序。 |
option |
要创建的LD的相关属性,具体请参见表11-38。 |
– |
size |
LD的容量大小。 |
单位为MB,设置时只输入数字即可,如数值设为“1024”,则表示虚拟磁盘的容量为1024MB。 如果设置为“MAX”,表示使用硬盘的所有容量创建虚拟磁盘。 |
level |
要创建的LD的级别。 |
支持的RAID级别请参照支持多种RAID级别。 |
physical_id |
LD成员盘的physical ID |
请参照查询物理硬盘、Array、LD、maxCache等相关信息获取物理硬盘的ID。 |
ld_id |
虚拟磁盘ID |
请参照查询物理硬盘、Array、LD、maxCache等相关信息获取虚拟磁盘的ID。 |
可设置属性 |
说明 |
取值 |
---|---|---|
Stripesize |
LD的条带大小 |
16/32/64/128/256/512/1024 |
Legs |
LD的NPG,只在创建RAID 50和RAID 60时可设置。 |
– |
Name |
LD的名称。 |
– |
Method |
LD的初始化的方式。 |
|
Wcache |
即IO Bypass,只在创建maxCache时可设置。 |
|
LDcache |
即Controller Cache。 |
– |
SSDOverProvisioningOptimization |
SSD的特性。
|
说明:
|
DataLD |
被加速的LD的ID。 |
– |
无
# 创建RAID 50。
[root@localhost ~]# arcconf create 1 logicaldrive stripesize 256 legs 2 name vd1 method default ldcache lon MAX 50 0 0 0 1 0 2 0 3 0 4 0 5
Controllers found: 1
Space will be wasted as devices specified are of different sizes.
Do you want to add a logical device to the configuration?
Press y, then ENTER to continue or press ENTER to abort: y
Creating logical device: vd1
Command completed successfully.
# 删除ID为0的虚拟磁盘。
[root@localhost ~]# arcconf delete 1 logicaldrive 0 noprompt
Controllers found: 1
WARNING: Deleting this logical device will automatically delete array 0 because it is the only logical device present on that array.
All data in logical device 0 will be lost.
Deleting: logical device 0 ("Logical Drive 1")
arr
Command completed successfully.
创建MaxCache。
arcconf create controller_id maxcache wcache policy datald LD_id size level physical_id physical_id......
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
policy |
maxCache的加速策略 |
wt:设置不为LD进行加速 wb:设置为LD进行加速 |
LD_id |
被加速的LD的ID |
– |
size |
maxCache 的容量 |
– |
level |
maxCache的级别 |
0/1/10/5 |
physical_id |
硬盘的physical ID |
– |
# 创建级别为RAID 1的MaxCache。
[root@localhost ~]# arcconf create 1 maxcache wcache wb datald 0 17000 1 0 0 0 1 Controllers found: 1 Space will be wasted as devices specified are of different sizes. After maxCache creation, the following operations are not allowed on the controller. MODIFY on logical device and Array SPLITMIRROR on array CACHERATIO on controller Do you want to add a logical device to the configuration? Press y, then ENTER to continue or press ENTER to abort: y Creating maxCache Command completed successfully. [root@localhost ~]#
设置RAID控制卡的读写比例。
arcconf setcache controller_id cacheratio read write
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
read |
读cache的比例 |
0~100 |
write |
写cache的比例 |
0~100 |
读cache的比例与写cache的比例总和应为100。
# 设置读cache的比例与写cache的比例各为50%。
[root@localhost ~]# arcconf setcache 1 cacheratio 50 50 Controllers found: 1 Command completed successfully. [root@localhost ~]#
该命令允许在没有电容的状态下使用控制器cache。
在没有电容的状态下使用控制器cache时,一旦掉电,会导致数据丢失,请谨慎使用该命令。
arcconf setcache controller_id nobatterywritecache enable
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
# 设置无电容状态下使用cache。
[root@localhost ~]# arcconf setcache 1 nobatterywritecache enable Controllers found: 1 WARNING : Enabling write caching on a cache module without a fully charged battery or capacitor could cause data loss in the event of a power failure. Are you sure you want to continue? Press y, then ENTER to continue or press ENTER to abort: y Command completed successfully. [root@localhost ~]#
使能一致性校验的修复策略。
arcconf consistencycheck controller_id inconsistencyrepairpolicy enable
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
# 使能一致性校验的修复策略。
[root@localhost ~]# arcconf consistencycheck 1 inconsistencyrepairpolicy enable Controllers found: 1 Command completed successfully. [root@localhost ~]#
使能一致性校验生成调试信息并发出通知。
arcconf consistencycheck controller_id eventnotify enable
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
# 使能一致性校验生成调试信息并发出通知。
[root@localhost ~]# arcconf consistencycheck 1 eventnotify enable Controllers found: 1 Command completed successfully. [root@localhost ~]# CONSISTENCYCHECK <Controller#> EVENTNOTIFY <Enable | Disable>
关闭一致性校验功能。
arcconf consistencycheck controller_id off
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
– |
# 关闭一致性校验功能。
[root@localhost ~]# arcconf consistencycheck 1 off
Controllers found: 1
Command completed successfully.
CONSISTENCYCHECK <Controller#> <On [Delay]|Off> [noprompt] [nologs]
查询、设置硬盘写Cache策略。
arcconf getconfig controller_id ad
arcconf setcache controller_id drivewritecachepolicy drivetype cachepolicy drivetype cachepolicy...
参数 |
参数说明 |
取值 |
---|---|---|
controller_id |
硬盘所在RAID控制卡的ID |
- |
drivetype |
要设置写Cache策略的硬盘类型 |
|
cachepolicy |
硬盘写Cache策略 |
|
# 设置Configured状态的硬盘Cache写策略为Enabled,设置Unconfigured状态的硬盘Cache写策略为Disabled。
[root@localhost ~]# ./arcconf setcache 1 drivewritecachepolicy Configured 1 Unconfigured 2
Controllers found: 1
Enabling controller drive write cache can increase write performance but risks losing the data in the cache on sudden loss.
Command completed successfully.
# 查询当前的硬盘写Cache策略
[root@localhost ~]# ./arcconf getconfig 1 ad
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Statue : Optimal
Controller Mode :Mixed
Channle description :SCSI
...
----------------------------------------------------------------------
Physical Drive Write Cache Policy Information
----------------------------------------------------------------------
Configured Drives :Enabled
Unconfigured Drives :Disabled
HBA Drives :Default
----------------------------------------------------------------------
...
收集RAID控制卡的Firmware日志。
arcconf SAVESUPPORTARCHIVE
# 收集RAID控制卡的Firmware日志。
[root@linux /]# arcconf SAVESUPPORTARCHIVE Controllers found: 1 Usage: SAVESUPPORTARCHIVE [Path] [Firmware|GUI|Arcconf|Storlib|Basecode|Redfish] Example: SAVESUPPORTARCHIVE C:\Adaptec\maxView Firmware Example: SAVESUPPORTARCHIVE /var/log/maxView Storlib Example: SAVESUPPORTARCHIVE Example: SAVESUPPORTARCHIVE . =================================================================================== Saves all the logs Path : directory other than default Firmware : saves Firmware logs GUI : saves GUI logs Arcconf : saves Arcconf logs StorLib : saves StorLib logs Basecode : saves Basecode logs Redfish : saves Redfish logs The path is not specified, Using the default. The logs are saved in relevant folders in /var/log/Support Command completed successfully.