查看所有磁盘
racadm -r 10.253.193.75 -u root -p xx storage get pdisks
Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1
Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1
Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1
Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1
查看所有磁盘详细信息racadm -r 10.253.193.75 -u root -p xx storage get pdisks -o
Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1
Status = Ok
DeviceDescription = Disk 5 in Backplane 1 of Integrated RAID Controller 1
RollupStatus = Ok
Name = Physical Disk 0:1:5
State = Online
OperationState = Not Applicable
PowerStatus = Spun-Up
Size = 1117.25 GB
查看raid名称
racadm -r 10.253.193.75 -u root -p xx storage get vdisks
Disk.Virtual.0:RAID.Integrated.1-1
Disk.Virtual.1:RAID.Integrated.1-1
查看raid详细信息、大小
racadm -r 10.253.193.75 -u root -p xx storage get vdisks -o
Disk.Virtual.0:RAID.Integrated.1-1
Status = Ok
DeviceDescription = Virtual Disk 0 on Integrated RAID Controller 1
Name = Virtual Disk 0
RollupStatus = Ok
State = Online
OperationalState = Not applicable
Layout = Raid-1
Size = 1117.25 GB
SpanDepth = 1
AvailableProtocols = SAS
MediaType = HDD
ReadPolicy = Read Ahead
WritePolicy = Write Back
StripeSize = 64K
DiskCachePolicy = Default
BadBlocksFound = NO
Secured = NO
RemainingRedundancy = 1
EnhancedCache = Not Applicable
T10PIStatus = Disabled
BlockSizeInBytes = 512
查看raid卡型号
注释: 例如H330或者H770
racadm -r 10.253.193.75 -u root -p xx storage get controllers -o
RAID.Integrated.1-1
Status = Ok
DeviceDescription = Integrated RAID Controller 1
RollupStatus = Ok
Name = PERC H730P Mini (Embedded)
删除raid
注释:raid的名称从"查看raid名称" 中得到
racadm -r 10.253.193.75 -u root -p xx storage deletevd:Disk.Virtual.1:RAID.Integrated.1-1
把磁盘转换成非raid(直通)模式
注释: non+raid 如果拆完raid。不把磁盘格式转化为直通模式,磁盘是不显示的
racadm -r 10.253.193.75 -u root -p xx storage converttononraid:Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1
racadm -r 10.253.193.75 -u root -p xx storage converttononraid:Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1
racadm -r 10.253.193.75 -u root -p xx storage converttononraid:Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1
racadm -r 10.253.193.75 -u root -p xx storage converttononraid:Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1
把磁盘转换成raid模式
注释: 再配置raid之前,需要先把磁盘转化为raid模式,才能配置raid
racadm -r 10.253.193.75 -u root -p xx storage converttoraid:Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1
racadm -r 10.253.193.75 -u root -p xx storage converttoraid:Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1
racadm -r 10.253.193.75 -u root -p xx storage converttoraid:Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1
racadm -r 10.253.193.75 -u root -p xx storage converttoraid:Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1
配置raid(2,3,4,5磁盘,raid10)
注释: r5 代表raid模式
RAID.Integrated.1-1 名称即从 "查看job名称"得出
racadm -r 10.253.193.75 -u root -p xx storage createvd:RAID.Integrated.1-1 -rl r5 -pdkey:Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.
查看job名称
注释: 什么叫job,就是你操作的这个模块具体名称
racadm -r 10.253.193.75 -u root -p xx storage get controllers
RAID.Integrated.1-1
AHCI.Embedded.1-1
AHCI.Embedded.2-1
查看job号
注释: RAID.Integrated.1-1 名称即从 "查看job名称" 中得出来的
racadm -r 10.253.193.75 -u root -p xx jobqueue create RAID.Integrated.1-1 -s TIME_NOW --realtime
提交job
注释: 提交完job的,你所做的方可生效
racadm -r 10.253.193.75 -u root -p xx jobqueue view -i xxxx