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

Mailing List Archive: Linux-HA: Users

pgsql RA

 

 

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


vchepkov at gmail

Aug 31, 2010, 12:29 PM

Post #1 of 4 (337 views)
Permalink
pgsql RA

Hi,

It seems pgsql RA has a flaw:

Aug 31 19:14:43 xen-1 pgsql[9298]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:14:43.227949+00 (1 row)
Aug 31 19:16:43 xen-1 pgsql[9915]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:16:43.427126+00 (1 row)
Aug 31 19:18:43 xen-1 pgsql[10527]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:18:43.625361+00 (1 row)
Aug 31 19:20:43 xen-1 pgsql[11145]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:20:43.818247+00 (1 row)
Aug 31 19:22:44 xen-1 pgsql[11754]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:22:44.004922+00 (1 row)


since postgresql RA does this:

runasowner() {
ocf_run su $OCF_RESKEY_pgdba -c "$*"
}

It can't have this directory as "current", unless I change the permissions.

[root [at] xen- ~]# ls -ld /var/lib/heartbeat/cores/root
drwx------ 2 root root 4096 Jul 28 18:52 /var/lib/heartbeat/cores/root


resource-agents-1.0.3
cluster-glue-1.0.6

Sincerely,
Vadym
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


sergeyfd at gmail

Aug 31, 2010, 12:41 PM

Post #2 of 4 (332 views)
Permalink
Re: pgsql RA [In reply to]

That's not actually a problem since it doesn't impact functionality
and just generates that INFO message. Though it probably worth fixing
by adding - into su command. I'll test it and submit a patch.

On Tue, Aug 31, 2010 at 1:29 PM, Vadym Chepkov <vchepkov [at] gmail> wrote:
> Hi,
>
> It seems pgsql RA has a flaw:
>
> Aug 31 19:14:43 xen-1 pgsql[9298]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:14:43.227949+00 (1 row)
> Aug 31 19:16:43 xen-1 pgsql[9915]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:16:43.427126+00 (1 row)
> Aug 31 19:18:43 xen-1 pgsql[10527]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:18:43.625361+00 (1 row)
> Aug 31 19:20:43 xen-1 pgsql[11145]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:20:43.818247+00 (1 row)
> Aug 31 19:22:44 xen-1 pgsql[11754]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:22:44.004922+00 (1 row)
>
>
> since postgresql RA does this:
>
> runasowner() {
>    ocf_run su $OCF_RESKEY_pgdba -c "$*"
> }
>
> It can't have this directory as "current", unless I change the permissions.
>
> [root [at] xen- ~]# ls -ld /var/lib/heartbeat/cores/root
> drwx------ 2 root root 4096 Jul 28 18:52 /var/lib/heartbeat/cores/root
>
>
> resource-agents-1.0.3
> cluster-glue-1.0.6
>
> Sincerely,
> Vadym
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>



--
Serge Dubrouski.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


vchepkov at gmail

Aug 31, 2010, 12:52 PM

Post #3 of 4 (333 views)
Permalink
Re: pgsql RA [In reply to]

On Aug 31, 2010, at 3:41 PM, Serge Dubrouski wrote:

> That's not actually a problem since it doesn't impact functionality
> and just generates that INFO message. Though it probably worth fixing
> by adding - into su command. I'll test it and submit a patch.

I don't think 'su -' is a good general solution, $OCF_RESKEY_pgdba might not have a legitimate shell or have something crazy in .profile
maybe "cd $SOME_TMP" before su ?


>
> On Tue, Aug 31, 2010 at 1:29 PM, Vadym Chepkov <vchepkov [at] gmail> wrote:
>> Hi,
>>
>> It seems pgsql RA has a flaw:
>>
>> Aug 31 19:14:43 xen-1 pgsql[9298]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:14:43.227949+00 (1 row)
>> Aug 31 19:16:43 xen-1 pgsql[9915]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:16:43.427126+00 (1 row)
>> Aug 31 19:18:43 xen-1 pgsql[10527]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:18:43.625361+00 (1 row)
>> Aug 31 19:20:43 xen-1 pgsql[11145]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:20:43.818247+00 (1 row)
>> Aug 31 19:22:44 xen-1 pgsql[11754]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:22:44.004922+00 (1 row)
>>
>>
>> since postgresql RA does this:
>>
>> runasowner() {
>> ocf_run su $OCF_RESKEY_pgdba -c "$*"
>> }
>>
>> It can't have this directory as "current", unless I change the permissions.
>>
>> [root [at] xen- ~]# ls -ld /var/lib/heartbeat/cores/root
>> drwx------ 2 root root 4096 Jul 28 18:52 /var/lib/heartbeat/cores/root
>>
>>
>> resource-agents-1.0.3
>> cluster-glue-1.0.6
>>
>> Sincerely,
>> Vadym
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>>
>
>
>
> --
> Serge Dubrouski.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


sergeyfd at gmail

Aug 31, 2010, 1:24 PM

Post #4 of 4 (332 views)
Permalink
Re: pgsql RA [In reply to]

On Tue, Aug 31, 2010 at 1:52 PM, Vadym Chepkov <vchepkov [at] gmail> wrote:
>
> On Aug 31, 2010, at 3:41 PM, Serge Dubrouski wrote:
>
>> That's not actually a problem since it doesn't impact functionality
>> and just generates that INFO message. Though it probably worth fixing
>> by adding - into su command. I'll test it and submit a patch.
>
> I don't think 'su -' is a good general solution, $OCF_RESKEY_pgdba might not have a legitimate shell or have something crazy in .profile
> maybe "cd $SOME_TMP" before su ?

$OCF_RESKEY_pgdata then.

>
>
>>
>> On Tue, Aug 31, 2010 at 1:29 PM, Vadym Chepkov <vchepkov [at] gmail> wrote:
>>> Hi,
>>>
>>> It seems pgsql RA has a flaw:
>>>
>>> Aug 31 19:14:43 xen-1 pgsql[9298]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:14:43.227949+00 (1 row)
>>> Aug 31 19:16:43 xen-1 pgsql[9915]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:16:43.427126+00 (1 row)
>>> Aug 31 19:18:43 xen-1 pgsql[10527]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:18:43.625361+00 (1 row)
>>> Aug 31 19:20:43 xen-1 pgsql[11145]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:20:43.818247+00 (1 row)
>>> Aug 31 19:22:44 xen-1 pgsql[11754]: INFO: could not change directory to "/var/lib/heartbeat/cores/root" now ------------------------------- 2010-08-31 19:22:44.004922+00 (1 row)
>>>
>>>
>>> since postgresql RA does this:
>>>
>>> runasowner() {
>>>    ocf_run su $OCF_RESKEY_pgdba -c "$*"
>>> }
>>>
>>> It can't have this directory as "current", unless I change the permissions.
>>>
>>> [root [at] xen- ~]# ls -ld /var/lib/heartbeat/cores/root
>>> drwx------ 2 root root 4096 Jul 28 18:52 /var/lib/heartbeat/cores/root
>>>
>>>
>>> resource-agents-1.0.3
>>> cluster-glue-1.0.6
>>>
>>> Sincerely,
>>> Vadym
>>> _______________________________________________
>>> Linux-HA mailing list
>>> Linux-HA [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> See also: http://linux-ha.org/ReportingProblems
>>>
>>
>>
>>
>> --
>> Serge Dubrouski.
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>



--
Serge Dubrouski.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
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 Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.