From: | Greg Smith <greg(at)2ndquadrant(dot)com> |
---|---|
To: | Sairam Krishnamurthy <kmsram420(at)gmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Moving the data directory |
Date: | 2011-02-16 12:51:46 |
Message-ID: | 4D5BC862.7000301@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Sairam Krishnamurthy wrote:
> I am using Ubuntu 10.04 and Postgres 8.4, I have been trying to move
> my data dir to another device for the past couple of days but ran into
> a lot of problems.
>
> I did the following:
>
> 1. Copy the contents of /var/lib/postgresql/8.4/main to my folder.
> 2. Changed the data_directory in postgresql.conf.
>
> When I start postgres using /etc/init.d script I get the following error,
>
> * Starting PostgreSQL 8.4 database server
> * Error: could not exec /usr/lib/postgresql/8.4/bin/pg_ctl
> /usr/lib/postgresql/8.4/bin/pg_ctl start -D
> /media/extension/var/lib/postgresql/8.4/main/ -l
> /var/log/postgresql/postgresql-8.4-main.log -s -o -c
> config_file="/etc/postgresql/8.4/main/postgresql.conf" :
>
Debian and Ubuntu installations have a unique feature where you can have
multiple PostgreSQL installations installed at the same time.
Accordingly, the standard ways of managing the database described in the
regular PostgreSQL documentation don't always work. See
http://www.stuartellis.eu/articles/postgresql-setup/ for a quick intro
to this, specifically the "Using Multiple PostgreSQL Clusters" section.
What you may need to change here is not the database's postgresql.conf,
but instead the database cluster list you see when running pg_lsclusters.
--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2011-02-16 13:06:45 | Re: LC_COLLATE and pg_upgrade |
Previous Message | Bernhard Schrader | 2011-02-16 12:14:18 | Re: LC_COLLATE and pg_upgrade |