Reference Guide

121 Lifecycle Controller Web Services Interface Guide for Linux
The input file CreatePartition.xml is shown below:
<p:CreatePartition_INPUT
xmlns:p="http://schemas.dell.com/wbem/wscim/1/cimschema/2/DCIM_PersistentStora
geService">
<p:PartitionIndex>1</p:PartitionIndex>
<p:Size>50</p:Size>
<p:SizeUnit>1</p:SizeUnit>
<p:PartitionType>2</p:PartitionType>
<p:OSVolumeLabel>label1</p:OSVolumeLabel>
</p:CreatePartition_INPUT>
OUTPUT:
After running this method, a jobid or a message is displayed indicating an error.
<n1:CreatePartition_OUTPUT>
<n1:Job>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/an
onymous<
/wsa:Address>
<wsa:ReferenceParameters>
<wsman:ResourceURI>http://schemas.dell.com/wbem/wscim/1/cimsche
ma/2/DCIM_LifecycleJob</wsman:ResourceURI>
<wsman:SelectorSet>
<wsman:Selector Name="InstanceID">JID_001300793055</wsman
:Selector>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Se
lector>
</wsman:SelectorSet>
</wsa:ReferenceParameters>
</n1:Job>
<n1:ReturnValue>4096</n1:ReturnValue>
</n1:CreatePartition_OUTPUT>
If this method displays the following message, the VFlash must be enabled using the
VFlashStateChange() ( Section 13.3) method.
CreatePartition_OUTPUT
Message = VFlash not enabled
MessageID = VF015
ReturnValue = 2
13.5 Create Partition using Image
This method creates a partition on the storage device using the image provided by the user. The partition
size will be the same as the size of the image. The maximum size of the image is 4GB.
The image can be located on an NFS or a CIFS share or on a TFTP server. After running this method
successfully , an instance of DCIM_OpaqueManagementData representing the desired partition will be
created (Section 13.1), and a reference to this instance is captured in the output parameter Job.
Invoke CreatePartitionUsingImage() with the following parameters and syntax:
PartitionIndex: The PartitionIndex property of the DCIM_OpaqueManagementData instance that
represents the partition to be formatted. 1 to 16.
PartitionType: The format types that these partitions need to be formatted as. floppy=1, hard disk
drive=2, CD ROM=3
OSVolumeLabel: The label seen on the OS after attaching the partition.