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

Guillaume Belrose kafecho at gmail.com
Fri May 11 14:51:29 UTC 2012


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




More information about the Pacemaker mailing list