From: | John Scalia <jayknowsunix(at)gmail(dot)com> |
---|---|
To: | srilinux <srilinux09(at)gmail(dot)com> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: unable to find data folder postgres9.4 |
Date: | 2017-03-22 16:23:58 |
Message-ID: | CABzCKRCdLCx6Ct_0UtZsAuxGuXskWVWiH6bhuBuhqQz2wdk6xQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hmmm... Some linux systems do not put the $PGDATA directory where we all
expect it, Ubuntu comes to mind for that. That said, however, if you ran
your "find" as root, and could discover any of the normal subdirectories
under the $PGDATA directory. Then I'm at a loss to try to tell you where
the database might be. This is just awfully weird. One thought that does
come to mind maybe you're missing some NFS or other normally mounted
filesystems on this system, but without those subdirectories, PostgreSQL
will not run.
On Wed, Mar 22, 2017 at 12:15 PM, srilinux <srilinux09(at)gmail(dot)com> wrote:
> Being root user
> [root(at)testserver ~]# ls -al /var/lib/psql/
> ls: cannot access /var/lib/psql/: No such file or directory
> [root(at)testserver ~]# ls -al /var/lib/psql/9.4/
> ls: cannot access /var/lib/psql/9.4/: No such file or directory
> [root(at)testserver ~]# ls -al /var/lib/psql/9.4/data
> ls: cannot access /var/lib/psql/9.4/data: No such file or directory
> [root(at)testserver ~]# sudo su - postgres
>
>
>
>
> ===============
> Being postgress user - output
> -bash-4.2$ id
> uid=26(postgres)
> -bash-4.2$ ls -al /var/lib/psql/
> ls: cannot access /var/lib/psql/: No such file or directory
> -bash-4.2$ ls -al /var/lib/psql/9.4/
> ls: cannot access /var/lib/psql/9.4/: No such file or directory
> -bash-4.2$ ls -al /var/lib/psql/9.4/data
> ls: cannot access /var/lib/psql/9.4/data: No such file or directory
> -bash-4.2$
>
>
>
>
> --
> View this message in context: http://www.postgresql-archive.
> org/unable-to-find-data-folder-postgres9-4-tp5951044p5951282.html
> Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Whitney | 2017-03-22 16:24:45 | Re: unable to find data folder postgres9.4 |
Previous Message | srilinux | 2017-03-22 16:21:04 | Re: unable to find data folder postgres9.4 |