White Papers

14 Standards-based storage management for Dell EMC PowerEdge servers
JobType: RealTimeNoRebootConfiguration
Name: Config:RAID:RAID.Slot.6-1
3. Ensure that the VD no longer exists for the target controller.
C:\Python27>DeleteVirtualDiskRedfish.py -ip 192.168.0.130 -u root -p calvin -v
RAID.Slot.6-1
- WARNING, no volume(s) detected for RAID.Slot.6-1
3.4 Initialize virtual drive (VD) by using Redfish 2016
After a VD is created, the Redfish 2016 storage APIs are used to initialize the VD for usage. Initialization is
performed by using a POST command with a virtual disk URI
redfish/v1/Systems/System.Embedded.1/Storage/Volumes/{virtual disk instance ID}/Actions/
Volume.Initializeand the required payload dictionary.
Here is an example from the “InitializeVirtualDiskRedfish.py” script in the Dell EMC Redfish Scripting GitHub
repository of the URI, payload and POST command to initialize virtual disks:
url =
'https://%s/redfish/v1/Systems/System.Embedded.1/Storage/Volumes/%s/Actions/Volu
me.Initialize' % (idrac_ip, virtual_disk)
payload={"InitializeType":init_type}
headers = {'content-type': 'application/json'}
response = requests.post(url, data=json.dumps(payload), headers=headers,
verify=False,auth=(idrac_username,idrac_password))
The example below uses the “InitializeVirtualDiskRedfish.py” script to initialize a RAID 1 VD.
1. Check the virtual disk(s) detected on the target server for the RAID 1 virtual disk:
C:\Python27>InitializeVirtualDiskRedfish.py -ip 192.168.0.130 -u root -p calvin
-v RAID.Slot.6-1
- Virtual disk(s) detected for controller RAID.Slot.6-1 -
Disk.Virtual.0:RAID.Slot.6-1, Volume Type: Mirrored
2. Run a “Slow initialization on the RAID 1 VD, passing in the VD instance ID:
C:\Python27>InitializeVirtualDiskRedfish.py -ip 192.168.0.130 -u root -p calvin
-V Disk.Virtual.0:RAID.Slot.6-1 --init Slow
- PASS: POST command passed to Slow initialize "Disk.Virtual.0:RAID.Slot.6-1"
virtual disk, status code 202 returned
- PASS, "realtime" JID_265044041574 jid successfully created for initialize
virtual disk
- WARNING, JobStatus not completed, current status is: "Job in progress.",
precent completion is: "1"
<Output edited for brevity>
- WARNING, JobStatus not completed, current status is: "Job in progress.",
precent completion is: "99"
--- PASS, Final Detailed Job Status Results ---