Example Redfish REST calls: Create RAID volume
Example Redfish REST calls: Create RAID volume
Prerequisites:
- PowerEdge Gen 14 server (R740, M640, etc)
- iDRAC 9 with firmware version: 3.21.21.21 or above
Create RAID volume (virtual disk)
Method: POST
URI: https://
BODY / Payload:
The following is an example of creating a RAID1 (mirror) volume on the RAID.Slot.6-1 controller using two disks (bay 2 and bay 3):
1
2
3
4
5
6
7
8
9
10
11
12
{
"VolumeType": "Mirrored",
"Name": "VOL02-R1",
"Drives": [
{
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Drives/Disk.Bay.2:Enclosure.Internal.0-1:RAID.Slot.6-1"
},
{
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Drives/Disk.Bay.3:Enclosure.Internal.0-1:RAID.Slot.6-1"
}
]
}
For RAID1 the VolumeType is “Mirrored”. For other RAID types please use the below:
- RAID 0: “NonRedundant”
- RAID 1: “Mirrored”
- RAID 5: “StripedWithParity”
- RAID 10: “SpannedMirrors”
- RAID 50: “SpannedStripesWithParity”
HTTP status 202 will be returned if creation is successful.
Also see the following scripts on GitHub:
This post is licensed under
CC BY 4.0
by the author.