imcsdk storage APIs
0.9.2.0 release of imcsdk will add support for imcsdk.apis.server.storage to manage virtual drives.
virtual_drive_createvirtual_drive_delete
Basic usage,
vd = virtual_drive_create(handle=handle,
drive_group=[[1]],
controller_slot="MEZZ",
raid_level=0)
virtual_drive_delete(handle=handle,
controller_slot="MEZZ",
name=vd.virtual_drive_name)
Somethings to note about the arguments that virtual_drive_create takes,
drive_groupneeds to be array of an array(s) -[[]]The below shows sample inputs fordrive_group,
For Raid 0 - [[1, 2, 3]]
For Raid 10 - [[1, 2], [3, 4], [5, 6]]
For Raid 50 - [[1, 2, 3], [4, 5, 6]]
Where the numbers are physical drive slots.
controller_slotis the name/id of the Storage controller. This could beMEZZin some cases. or could be a number0-9is some.raid_level- refer to the raid levels supported by the platform