Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

Pacemaker is not able to read new shadow CIB.

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


kafecho at gmail

May 11, 2012, 7:14 AM

Post #1 of 9 (752 views)
Permalink
Pacemaker is not able to read new shadow CIB.

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.

Thanks in advance,

Guillaume.

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
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


dejanmm at fastmail

May 11, 2012, 7:38 AM

Post #2 of 9 (696 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

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
> 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
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


kafecho at gmail

May 11, 2012, 7:45 AM

Post #3 of 9 (693 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

I am running as root.

The shadow file gets created under /var/lib/heartbeat/crm and is owned by root.

The other files in that folder are owned by hacluster.

Cheers,

Guillaume.




On 11 May 2012 15:38, Dejan Muhamedagic <dejanmm [at] fastmail> 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
>> 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
> 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
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


kafecho at gmail

May 11, 2012, 7:51 AM

Post #4 of 9 (700 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

Here is the output when I do: strace crm cib new foo --force

<snip/>

write(2, "INFO: foo shadow CIB created", 28INFO: foo shadow CIB created) = 28
write(2, "\n", 1
) = 1
access("/root/.cib/shadow.foo", F_OK) = -1 ENOENT (No such file or directory)
write(2, "ERROR: foo: no such shadow CIB", 30ERROR: foo: no such
shadow CIB) = 30
write(2, "\n", 1
) = 1
write(1, "\33[?1034h", 8) = 8
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {0x42ead730, [], 0}, 8) = 0
exit_group(0) = ?

It seems to want to read the file /root/.cib/shadow.foo instead of the
one located in
/var/lib/heartbeat/crm



On 11 May 2012 15:45, Guillaume Belrose <kafecho [at] gmail> wrote:
> I am running as root.
>
> The shadow file gets created under /var/lib/heartbeat/crm and is owned by root.
>
> The other files in that folder are owned by hacluster.
>
> Cheers,
>
> Guillaume.
>
>
>
>
> On 11 May 2012 15:38, Dejan Muhamedagic <dejanmm [at] fastmail> 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
>>> 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
>> 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
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


kafecho at gmail

May 11, 2012, 11:34 PM

Post #5 of 9 (678 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

Hi again,

I am also experiencing the same problem when running on Centos6.2
I eventually created a symbolic link /root/.cib pointing to
/var/lib/hearbeat/crm and that seems to fix the problem on both
Fedora16 and Centos6.2.

Cheers,

Guillaume.


On 11 May 2012 15:38, Dejan Muhamedagic <dejanmm [at] fastmail> 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
>> 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
> 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
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


dejanmm at fastmail

May 14, 2012, 8:26 AM

Post #6 of 9 (680 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

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> 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
> >> 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
> > 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
> 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
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


kafecho at gmail

May 14, 2012, 9:07 AM

Post #7 of 9 (680 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

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.

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> 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> 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
>> >> 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
>> > 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
>> 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
> 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
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


dejanmm at fastmail

May 15, 2012, 12:44 AM

Post #8 of 9 (675 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

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> 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> 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
> >> >> 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
> >> > 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
> >> 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
> > 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
> 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
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


kafecho at gmail

May 15, 2012, 1:27 AM

Post #9 of 9 (677 views)
Permalink
Re: Pacemaker is not able to read new shadow CIB. [In reply to]

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> 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> 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> 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
>> >> >> 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
>> >> > 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
>> >> 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
>> > 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
>> 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
> 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
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

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.