Hi Marc,

I cannot see on Page 8 where you read to create a blank CIB but if there are
no error logs I guess its fine. Of course if you have a blank CIB there is
not resource called Public-IP yet. You first will have to create that. I
recommend doing:

cibadmin --cib_query > tmp.xml

which will read the CIB to tmp.xml from where you can edit the file with vi.
Now you can insert a Public-IP resource like:

<resources>
        <primitive class="ocf" id="Public-IP" provider="heartbeat" 
type="IPaddr">
                 <operations>
                        <op id="1" interval="5s" name="monitor" timeout="5s"/>
                 </operations>
                 <instance_attributes>
                        <attributes>
                                <nvpair name="ip" value="10.0.200.30"/>
                                <nvpair name="netmask" value="16"/>
                                <nvpair name="nic" value="eth0"/>
                        </attributes>
                </instance_attributes>
        </primitive>
</resources>

Then you can check in the editied tmp.xml with the command:

cibadmin --cib_replace --xml-file tmp.xml

regards



-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Marc
Gesendet: Mittwoch, 30. Juli 2008 08:30
An: [email protected]
Betreff: AW: [Linux-HA] Newbie question


Kolja,

I created the cib.xml file using the vi editor. After doing so, I came
across http://clusterlabs.org/mw/Image:Configuration_Explained.pdf, where I
learned that I should not do this. So, I stopped heartbeat, then used vi to
create a blank cib.xml file (as shown on page 8 of the .pdf file). I started
heartbeat and checked the log to ensure no ERRORS were reported, which was
the case.

I then used this command...
crm_resource --resource Public-IP --set-parameter ip --property-value
192.168.0.118
...to update the cib.xml file, as described on page 22 of the above
mentioned .pdf file. The output of running the crm_resource command was:

crm_resource[6342]: 2008/07/30_16:28:46 info: Invoked: crm_resource
--resource Public-IP --set-parameter ip --property-value 192.168.0.118
Resource Public-IP not found: The object/attribute does not exist
Error performing operation: The object/attribute does not exist

Not sure where to go from here...

Regards, /|/|arc.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
--
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to