removePartition

Deletes an existing partition on a device. If the partition being deleted contains a portion of NSS pools or traditional NetWare volumes, removePartition causes those pools and volumes to also be deleted. However, removePartition does not deleted the eDirectory objects for those pools and volumes. Before deleting a partition, you should use other XML commands to delete the pools and volumes to ensure that all eDirectory cleanup occurs correctly. If the partition being deleted is currently part of an active mirror group, you should first remove the partition from the mirror group before deleting it.

Request

<removePartition>
   <partitionID/>
   <ignoreShareState/>
</removePartition>

Reply

<removePartition>
   <result value=" ">
      <description/>
   </result>
</removePartition>

Elements

partitionID

On NetWare, specifies the partition ID received from Media Manager. On Linux, specifies the partition name.

ignoreShareState

(Optional) If exists, no check is done to see if the device is marked shareable for clustering. Usually, the server checks to validate that the clustering software is loaded and operational before allowing partition deletions on a device that is marked for clustering.

result

Specifies an error value or 0 (for no error).

description

Specifies a text description of the returned result.

Example

A nssRequest packet to remove an NSS partition is as follows:

<nssRequest>
   <partition>
      <removePartition>
         <partitionID>14</partitionID>
      </removePartition>
   </partition>
</nssRequest>

A nssReply packet to the remove partition command follows:

<nssReply>
   <partition>
      <removePartition>
         <result value="0">
            <description/>success</description>
         </result>
      </removePartition>
   </partition>

   <result value="0">
      <description/>zOK</description>
   </result>
</nssReply>