imcsdk storage APIs
0.9.2.0 release of imcsdk will add support for imcsdk.apis.server.storage
to manage virtual drives.
virtual_drive_create
virtual_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_group
needs 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_slot
is the name/id of the Storage controller. This could beMEZZ
in some cases. or could be a number0-9
is some.raid_level
- refer to the raid levels supported by the platform