addPartitionToMirror

Adds one or more partitions to another existing mirror group. In order to add a partition to a mirror group, the partition must have been created with both a HotFix object and a mirror object. The data size of the partition must be exactly the same as the data size of the partitions that already exist in the mirror group. Also, the partition being added must not currently be a part of any other mirror group.

Request

<addPartitionToMirror>
   <mirrorID/>
   <partitions>
      <partitionID/>
   </partitions>
</addPartitionToMirror>

Reply

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

Elements

mirrorID

(Required) Specifies the ID of the existing mirror group to add the partition to.

partitions

Specifies a list of partitions that need to be added to the mirror group.

partitionID

Repeats for each instance of a partition that needs to be added to the mirror group.

result

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

description

Specifies a text description of the result.

Example

A nssRequest packet to add partitionID 14 to an existing mirror group (ID 20) is as follows:

<nssRequest>
   <partition>
      <addPartitionToMirror>
         <mirrorID>20</mirrorID>
         <partitions>
            <partitionID>14</partitionID>
         </partitions>
      </addPartitionToMirror>
   </partition>
</nssRequest>

A nssReply packet to the add partition to mirror command follows:

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

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