Novell SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT Manual page 77

Hide thumbs Also See for SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT:
Table of Contents

Advertisement

<primitive id="R_10.10.10.101" class="ocf" type="IPaddr2"
provider="heartbeat">
<instance_attributes id="RA_R_10.10.10.101">
<attributes>
<nvpair id="R_ip_P_ip" name="ip" value="10.10.10.101"/>
<nvpair id="R_ip_P_nic" name="nic" value="eth0"/>
</attributes>
</instance_attributes>
</primitive>
Then issue the following command:
cibadmin --obj_type resources -U -x foo
To change the IP address of the IPaddr2 resource previously added, issue the command
below:
cibadmin -M -X '<nvpair id="R_ip_P_ip" name="ip" value="10.10.10.102"/>'
NOTE
This does not change the resource name to match the new IP address. To do
that, delete then re-add the resource with a new ID tag.
To stop (disable) the IP address resource added previously without removing it, create
a file called bar with the following content in it:
<primitive id="R_10.10.10.101">
<instance_attributes id="RA_R_10.10.10.101">
<attributes>
<nvpair id="stop_R_10.10.10.101" name="target_role" value="Stopped"/>
</attributes>
</instance_attributes>
</primitive>
Then issue the following command:
cibadmin --obj_type resources -U -x bar
To restart the IP address resource stopped by the previous step, issue:
cibadmin -D -X '<nvpair id="stop_R_10.10.10.101">'
To completely remove the IP address resource from the CIB, issue this command:
cibadmin -D -X '<primitive id="R_10.10.10.101"/>'
Managing a Cluster
69

Advertisement

Table of Contents
loading

Table of Contents