Reference Guide

123 Lifecycle Controller Web Services Interface Guide for Linux
<wsman:Selector Name="InstanceID">JID_001300793471</wsman
:Selector>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Se
lector>
</wsman:SelectorSet>
</wsa:ReferenceParameters>
</n1:Job>
<n1:ReturnValue>4096</n1:ReturnValue>
</n1:CreatePartitionUsingImage_OUTPUT>
13.6 Delete Partition
This method is for deleting a partition on a storage device. After running this method successfully, the
instance of DCIM_OpaqueManagementData representing the desired partition along with the association
instance of DCIM_ServiceAffectsElement will be deleted. The AvailableSize property of the associated
storage media will increase by the size of the deleted partition.
Invoke DeletePartition() with the following parameters and syntax:
PartitionIndex: The PartitionIndex property of the DCIM_OpaqueManagementData instance that
represents the partition to be removed. 1 to 16
EXAMPLE:
wsman invoke -a DeletePartition
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_PersistentStor
ageService?SystemCreationClassName=DCIM_ComputerSystem,
CreationClassName=DCIM_PersistentStorageService,
SystemName=DCIM:ComputerSystem,Name=DCIM:PersistentStorageService"
h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J DeletePartition.xml -j utf-8 y basic
The input file DeletePartition.xml is shown below:
<p:DeletePartition_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_Persi
stentStorageService">
<p:PartitionIndex>1</p:PartitionIndex>
</p:DeletePartition_INPUT>
OUTPUT:
After running this method, a ReturnValue or a message is displayed indicating an error.
<n1:DeletePartition_OUTPUT>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:DeletePartition_OUTPUT>
An index that does not exist in the XML file may yield the following error message:
<n1:DeletePartition_OUTPUT>
<n1:Message>Invalid partition index</n1:Message>
<n1:MessageID>VF018</n1:MessageID>
<n1:ReturnValue>2</n1:ReturnValue>
</n1:DeletePartition_OUTPUT>
13.7 Format Partition
This method is for formatting a partition of the type specified by you.
Use the following algorithm to successfully format an existing partition: