> >> > Hi All, > >> > > >> > Just upgraded to Heartbeat 2.99.2-3.1 and Pacemaker 1.0.0-4.1 > >> running on CentOS 5.2. > >> > > >> > I haven't got any resources defined yet, so my cib only contains > the > >> node entries. > >> > >> and the attribute with says how to validate it (validate-with) > > > > Yes.. pacemaker-1.0 > > > >> > >> > I am trying to import this resource: > >> > >> You'd have been better off doing a rolling upgrade which would > have > >> handled the syntax changes automatically > > > > That fails: > > > > The cluster will NOT be able to use this configuration. > > Please update the configuration manually to conform to the > pacemaker-1.0 syntax. > > Errors found during check: config not valid > > Can you send it to me pls? > There may be a bug in the upgrade script.
Yes, it's attached. Hope it comes through.. But again, I prefer to build the config all over again and find out why the snipped doesn't work. > > > > > But that's no problem. My previous config wasn't any good and I > prefer building it from scratch > > > >> > >> > <resources> > >> > <primitive class="ocf" id="privip" provider="heartbeat" > >> type="IPaddr"> > >> > <operations> > >> > <op id="op_1" interval="5s" name="monitor" timeout="5s"/> > >> > </operations> > >> > <instance_attributes id="ia_privip"> > >> > <attributes> > >> > <nvpair id="nv_privip" name="ip" value="192.168.0.6"/> > >> > </attributes> > >> > </instance_attributes> > >> > </primitive> > >> > </resources> > >> > > >> > which validates fine with my XML-editor. > >> > >> Is the editor doing schema validation against pacemaker.rng? > > > > Nope< I was validation against crm.dtd. Got any pointers on howto > vailidate agains pacemaker.rng? I am currently using XML Copy Editor > 1.1.0.6 to validate > > Not sure. But google claims that it supports relax-ng schemas (which > is what the .rng file is) so it should just work Never knew google is able to validate xml's ;)
<cib generated="false" admin_epoch="0" have_quorum="false" ignore_dtd="false" num_peers="0" cib_feature_revision="2.0" epoch="423" num_updates="1" cib-last-written="Mon Nov 3 12:28:31 2008">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
<nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-refresh" value="1225229585"/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes>
<node id="2e5e3bd1-a918-4d7c-b86e-ac7fe065383a" uname="barbaar.bartbaars.nl" type="normal"/>
<node id="796a56e2-be46-4b16-a0e5-aa1411455dca" uname="bartje.bartbaars.nl" type="normal"/>
</nodes>
<resources>
<group id="BarBaar_domainU">
<meta_attributes id="BarBaar_domainU_meta_attrs">
<attributes>
<nvpair id="BarBaar_domainU_metaattr_target_role" name="target_role" value="started"/>
<nvpair id="BarBaar_domainU_metaattr_ordered" name="ordered" value="true"/>
<nvpair id="BarBaar_domainU_metaattr_collocated" name="collocated" value="true"/>
<nvpair id="BarBaar_domainU_metaattr_multiple_active" name="multiple_active" value="stop_start"/>
</attributes>
</meta_attributes>
<primitive id="ds2" class="ocf" type="Xen" provider="heartbeat">
<instance_attributes id="ds2_instance_attrs">
<attributes>
<nvpair id="921d5034-46ec-4145-837b-4368f31b2b3c" name="xmfile" value="/etc/xen/ds2"/>
<nvpair id="5180596f-d7f0-4abe-8bb9-53dc81004617" name="allow_migrate" value="0"/>
<nvpair id="4ec1af28-6f35-4943-b9f0-920878a54e20" name="allow_mem_management" value="0"/>
<nvpair id="31fc9946-117a-42a0-acfd-161a1fd46e79" name="reserved_Dom0_memory" value="512"/>
</attributes>
</instance_attributes>
</primitive>
</group>
<group id="Config">
<meta_attributes id="Config_meta_attrs">
<attributes>
<nvpair id="Config_metaattr_target_role" name="target_role" value="started"/>
<nvpair id="Config_metaattr_ordered" name="ordered" value="true"/>
<nvpair id="Config_metaattr_collocated" name="collocated" value="true"/>
</attributes>
</meta_attributes>
<primitive id="config_disk" class="heartbeat" type="drbddisk" provider="heartbeat">
<instance_attributes id="config_disk_instance_attrs">
<attributes>
<nvpair id="b94df8ea-87b2-498b-9c90-ede70e54d93c" name="1" value="config"/>
</attributes>
</instance_attributes>
<meta_attributes id="config_disk_meta_attrs">
<attributes/>
</meta_attributes>
</primitive>
<primitive id="Config_xen" class="ocf" type="Xen" provider="heartbeat">
<instance_attributes id="Config_xen_instance_attrs">
<attributes>
<nvpair id="1cfae201-04ee-4895-8d8f-c9a2ba142b17" name="xmfile" value="/etc/xen/config"/>
<nvpair id="8aa93a58-f485-430f-8cb1-578d0a198bb7" name="allow_migrate" value="1"/>
<nvpair id="b7d32fef-380b-4b28-ba4f-f2cae73fe8f8" name="allow_mem_management" value="0"/>
<nvpair id="39d88df5-3d58-4003-bd9b-2bddbf5f5e22" name="reserved_Dom0_memory" value="512"/>
</attributes>
</instance_attributes>
<meta_attributes id="Config_xen_meta_attrs">
<attributes/>
</meta_attributes>
</primitive>
</group>
<group id="Cobbler_group">
<meta_attributes id="Cobbler_group_meta_attrs">
<attributes>
<nvpair id="Cobbler_group_metaattr_target_role" name="target_role" value="started"/>
</attributes>
</meta_attributes>
<primitive id="Cobbler_disk" class="heartbeat" type="drbddisk" provider="heartbeat">
<instance_attributes id="Cobbler_disk_instance_attrs">
<attributes>
<nvpair id="4af2a60f-f474-4f37-8fc3-09b602d051a6" name="1" value="cobbler"/>
</attributes>
</instance_attributes>
<meta_attributes id="Cobbler_disk_meta_attrs">
<attributes/>
</meta_attributes>
</primitive>
<primitive id="cobbler_mount" class="ocf" type="Filesystem" provider="heartbeat">
<instance_attributes id="cobbler_mount_instance_attrs">
<attributes>
<nvpair id="5e11625b-979d-4044-a0bf-7556a236accf" name="device" value="/dev/drbd0"/>
<nvpair id="21ba13f4-aa9f-4518-a630-fd7a870afb5f" name="directory" value="/var/www/cobbler"/>
<nvpair id="5daef73f-4624-460a-8e22-f47ca8622b7a" name="fstype" value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="Cobbler_ip" class="ocf" type="IPaddr2" provider="heartbeat">
<instance_attributes id="Cobbler_ip_instance_attrs">
<attributes>
<nvpair id="df468c75-79b6-47a7-a16c-1253449495d5" name="ip" value="192.168.0.6"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="cobbler_httpd" class="lsb" type="httpd" provider="heartbeat"/>
<primitive id="cobbler_daemon" class="lsb" type="cobblerd" provider="heartbeat"/>
</group>
</resources>
<constraints>
<rsc_location id="location_BarBaar" rsc="BarBaar_domainU">
<rule id="prefered_location_BarBaar" score="INFINITY" boolean_op="or">
<expression attribute="#uname" id="65202a65-df87-4c02-88a9-ee3cad4ea29f" operation="eq" value="barbaar.bartbaars.nl"/>
</rule>
</rsc_location>
<rsc_location id="location_Bartje" rsc="Bartje_domainU">
<rule id="prefered_location_Bartje" score="INFINITY">
<expression attribute="#uname" id="d6f5edc2-2fba-42ab-82c2-ebab881adbe3" operation="eq" value="bartje.bartbaars.nl"/>
</rule>
</rsc_location>
</constraints>
</configuration>
</cib>
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
