[Linux-HA] DRBD + HB2

Ciro Iriarte cyruspy at gmail.com
Thu Jul 5 05:34:49 MDT 2007


> > Well, just found time to test the configuration guide, but looks i'm
> > having problems with cibadmin (and i'm almost sure it's my fault).
> >
> > Modified the initial configuration example and saved it on a xml file,
> > while trying to import it i get this error:
> >
> > ----------------
> > asusis-ope1:~/ha # cibadmin -C -x drbd.xml
> > Call cib_create failed (-24): Required section was missing
> >  <failed/>
> > ----------------
> >
> >
> > Config:
> > ----------------
> > <master_slave id="ms-hadata0">
> >         <meta_attributes id="ma-ms-hadata0">
> >            <attributes>
> >              <nvpair id="ma-ms-hadata0-1" name="clone_max" value="2"/>
> >              <nvpair id="ma-ms-hadata0-2" name="clone_node_max" value="1"/>
> >              <nvpair id="ma-ms-hadata0-3" name="master_max" value="1"/>
> >              <nvpair id="ma-ms-hadata0-4" name="master_node_max" value="1"/>
> >              <nvpair id="ma-ms-hadata0-5" name="notify" value="yes"/>
> >              <nvpair id="ma-ms-hadata0-6" name="globally_unique" value="false"/>
> >              <nvpair id="ma-ms-hadata0-7" name="target_role" value="stopped"/>
> >            </attributes>
> >         </meta_attributes>
> >         <primitive id="hadata0" class="ocf" provider="heartbeat" type="drbd">
> >            <instance_attributes id="ia-hadata0">
> >              <attributes>
> >                <nvpair id="ia-hadata0-1" name="drbd_resource" value="hadata0"/>
> >              </attributes>
> >            </instance_attributes>
> >         </primitive>
> > </master_slave>
> > ----------------
> >
> > Any directions will be welcome.
> >
> > Ciro.
> >
> Got it :)
>
> asusis-ope1:~/ha # cibadmin -C -o places drbdlocation.xml
> asusis-ope1:~/ha # cibadmin -C -o constraints -x drbdlocation.xml
>
> Ciro
>
Trying to import this:

<rsc_order id="hadata0-before-fs_hadata" from="fs_hadata"
action="start" to="ms-hadata0" to_action="promote"/>
<rsc_colocation id="fs_hadata-on-hadata0" to="ms-hadata0"
to_role="master" from="fs_hadata" score="infinity"/>

Using this command: "asusis-ope1:~/ha # cibadmin -C -o constraints -x
fslocation.xml", i get no errors.

"hadata0-before-fs_hadata" is imported, but i can't see "fs_hadata-on-hadata0"

Ciro



More information about the Linux-HA mailing list