[Pacemaker] Pacemaker is not able to read new shadow CIB.

Guillaume Belrose kafecho at gmail.com
Tue May 15 08:27:06 UTC 2012


Dejan,

I've removed the symbolic link and done a su - and it now works like a
charm :-)

I am probably to blame as the tutorial actually mentions using su -
(http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Clusters_from_Scratch/#_cluster_software_installation)

Many thanks for your help.

Guillaume


On 15 May 2012 08:44, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> On Mon, May 14, 2012 at 05:07:18PM +0100, Guillaume Belrose wrote:
>> Hi Dejan,
>>
>> I log in Fedora (Gnome) desktop as myself (i.e. guillaume) and then I
>> switch (in the terminal) to root using su.
>> In my system, the USER variable is actually set to guillaume and not
>> root. So this might be where the problem is.
>
> That could be it. I think that if you 'su -' you should be OK.
> I'll fix that.
>
> Thanks,
>
> Dejan
>
>> Anyway, I eventually added a symbolic link making /root/.cib to point
>> to /var/lib/heartbeat/crm and that seems to have make the problem go
>> away.
>>
>> I have been experiencing this issue on Fedora16 as well as Centos6.2.
>> Both distributions were the 32bits versions installed from a live CD.
>>
>> Cheers,
>>
>> Guillaume.
>>
>>
>>
>> On 14 May 2012 16:26, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
>> > On Fri, May 11, 2012 at 03:45:43PM +0100, Guillaume Belrose wrote:
>> >> I am running as root.
>> >>
>> >> The shadow file gets created under /var/lib/heartbeat/crm and is owned by root.
>> >
>> > Strange. I think that most users run crm as root and I'd expect
>> > a general outcry if creating shadow cibs didn't work.
>> >
>> > There could be a problem if you're using another username with
>> > the 0 uid. BTW, does anything fiddle with the USER environment
>> > variable or is it really set to "root"?
>> >
>> >> The other files in that folder are owned by hacluster.
>> >
>> > Yes, that's expected.
>> >
>> > Thanks,
>> >
>> > Dejan
>> >
>> >> Cheers,
>> >>
>> >> Guillaume.
>> >>
>> >>
>> >>
>> >>
>> >> On 11 May 2012 15:38, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
>> >> > Hi,
>> >> >
>> >> > On Fri, May 11, 2012 at 03:14:16PM +0100, Guillaume Belrose wrote:
>> >> >> Hi all,
>> >> >>
>> >> >> I am using Pacemaker on Fedora16 and going through the steps as described in
>> >> >> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/_configure_the_cluster_for_drbd.html
>> >> >>
>> >> >> The operation to create a new shadow cib fails with a but which is the
>> >> >> exactly the same as the one reported for OpenSUSE:
>> >> >> https://bugzilla.novell.com/show_bug.cgi?id=703868#c1
>> >> >>
>> >> >> I am using Fedora16 with corosync 1.4.3 and Pacemaker version
>> >> >> 1.1.7-2.fc16 (Build: ee0730e13d124c3d58f00016c3376a1de5323cff)
>> >> >>
>> >> >> I am not sure if this is a Fedora16 bug or a Pacemaker issue.
>> >> >
>> >> > How do you run crm, as which uid/username? There could be slight
>> >> > differences in how crm (the shell) and crm_shadow resolve
>> >> > shadow locations (directory).
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Dejan
>> >> >
>> >> >> Thanks in advance,
>> >> >>
>> >> >> Guillaume.
>> >> >>
>> >> >> _______________________________________________
>> >> >> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> >> >> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >> >>
>> >> >> Project Home: http://www.clusterlabs.org
>> >> >> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> >> >> Bugs: http://bugs.clusterlabs.org
>> >> >
>> >> > _______________________________________________
>> >> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> >> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >> >
>> >> > Project Home: http://www.clusterlabs.org
>> >> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> >> > Bugs: http://bugs.clusterlabs.org
>> >>
>> >> _______________________________________________
>> >> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> >> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >>
>> >> Project Home: http://www.clusterlabs.org
>> >> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> >> Bugs: http://bugs.clusterlabs.org
>> >
>> > _______________________________________________
>> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >
>> > Project Home: http://www.clusterlabs.org
>> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> > Bugs: http://bugs.clusterlabs.org
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list