White Papers

16 Standards-based storage management for Dell EMC PowerEdge servers
u'SupportedApplyTimes': [u'Immediate', u'OnReset', u'AtMaintenanceWindowStart',
u'InMaintenanceWindowOnReset']}
Name: Virtual Disk 0
3.5 Check virtual drive (VD) consistency by using Redfish 2016
After a VD is established, it can be checked for consistency with the Redfish 2016 storage APIs. Consistency
checking is done by using a POST command on the VD URI
redfish/v1/Systems/System.Embedded.1/Storage/Volumes/{virtual disk instance ID}/Actions/Volume.
CheckConsistency” with no payload dictionary.
Here is an example from the CheckConsistencyVirtualDiskRedfish.py” script in the Dell EMC Redfish
Scripting GitHub repository of the URI and POST command to check consistency on a VD:
url =
'https://%s/redfish/v1/Systems/System.Embedded.1/Storage/Volumes/%s/Actions/Volu
me.CheckConsistency' % (idrac_ip, virtual_disk)
headers = {'content-type': 'application/json'}
response = requests.post(url, headers=headers,
verify=False,auth=(idrac_username,idrac_password))
The following example uses “CheckConsistencyVirtualDiskRedfish.py” to check the consistency of a RAID 1
VD:
1. View the VDs detected on the target server for the RAID 1 VD:
C:\Python27>CheckConsistencyVirtualDiskRedfish.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 check consistency on the RAID 1 VD by entering the VD instance ID:
C:\Python27>CheckConsistencyVirtualDiskRedfish.py -ip 192.168.0.130 -u root -p
calvin -cc Disk.Virtual.0:RAID.Slot.6-1
- PASS: POST command passed to check consistency "Disk.Virtual.0:RAID.Slot.6-1"
virtual disk, status code 202 returned
- PASS, "realtime" JID_265050309108 jid successfully created for check
consistency 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 ---
JobState: Completed
Description: Job Instance
CompletionTime: 2018-05-16T16:11:41
PercentComplete: 100
StartTime: TIME_NOW