On Tue, Jan 04, 2011 at 02:28:14PM -0600, Michael Hittesdorf wrote:
> I fixed my problem. I noticed that the shadow cibs were being created in the 
> /var/lib/heartbeat/crm directory with root ownership and without rw 
> permissions. I suspect that the crm utility could not read these files. All 
> of the other files in the directory are owned by hacluster:haclient. I 
> decided to change the owner of the shadow cib I just created to 
> hacluster:haclient.  I then tried to su to hacluster and access my cib. This 
> failed because the /var/lib/heartbeat/cores/hacluster directory did not 
> exist. It looks like crm tries to create a .crm_help_index file there. I 
> created the directories and chowned them to hacluster:haclient. I then was 
> able to su to hacluster and run the command 'crm cib list'. This time my 
> shadow cib was displayed. I was also able to create a new shadow cib with the 
> command 'crm cib new test'.
> 
> Hope this helps someone who might be having a similar problem on Centos5

That's certainly a very interesting experience you had. Could it
be that there is some extra security thing running which
prevents root from creating files in /var/lib/heartbeat/crm? Or
they were created but then root couldn't read them?

Thanks,

Dejan

> Mick
> 
> -----Original Message-----
> From: Dejan Muhamedagic [mailto:deja...@fastmail.fm] 
> Sent: Tuesday, January 04, 2011 10:26 AM
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] Error when trying to create shadow cib
> 
> On Tue, Jan 04, 2011 at 10:13:32AM -0600, Michael Hittesdorf wrote:
> > I installed pacemaker with yum. The specific commands I used are:
> > 
> > # add clusterlabs yum repository
> > wget -O /etc/yum.repos.d/pacemaker.repo 
> > 
> > # install heartbeat and pacemaker
> > yum install -y pacemaker.x86_64 heartbeat.x86_64 
> > 
> > Is there a better alternative to install heartbeat and pacemaker? I am 
> > running Centos 5.5.
> 
> I don't think so. Does rpm -q --verify says that all's OK? Did
> you check that directory too?
> 
> Otherwise, you can do:
> 
> # strace -o /tmp/shadow.trc crm_shadow --create newtestcib < /dev/null
> 
> Then look at the trace file to see where crm_shadow tries to
> create the file.
> 
> Thanks,
> 
> Dejan
> 
> > Thanks. Mick
> > 
> > 
> > -----Original Message-----
> > From: Dejan Muhamedagic [mailto:deja...@fastmail.fm] 
> > Sent: Tuesday, January 04, 2011 10:07 AM
> > To: The Pacemaker cluster resource manager
> > Subject: Re: [Pacemaker] Error when trying to create shadow cib
> > 
> > Hi,
> > 
> > On Fri, Dec 31, 2010 at 12:11:32PM -0600, Michael Hittesdorf wrote:
> > > When I try to create a shadow cib I am getting an error. Command output is
> > > as follows:
> > > 
> > > [r...@node1 hittesdm]# crm cib new test
> > > INFO: test shadow CIB created
> > > ERROR: test: no such shadow CIB
> > > 
> > > If I then try to use the shadow cib Otest¹ that I just created, I get an
> > > error also:
> > > 
> > > [r...@node1 hittesdm]# crm cib use test
> > > ERROR: test: no such shadow CIB
> > > 
> > > Has anybody seen this problem before? Is this a permissions problem? It
> > > doesn¹t seem likely because I am running as root.
> > 
> > I haven't seen this issue so far. Looks like your installation
> > may be broken. How did you install pacemaker? The usual location
> > for shadow CIBs is /var/lib/heartbeat/crm.
> > 
> > > I am new to this list so I was also wondering if there was an easy way to
> > > search the mailing list archives?
> > 
> > gmane? There are also some other searchable archives.
> > 
> > Thanks,
> > 
> > Dejan
> > 
> > > Thanks much.  Mick
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > This message is intended only for the personal and confidential use of 
> > > the recipients named above.  If the reader of this email is not the 
> > > intended recipient, you have received this email in error and any review, 
> > > dissemination, distribution or copying is strictly prohibited.  If you 
> > > have received this email in error, please notify the sender immediately 
> > > by return email and permanently delete the copy you received.  This 
> > > message is provided for informational purposes and should not be 
> > > construed as a solicitation or offer to buy or sell any securities or 
> > > related financial instruments.  Neither CTC Holdings nor any affiliates 
> > > (CTC) are responsible for any recommendation, solicitation, offer or 
> > > agreement or any information about any transaction, customer account or 
> > > account activity that may be attached to or contained in this 
> > > communication. CTC accepts no liability for any content contained in the 
> > > email, or any errors or omissions arising as a result of e-mail 
> > > transmission.  Any opinions contained in this email constitute the 
> > > sender's best judgment at this time and are subject to change without 
> > > notice. CTC London Limited is authorized and regulated by the Financial 
> > > Services Authority.
> > 
> > > _______________________________________________
> > > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> > 
> > 
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> > 
> > 
> > This message is intended only for the personal and confidential use of the 
> > recipients named above.  If the reader of this email is not the intended 
> > recipient, you have received this email in error and any review, 
> > dissemination, distribution or copying is strictly prohibited.  If you have 
> > received this email in error, please notify the sender immediately by 
> > return email and permanently delete the copy you received.  This message is 
> > provided for informational purposes and should not be construed as a 
> > solicitation or offer to buy or sell any securities or related financial 
> > instruments.  Neither CTC Holdings nor any affiliates (CTC) are responsible 
> > for any recommendation, solicitation, offer or agreement or any information 
> > about any transaction, customer account or account activity that may be 
> > attached to or contained in this communication. CTC accepts no liability 
> > for any content contained in the email, or any errors or omissions arising 
> > as a result of e-mail transmission.  Any opinions contained in this email 
> > constitute the sender's best judgment at this time and are subject to 
> > change without notice. CTC London Limited is authorized and regulated by 
> > the Financial Services Authority.
> > 
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> 
> 
> This message is intended only for the personal and confidential use of the 
> recipients named above.  If the reader of this email is not the intended 
> recipient, you have received this email in error and any review, 
> dissemination, distribution or copying is strictly prohibited.  If you have 
> received this email in error, please notify the sender immediately by return 
> email and permanently delete the copy you received.  This message is provided 
> for informational purposes and should not be construed as a solicitation or 
> offer to buy or sell any securities or related financial instruments.  
> Neither CTC Holdings nor any affiliates (CTC) are responsible for any 
> recommendation, solicitation, offer or agreement or any information about any 
> transaction, customer account or account activity that may be attached to or 
> contained in this communication. CTC accepts no liability for any content 
> contained in the email, or any errors or omissions arising as a result of 
> e-mail transmission.  Any opinions contained in this email constitute the 
> sender's best judgment at this time and are subject to change without notice. 
> CTC London Limited is authorized and regulated by the Financial Services 
> Authority.
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

_______________________________________________
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to