John Gardner <[EMAIL PROTECTED]> wrote: 
> 
> > 
> > Well, I don't know how to fix your GUI problem, but what about using 
> > cibadmin -Q -o resources, to get all configured resources, edit the 
output, 
> > add a new IP address resource, and add it cibadmin -U to update it?
> > 
> > Sebastian
> > 
> 
> Seabastian, now I have another problem (lack of knowledge on my part!)
> 
> When I type:
> 
> cibadmin -Q -o resources
> 
> I get:
> 
>  <resources>
>    <primitive class="ocf" type="IPaddr2" provider="heartbeat"
> id="virtual_ip">
>      <instance_attributes id="virtual_ip_instance_attrs">
>        <attributes>
>          <nvpair id="8ed71fe6-b7f1-40f2-b7c5-697fdf38b9b5" name="ip"
> value="192.168.1.74"/>
>        </attributes>
>      </instance_attributes>
>    </primitive>
>  </resources>
> 
> How would I add another virtual ip address using cibadmin?
> 
> Presumably I'd use the modify (-M) switch?  How do I generate the unique
> nvpair id?
take sth. like this:

<resources>
   <primitive class="ocf" type="IPaddr2" provider="heartbeat" 
id="virtual_ip">
     <instance_attributes id="virtual_ip_instance_attrs">
       <attributes>
         <nvpair id="8ed71fe6-b7f1-40f2-b7c5-697fdf38b9b5" name="ip" 
value="192.168.1.74"/>
       </attributes>
     </instance_attributes>
   </primitive>
   <primitive class="ocf" type="IPaddr2" provider="heartbeat" 
id="other_virtual_ip">
     <instance_attributes id="virtual_ip_instance_attrs">
       <attributes>
         <nvpair id="other_virtual_ip_ip" name="ip" value="192.168.1.75"/>
       </attributes>
     </instance_attributes>
   </primitive>
 </resources>

and update the cib with
cibadmin -U -o resources -x resources.xml
I am not perfectly sure about whether -U, or -R, or -M is the correct 
parameter. 

where resources.xml is a file containing above example.

Sebastian

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to