ResourceDefinition
uris
/redfish/v1/Systems/system_id/Storages/storage_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 指定存储资源模型的OData描述信息 |
| @odata.id | string | true | - | 指定存储资源的访问路径 |
| @odata.type | string | true | - | 指定存储资源的类型 |
| Id | string | true | - | 指定存储资源的ID |
| Name | string | true | - | 指定存储资源的名称 |
| StorageControllers@odata.count | number | true | - | 存储控制器个数 |
| MemberId | string | true | - | 指定控制器标识 |
| @odata.id | string | true | - | 指定存储控制器的访问路径 |
| @odata.type | string | true | - | 指定存储控制器的资源类型 |
| Name | string | true | - | 指定存储控制器的名称 |
| Description | string | true | - | 指定存储控制器的描述信息 |
| Status | object | true | - | 指定存储控制器的状态, 包括: ● State:存储控制器使能状态 ● Health:存储控制器健康状态 ● Severity:存储控制器的自定义健康状态 ● FaultDetails:指定存储控制器的故障信息 |
| SpeedGbps | number | true | - | 指定存储控制器的接口速率 |
| SerialNumber | string | true | - | 指定存储控制器的序列号 |
| FirmwareVersion | string | true | - | 指定存储控制器的固件版本 |
| SupportedDeviceProtocols | array | true | - | 指定存储控制器支持的协议类型 ● SPI ● PCIe ● AHCI ● UHCI ● SAS ● SATA ● USB ● NVMe ● FC ● iSCSI ● FCoE ● NVMeOverFabrics ● SMB ● NFSv3 ● NFSv4 ● HTTP ● HTTPS ● FTP ● SFTP |
| Manufacturer | string | true | - | 指定存储控制器生产厂商 |
| Model | string | true | - | 指定存储控制器型号 |
| CacheSummary | object | true | - | 指定存储控制器缓存概要信息 |
| TotalCacheSizeMiB | number | true | - | 指定存储控制器缓存大小 |
| SupportedRAIDTypes | array | true | - | 指定存储控制器支持的RAID级别 ● RAID0 ● RAID1 ● RAID5 ● RAID6 ● RAID10 ● RAID50 ● RAID60 ● RAID1(ADM) ● RAID10(ADM) ● RAID1Triple ● RAID10Triple |
| AssociatedCard | object | true | - | 指定存储控制器所关联的卡的资源导航 |
| Mode | string | false | - | 指定存储控制器的模式 ● RAID ● HBA ● JBOD ● Mixed |
| CachePinnedState | boolean | true | - | 指定存储驱动Cache Pinned使能状态 |
| SupportedRAIDLevels | array | true | - | 指定存储控制器支持的RAID级别 ● RAID0 ● RAID1 ● RAID5 ● RAID6 ● RAID10 ● RAID50 ● RAID60 ● RAID1(ADM) ● RAID10(ADM) ● RAID1Triple ● RAID10Triple |
| VolumeSupported | boolean | true | - | 指定存储控制器是否支持组逻辑盘 |
| ReadPolicy | object | true | - | 指定存储控制器组逻辑盘时读策略选项 |
| Configurable | boolean | true | - | 指定策略是否支持自定义 |
| SupportedPolicy | array | true | - | 指定策略的自定义选项 |
| WritePolicy | object | true | - | 指定存储控制器组逻辑盘时写策略选项 |
| CachePolicy | object | true | - | 指定存储控制器组逻辑盘时IO策略选项 |
| AccessPolicy | object | true | - | 指定存储控制器组逻辑盘时访问策略选项 |
| DriveCachePolicy | object | true | - | 指定存储控制器组逻辑盘时物理盘缓存策略选项 |
| Type | string | true | - | 指定存储控制器的类型 |
| JbodStateSupported | boolean | true | - | 指定控制器是否支持JBOD模式 |
| EpdSupported | boolean | true | - | 指定控制器是否支持EPD模式 |
| SASAddress | string | true | - | 指定存储控制器地址 |
| ConfigurationVersion | string | true | - | 指定存储控制器配置版本 |
| PCIeLinkWidth | string | true | - | PCIe带宽 |
| ReadCachePercent | number | false | - | 读缓存比例百分比 |
| SpareActivationMode | string | true | - | 热备激活模式 ● Failure:硬盘故障时激活热备盘 ● Predictive:硬盘预故障时激活热备盘 |
| NoBatteryWriteCacheEnabled | boolean | false | - | 无电池写缓存使能状态 |
| BootDevices | array | false | - | 指定存储器启动盘的资源ID。长度为2的固定数组, 每个成员分别对应第一、 第二优先级的存储器启动盘资源ID,对应优先级未设置时值为“None” |
| WriteCachePolicy | object | false | - | 硬盘写缓存策略 |
| ConfiguredDrive | string | false | - | RAID/Mixed模式下RAID组成员盘的写缓存策略 ● Default:将硬盘的写缓存保持为默认状态 ● Enabled:打开硬盘的写缓存功能 ● Disabled:关闭硬盘的写缓存功能 说明 |
| UnconfiguredDrive | string | false | - | RAID/Mixed模式下非RAID组成员盘的写缓存策略 ● Default:将硬盘的写缓存保持为默认状态 ● Enabled:打开硬盘的写缓存功能 ● Disabled:关闭硬盘的写缓存功能 |
| HBADrive | string | false | - | HBA模式下硬盘的写缓存策略 ● Default:将硬盘的写缓存保持为默认状态 ● Enabled:打开硬盘的写缓存功能 ● Disabled:关闭硬盘的写缓存功能 |
| MemorySizeMiB | number | true | - | 指定存储控制器内存容量 |
| MaintainPDFailHistory | boolean | false | - | 指定存储驱动器故障记录功能的使能状态 |
| CopyBackState | boolean | false | - | 指定存储控制器回拷功能使能状态 |
| SmarterCopyBackState | boolean | false | - | 指定存储控制器SMART错误回拷功能的使能状态 |
| JBODState | boolean | false | - | 驱动器直通功能的使能状态 |
| Enabled | boolean | false | - | 一致性检验功能使能状态 |
| PeriodOfHours | number | false | - | 一致性校验周期(单位: 小时) |
| Rate | string | false | - | 一致性校验速率,包括: ● Low ● Medium ● High |
| AutoRepairEnabled | boolean | false | - | 一致性校验自动修复功能使能状态 |
| RunningStatus | string | true | - | 一致性校验功能运行状态 |
| TotalVolumeCounts | number | true | - | 需要进行一致性校验的逻辑盘总数 |
| CompletedVolumeCounts | number | true | - | 已完成一致性校验的逻辑盘总数 |
| DelayToStart | number | false | - | 本次一致性校验推迟多长时间启动(单位:小时) |
| OOBSupport | boolean | true | - | 控制器是否支持带外管理 |
| CapacitanceName | string | true | - | 指定存储控制器BBU名称 |
| CapacitanceStatus | object | true | - | 指定存储控制器电容 (BBU)状态,包括: ● Health:存储控制器健康状态 ● State:存储控制器使能状态 ● Severity:存储控制器的自定义健康状态 ● FaultDetails:存储控制器电容故障信息 |
| DDRECCCount | number | true | - | 指定存储控制器内存可纠错的错误计数 |
| MinStripeSizeBytes | number | true | - | 控制器支持最小条带值 |
| MaxStripeSizeBytes | number | true | - | 控制器支持最大条带值 |
| DriveInfo | object | true | - | 指定控制器驱动信息 |
| DriverName | string | true | - | 指定控制器驱动名称 |
| DriverVersion | string | true | - | 指定控制器驱动版本 |
| PHYStatus | object | true | - | 指定控制器物理层误码状态 |
| PhyId | number | true | - | PHY索引编号 |
| InvalidDwordCount | number | true | - | 无效DWORD数 |
| LossDwordSyncCount | number | true | - | 丢失DWORD同步数 |
| PhyResetProblemCount | number | true | - | PHY重启问题数 |
| RunningDisparityErrorCount | number | true | - | 连续不均衡性错误数 |
| BDF | string | true | - | BDF值: ● Bus ● Device ● Function ● null |
| VenderID | number | true | - | 厂商ID |
| DeviceID | number | true | - | 设备ID |
| SubsystemVenderID | number | true | - | 厂商子ID |
| SubsystemDeviceID | number | true | - | 设备子ID |
| Drives@odata.count | number | true | - | 存储控制器管理的驱动器个数 |
| @odata.id | string | true | - | 指定驱动器的访问路径 |
| Id | string | true | - | 指定驱动器的Id |
| Name | string | true | - | 指定驱动器的名称 |
| MediaType | string | true | - | 指定驱动器的介质类型 |
| CapacityBytes | number | true | - | 指定驱动器的容量(单位:B) |
| DriveID | number | true | - | 创建逻辑盘时指定的驱动器的ID |
| FirmwareStatus | string | true | - | 指定驱动器的固件状态 |
| RelatedArrayInfo | object | true | - | 指定驱动器上的驱动器阵列信息 |
| Members | array | true | - | 指定驱动器阵列的成员 |
| FreeSpaceMiBPerDrive | number | true | - | 指定驱动器阵列中每个驱动器的剩余容量(单位: MB) |
| TotalFreeSpaceMiB | number | true | - | 指定驱动器阵列中总的剩余容量(单位:MB) |
| FreeBlocksSpaceMib | array | true | - | 指定驱动器阵列中的剩余容量(单位:MB) |
| NumDrivePerSpan | number | true | - | 指定驱动器阵列中每个Span的成员的个数 |
| VolumeRaidLevel | string | true | - | 指定驱动器阵列组成的虚拟磁盘的级别 |
| @odata.id | string | true | - | 虚拟磁盘集合资源的访问路径 |
| #Storage.RestoreStorageControllerDefaultSettings | object | true | - | 控制器可执行的恢复默认设置操作 |
| #Storage.ImportForeignConfig | object | true | - | 导入Foreign配置(导入foreign磁盘包含的RAID配置信息,无需输入配置文件) |
| target | string | true | - | 控制器可执行的恢复默认设置操作路径 |
| @Redfish.ActionInfo | string | true | - | 控制器可执行的恢复默认设置操作信息查询路径 |
supported_methods
- GET
- PATCH
- POST
HTTP methods
GET
命令功能
查询指定存储资源信息
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| system_id | 系统资源的ID | 参见源文件参数说明 |
| auth_value | 请求消息的鉴权参数 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
无
使用实例
请求样例:
GET https://device_ip/redfish/v1/Systems/system_id/Storages/storage_idX-Auth-Token: 123456789***********************
请求消息体:无
响应样例:
{
"@odata.context": "/redfish/v1/$metadata#systems/Members/1/Storages/Members/$entity",
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0",
"@odata.type": "#Storage.v1_7_0.Storage",
"Id": "RAIDStorage0",
"Name": "RAIDStorage0",
"StorageControllers@odata.count": 1,
"StorageControllers": [
{
"MemberId": "0",
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0#/StorageControllers/0",
"@odata.type": "#Storage.v1_7_0.StorageController",
"Name": "RAID Card1 Controller",
"Description": "RAID Controller",
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational",
"FaultDetails": "Memory correctable errors"
}
},
"State": "Enabled"
},
"SpeedGbps": 12,
"FirmwareVersion": "5.060.00-2139",
"SupportedDeviceProtocols": [
"SAS"
],
"SerialNumber": "2102313XXFFSN7000454",
"Manufacturer": "LSI",
"Model":"SAS3508",
"CacheSummary": {
"TotalCacheSizeMiB": 2048
},
"SupportedRAIDTypes": [
"RAID0",
"RAID1",
"RAID5",
"RAID6",
"RAID10",
"RAID50",
"RAID60"
],
"Oem": {
"Public": {
"AssociatedCard": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/PCIeCard6"
},
"Mode": "RAID",
"CachePinnedState": true,
"SupportedRAIDLevels": [
"RAID0",
"RAID1",
"RAID5",
"RAID6",
"RAID10",
"RAID50",
"RAID60"
],
"VolumeSupported": true,
"ReadPolicy": {
"Configurable": true,
"SupportedPolicy": [
"NoReadAhead",
"ReadAhead"
]
},
"WritePolicy": {
"Configurable": true,
"SupportedPolicy": [
"WriteThrough",
"WriteBackWithBBU",
"WriteBack"
]
},
"CachePolicy": {
"Configurable": true,
"SupportedPolicy": [
"CachedIO",
"DirectIO"
]
},
"AccessPolicy": {
"Configurable": true,
"SupportedPolicy": [
"ReadWrite",
"ReadOnly",
"Blocked"
]
},
"DriveCachePolicy": {
"Configurable": true,
"SupportedPolicy": [
"Unchanged",
"Enabled",
"Disabled"
]
},
"Type": "LSI SAS3508",
"JbodStateSupported": false,
"EpdSupported": true,
"SASAddress": "59c741a5628b4000",
"ConfigurationVersion": "5.0600.03-0012",
"PCIeLinkWidth": "x8",
"ReadCachePercent": null,
"SpareActivationMode": null,
"NoBatteryWriteCacheEnabled": null,
"BootDevices": [
"HDDPlaneDisk14",
"None"
],
"WriteCachePolicy": null,
"MemorySizeMiB": 2048,
"MaintainPDFailHistory": true,
"CopyBackState": true,
"SmarterCopyBackState": true,
"JBODState": false,
"VolumeConsistencyCheckConfig": {
"Enabled": true,
"PeriodOfHours": 240,
"Rate": "Low",
"AutoRepairEnabled": true,
"RunningStatus": "Off",
"TotalVolumeCounts": 0,
"CompletedVolumeCounts": 255,
"DelayToStart": 0
},
"OOBSupport": true,
"CapacitanceName": "CVPM02",
"CapacitanceStatus": {
"Health": "OK",
"Severity": "Informational",
"FaultDetails": null,
"State": "Enabled"
},
"DriverInfo": {
"DriverName": "megaraid_sas",
"DriverVersion": "06.806.08.080"
},
"DDRECCCount": 1,
"MinStripeSizeBytes": 65536,
"MaxStripeSizeBytes": 1048576,
"PHYStatus": [
{
"PhyId": 1,
"InvalidDwordCount": 0,
"LossDwordSyncCount": 0,
"PhyResetProblemCount": 0,
"RunningDisparityErrorCount": 0
}
],
"BDF":"0000:16:02.0",
"VenderID": "0x1000",
"DeviceID": "0x0016",
"SubsystemVenderID": "0x19e5",
"SubsystemDeviceID": "0xd215"
}
}
}
],
"Drives@odata.count": 1,
"Drives": [
{
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk14",
"Id": "HDDPlaneDisk0",
"Name": "Disk0",
"MediaType": "HDD",
"CapacityBytes": 1998998994944,
"Oem": {
"Public": {
"DriveID": "17",
"FirmwareStatus": "Online",
"RelatedArrayInfo": {
"Members": [
"Disk0",
"Disk1"
],
"FreeSpaceMiBPerDrive": 0,
"TotalFreeSpaceMiB": 0,
"FreeBlocksSpaceMib": [
0
],
"NumDrivePerSpan": 2,
"VolumeRaidLevel": "RAID0"
}
}
],
"Volumes": {
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes"
},
"Actions": {
"Oem": {
"Public": {
"#Storage.RestoreStorageControllerDefaultSettings": {
"target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings",
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/RestoreStorageControllerDefaultSettingsActionInfo"
},
"#Storage.ImportForeignConfig": {
"target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.ImportForeignConfig",
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/ ImportForeignConfigActionInfo"
}
}
}
}
}
}
]
}响应码:200
PATCH
命令功能
修改指定控制器资源信息
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type
If-Match: ifmatch_value请求消息体:
{
"StorageControllers": [
{
"Oem": {
"Public": {
"CopyBackState": cb_state,
"SmarterCopyBackState": smartcb_state,
"JBODState": jbod_state,
"VolumeConsistencyCheckConfig": {
"Enabled": cc_state,
"PeriodOfHours": cc_period,
"Rate": cc_rate,
"AutoRepairEnabled": cc_autorepair,
"DelayToStart": cc_delay
},
"Mode": mode,
"MaintainPDFailHistory": mt_pdfailhistory,
"BootDevices": [
drive_id,
drive_id
],
"ReadCachePercent": rc_percent,
"NoBatteryWriteCacheEnabled": nbwc_state,
"WriteCachePolicy": {
"ConfiguredDrive": wc_policy,
"UnconfiguredDrive": wc_pplicy,
"HBADrive": wc_policy
}
}
}
}
]
}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| system_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1” ● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源 ● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| storage_id | 存储资源的ID | 通过存储集合资源获得。 格式为:RAIDStorage+指 定控制器ID |
| ifmatch_value | 请求消息的匹配参数 | 可通过对相应资源发起 GET操作,从响应头中获 取(对应于“ETag”参 数) |
| cb_state | 回拷功能使能状态 | ● true ● false |
| smartcb_state | SMART错误回拷功能的使 能状态 | ● true ● false 说明:设置为True时要 依赖CopyBackState开 启 |
| jbod_state | 驱动器直通功能的使能状 态 | ● true ● false |
| cc_state | 逻辑盘一致性校验功能使 能状态 | ● true ● false 说明:设置为false时, 不能附加其他参数 |
| cc_period | 逻辑盘一致性校验的周期 | ● 范围为1-1440的整数且 必须为24的倍数 |
| cc_rate | 逻辑盘一致性校验的速率 | ● Low ● Medium ● High |
| cc_autorepair | 逻辑盘一致性校验过程中 自修复功能的使能状态 | ● true ● false |
| cc_delay | 逻辑盘一致性校验在多久 后开始 | ● 范围为0-24的整数 说明:设置时需要附加 cc_state为true |
| mode | 存储控制器的模式 | ● RAID ● JBOD ● HBA ● Mixed 说明 如果RAID控制器类型为 3508/3516/9440-8i/ 9460-8i/9460-16i,并且固 件版本是MR7.9及之后的版 本,需要重启OS设置才能生 效。 |
| mt_pdfailhistory | 硬盘故障记录功能开闭状 态 | ● true ● false |
| drive_id | 存储器启动盘的资源ID | ● 逻辑盘资源的ID ● 驱动器资源的ID ● 对应优先级未设置时值 为“None” 说明:二元字符串数组分 别表示第1、2启动优先级 的启动盘资源ID |
| rc_percent | 读缓存百分比 | 范围0~100且必须为5的倍 数 |
| nbwc_state | 无电池写缓存使能状态 | ● true ● false |
| wc_policy | 硬盘写缓存策略 | ● Default:将硬盘的写 缓存保持为默认状态 ● Enabled:打开硬盘的 写缓存功能 ● Disabled:关闭硬盘的 写缓存功能 |
使用指南
无
使用实例
请求样例:
PATCH https://device_ip/redfish/v1/Systems/system_id/Storages/storage_idX-Auth-Token: 123456789*********************** Content-Type: header_type If-Match: ifmatch_value
请求消息体:
{
"StorageControllers": [
{
"Oem": {
"Public": {
"CopyBackState": cb_state,
"SmarterCopyBackState": smartcb_state,
"JBODState": jbod_state,
"VolumeConsistencyCheckConfig": {
"Enabled": cc_state,
"PeriodOfHours": cc_period,
"Rate": cc_rate,
"AutoRepairEnabled": cc_autorepair,
"DelayToStart": cc_delay
},
"Mode": mode,
"MaintainPDFailHistory": mt_pdfailhistory,
"BootDevices": [
drive_id,
drive_id
],
"ReadCachePercent": rc_percent,
"NoBatteryWriteCacheEnabled": nbwc_state,
"WriteCachePolicy": {
"ConfiguredDrive": wc_policy,
"UnconfiguredDrive": wc_pplicy,
"HBADrive": wc_policy
}
}
}
}
]
}响应样例:
{
"@odata.context": "/redfish/v1/$metadata#systems/Members/1/Storages/Members/$entity",
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0",
"@odata.type": "#Storage.v1_7_0.Storage",
"Id": "RAIDStorage0",
"Name": "RAIDStorage0",
"StorageControllers@odata.count": 1,
"StorageControllers": [
{
"MemberId": "0",
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0#/StorageControllers/0",
"@odata.type": "#Storage.v1_7_0.StorageController",
"Name": "RAID Card1 Controller",
"Description": "RAID Controller",
"Status": {
"Health": "OK",
"Oem": {
"Public": {
"Severity": "Informational",
"FaultDetails": "Memory correctable errors"
}
},
"State": "Enabled"
},
"SpeedGbps": 12,
"FirmwareVersion": "5.060.00-2139",
"SupportedDeviceProtocols": [
"SAS"
],
"Manufacturer": "LSI",
"Model":"SAS3508",
"CacheSummary": {
"TotalCacheSizeMiB": 2048
},
"SupportedRAIDTypes": [
"RAID0",
"RAID1",
"RAID5",
"RAID6",
"RAID10",
"RAID50",
"RAID60"
],
"Oem": {
"Public": {
"AssociatedCard": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/PCIeCard6"
},
"Mode": "RAID",
"CachePinnedState": true,
"SupportedRAIDLevels": [
"RAID0",
"RAID1",
"RAID5",
"RAID6",
"RAID10",
"RAID50",
"RAID60"
],
"VolumeSupported": true,
"ReadPolicy": {
"Configurable": true,
"SupportedPolicy": [
"NoReadAhead",
"ReadAhead"
]
},
"WritePolicy": {
"Configurable": true,
"SupportedPolicy": [
"WriteThrough",
"WriteBackWithBBU",
"WriteBack"
]
},
"CachePolicy": {
"Configurable": true,
"SupportedPolicy": [
"CachedIO",
"DirectIO"
]
},
"AccessPolicy": {
"Configurable": true,
"SupportedPolicy": [
"ReadWrite",
"ReadOnly",
"Blocked"
]
},
"DriveCachePolicy": {
"Configurable": true,
"SupportedPolicy": [
"Unchanged",
"Enabled",
"Disabled"
]
},
"Type": "LSI SAS3508",
"SASAddress": "59c741a5628b4000",
"ConfigurationVersion": "5.0600.03-0012",
"PCIeLinkWidth": "x8",
"ReadCachePercent": null,
"SpareActivationMode": null,
"NoBatteryWriteCacheEnabled": null,
"BootDevices": [
"HDDPlaneDisk14",
"None"
],
"WriteCachePolicy": null,
"MemorySizeMiB": 2048,
"MaintainPDFailHistory": true,
"CopyBackState": false,
"SmarterCopyBackState": true,
"JBODState": false,
"OOBSupport": true,
"VolumeConsistencyCheckConfig": {
"Enabled": true,
"PeriodOfHours": 240,
"Rate": "Low",
"AutoRepairEnabled": false,
"RunningStatus": "Off",
"TotalVolumeCounts": 0,
"CompletedVolumeCounts": 255,
"DelayToStart": 1
},
"CapacitanceName": "CVPM02",
"CapacitanceStatus": {
"Health": "OK",
"Severity": "Informational",
"FaultDetails": null,
"State": "Enabled"
},
"DriverInfo": {
"DriverName": "megaraid_sas",
"DriverVersion": "06.806.08.080-"
},
"DDRECCCount": 1,
"MinStripeSizeBytes": 65536,
"MaxStripeSizeBytes": 1048576,
"PHYStatus": [
{
"PhyId": 1,
"InvalidDwordCount": 0,
"LossDwordSyncCount": 0,
"PhyResetProblemCount": 0,
"RunningDisparityErrorCount": 0
}
],
"BDF":"0000:16:02.0",
"VenderID": "0x1000",
"DeviceID": "0x0016",
"SubsystemVenderID": "0x19e5",
"SubsystemDeviceID": "0xd215"
}
}
}
],
"Drives@odata.count": 1,
"Drives": [
{
"@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk14",
"Id": "HDDPlaneDisk0",
"Name": "Disk0",
"MediaType": "HDD",
"CapacityBytes": 1998998994944,
"Oem": {
"Public": {
"DriveID": "17",
"FirmwareStatus": "Online",
"RelatedArrayInfo": {
"Members": [
"Disk0",
"Disk1"
],
"FreeSpaceMiBPerDrive": 0,
"TotalFreeSpaceMiB": 0,
"FreeBlocksSpaceMib": [
0
],
"NumDrivePerSpan": 2,
"VolumeRaidLevel": "RAID0"
}
}
}
}
],
"Volumes": {
"@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes"
},
"Actions": {
"Oem": {
"Public": {
"#Storage.RestoreStorageControllerDefaultSettings": {
"target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings",
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/RestoreStorageControllerDefaultSettingsActionInfo"
},
"#Storage.ImportForeignConfig": {
"target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.ImportForeignConfig",
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/ImportForeignConfigActionInfo"
}
}
}
}
}响应码:200
POST (ACTION)
ImportForeignConfig
命令功能
导入 Foreign 配置
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.ImportForeignConfig
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体:
{}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| system_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1” |
| storage_id | 存储资源的ID | 通过存储集合资源获得。 |
使用指南
无
使用实例
请求样例:
POST https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage. ImportForeignConfigX-Auth-Token: 123456789*********************** Content-Type: header_type
请求消息体:
{}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200
POST (ACTION)
ClearForeignConfig
命令功能
清除 Foreign 配置
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.ClearForeignConfig
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体:
{}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| system_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1” ● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源 ● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| storage_id | 存储资源的ID | 通过存储集合资源获得。 |
使用指南
无
使用实例
请求样例:
POST https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.ClearForeignConfigX-Auth-Token: 123456789*********************** Content-Type: header_type
请求消息体:
{}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200
POST (ACTION)
RestoreStorageControllerDefaultSettings
命令功能
恢复指定控制器的默认配置
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体:
{}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| system_id | 系统资源的ID | ● 针对机架服务器,取值 为1 ● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1” ● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1” ● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源 ● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| storage_id | 存储资源的ID | 通过存储集合资源获得。 |
使用指南
如果RAID控制器类型为3508/3516/9440-8i/9460-8i/9460-16i,并且固件版本是MR7.9及之后的版本,恢复RAID控制器默认设置,需要重启OS才能生效。
使用实例
请求样例:
POST https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettingsX-Auth-Token: 123456789*********************** Content-Type: header_type
请求消息体:
{}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200