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

Mailing List Archive: Linux-HA: Users

cibadmin.

 

 

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


martinsson.patrik at gmail

Jul 2, 2008, 11:53 PM

Post #1 of 4 (135 views)
Permalink
cibadmin.

Hello again,

Thanks alot people for helping me out with my earlier question.

I have a short question about this cibadmin, maybe im missing something
here, but.

When i use cibadmin to update my cib, the actual cluster gets updated but
the actual file, cib.xml, doesn't, which ofcourse means that, if i take down
heartbeat and start it again it will read from the cib.xml which is the old
one, meaning old settings.

Wouldn't it be better if cibadmin actually wrote to the cib.xml ?
Or as i stated above, am i missing something here ?

Best regards,
Patrik Martinsson, student, sweden.
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


linux-ha at mm

Jul 3, 2008, 12:31 AM

Post #2 of 4 (127 views)
Permalink
Re: cibadmin. [In reply to]

On Thu, Jul 03, 2008 at 08:53:35AM +0200, Patrik Martinsson wrote:
> When i use cibadmin to update my cib, the actual cluster gets
> updated but the actual file, cib.xml, doesn't, which ofcourse
> means that, if i take down heartbeat and start it again it will
> read from the cib.xml which is the old one, meaning old settings.
>
> Wouldn't it be better if cibadmin actually wrote to the cib.xml ?
> Or as i stated above, am i missing something here ?

It's definitely supposed to automatically update the on-disc copy
after any changes are made. Have you checked the logs to see if
there's any references to the file?

When you're updating it, are you first replacing the one in the
/var/lib/heartbeat/crm location, and then loading that? I'm not sure
how heartbeat manages it precisely, but it does check the .sig files
to make sure it hasn't been modified. I'm not sure if modifying it
will prevent it from automatically writing it out; or perhaps the
heartbeat user simply doesn't have permission to write to these
files if they've been created by your configuration management
system?

On my system, it certainly writes any changes that I've imported
using cibadmin to disc right away, on both nodes.
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


martinsson.patrik at gmail

Jul 3, 2008, 1:19 AM

Post #3 of 4 (122 views)
Permalink
Re: cibadmin. [In reply to]

Thanks for the reply.

You where right, my permissions was a bit off. I didnt even have the .sig
file, now it works like it supposed to.

Again, thanks very much appriciated.

Best regards,
Patrik Martinsson, student, Sweden.


2008/7/3 Michael Alger <linux-ha[at]mm.quex.org>:

> On Thu, Jul 03, 2008 at 08:53:35AM +0200, Patrik Martinsson wrote:
> > When i use cibadmin to update my cib, the actual cluster gets
> > updated but the actual file, cib.xml, doesn't, which ofcourse
> > means that, if i take down heartbeat and start it again it will
> > read from the cib.xml which is the old one, meaning old settings.
> >
> > Wouldn't it be better if cibadmin actually wrote to the cib.xml ?
> > Or as i stated above, am i missing something here ?
>
> It's definitely supposed to automatically update the on-disc copy
> after any changes are made. Have you checked the logs to see if
> there's any references to the file?
>
> When you're updating it, are you first replacing the one in the
> /var/lib/heartbeat/crm location, and then loading that? I'm not sure
> how heartbeat manages it precisely, but it does check the .sig files
> to make sure it hasn't been modified. I'm not sure if modifying it
> will prevent it from automatically writing it out; or perhaps the
> heartbeat user simply doesn't have permission to write to these
> files if they've been created by your configuration management
> system?
>
> On my system, it certainly writes any changes that I've imported
> using cibadmin to disc right away, on both nodes.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA[at]lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


beekhof at gmail

Jul 3, 2008, 2:11 AM

Post #4 of 4 (123 views)
Permalink
Re: cibadmin. [In reply to]

On Thu, Jul 3, 2008 at 09:31, Michael Alger <linux-ha[at]mm.quex.org> wrote:
> On Thu, Jul 03, 2008 at 08:53:35AM +0200, Patrik Martinsson wrote:
>> When i use cibadmin to update my cib, the actual cluster gets
>> updated but the actual file, cib.xml, doesn't, which ofcourse
>> means that, if i take down heartbeat and start it again it will
>> read from the cib.xml which is the old one, meaning old settings.
>>
>> Wouldn't it be better if cibadmin actually wrote to the cib.xml ?
>> Or as i stated above, am i missing something here ?
>
> It's definitely supposed to automatically update the on-disc copy
> after any changes are made. Have you checked the logs to see if
> there's any references to the file?
>
> When you're updating it, are you first replacing the one in the
> /var/lib/heartbeat/crm location, and then loading that? I'm not sure
> how heartbeat manages it precisely, but it does check the .sig files
> to make sure it hasn't been modified. I'm not sure if modifying it
> will prevent it from automatically writing it out;

it will
or at least it will in older versions, i think newer versions move the
modified file out of the way and keep writing.

> or perhaps the
> heartbeat user simply doesn't have permission to write to these
> files if they've been created by your configuration management
> system?
>
> On my system, it certainly writes any changes that I've imported
> using cibadmin to disc right away, on both nodes.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA[at]lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.