Re: what happend to my database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: what happend to my database
Дата
Msg-id 13918.1212029485@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: what happend to my database  (Steve Holdoway <steve.holdoway@firetrust.com>)
Ответы Re: what happend to my database  ("Medi Montaseri" <montaseri@gmail.com>)
Список pgsql-admin
Steve Holdoway <steve.holdoway@firetrust.com> writes:
> "Medi Montaseri" <montaseri@gmail.com> wrote:
>> I think the following happend...
>> Since my PGDATA was on an iSCSI device, by the time /etc/rc3.d/S64postgresql
>> was executed, the device below it was not available.....question...why the
>> error says "permission denied" vs "file not found".  In the meantime, pg_ctl
>> kept trying and finally concluded that the data directory is blank, and
>> hence this must be a out-of-box case and he is good to initdb the PGDATA and
>> as it called initdb to do the job... the iSCSI volume below it came online
>> and by then the bomb had already been dropped.
>>
>> Now I need to find some facts to support this...
> When you mount a partition on linux, it does this by overlaying it's root directory with the existing one on the
parentvolume. Ownerships and permissions are also replaced. I expect that the /qmsvol directory will be owned by root,
withfairly restrictive access rights. This will not be the case the root ( . ) directory on the external device, which
willbe postgres-friendly. 
>> Where else can I look for forensics
> I don't think you need any more! To fix this, I'd do 2 things. First, start postgres much later in the boot sequence:
>   cd /etc/rc3.d ; mv S64postgresql S99postgresql
> ( and the same in rc5.d if you're using a gui at all ).

The other thing to do is remove the auto-initdb behavior in your startup
script.  We've done that in recent releases because of prior reports of
this type of problem.  The OP's script is evidently still old-school,
though.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Steve Holdoway
Дата:
Сообщение: Re: what happend to my database
Следующее
От: "Medi Montaseri"
Дата:
Сообщение: Re: what happend to my database