| From: | Gene <genekhart(at)gmail(dot)com> |
|---|---|
| To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: postgresql fails to start after symlinking pgdata dir |
| Date: | 2007-02-05 21:31:53 |
| Message-ID: | 430d92a20702051331j24ead37at555c713a4017b97d@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Tom,
You were right i just considered that a few minutes ago before getting your
response.
I set SELINUX=disabled in /etc/sysconfig/selinux and it started up ok.
a note in this file: http://pgfoundry.org/docman/?group_id=1000048 would be
handy for those who forget easily and aren't sysadmins :)
thanks!
On 2/5/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Gene < genekhart(at)gmail(dot)com> writes:
> > In the past I've always done the following with success (this is under
> > fedora core 6 x86_64):
>
> > mv /var/lib/pgsql/data /data/pg/
> > ln -s /data/pg/data /var/lib/pgsql/data
> > /etc/init.d/postgresql start
>
> > I just installed 8.2.2 on a new FC6 machine and when I do that it fails
> to
> > start. The logs reveal nothing.
>
> Smells like a SELinux problem --- you probably need to set the
> appropriate security context on /data/pg. It might even take an update
> to the policy ... not sure if the /var/lib/pgsql path is wired into the
> policy or if it's just driven off file context markers. Look for avc
> denied messages in the kernel log to get a hint.
>
> Or you could just do "setenforce 0" but I don't recommend that ...
>
> regards, tom lane
>
--
Gene Hart
cell: 443-604-2679
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron Johnson | 2007-02-06 05:21:18 | Re: When to use compound PK instead of a FK? |
| Previous Message | Tom Lane | 2007-02-05 21:26:24 | Re: postgresql fails to start after symlinking pgdata dir |