Moving data to another disk

From: "Clodoaldo Pinto Neto" <clodoaldo(dot)pinto(at)gmail(dot)com>
To: "pgsql-general postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Moving data to another disk
Date: 2006-10-02 17:59:43
Message-ID: a595de7a0610021059g4d9c5d21m2f4cbb9d5275d697@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I want to move the data directory to another disk and mantain the
config files in the same place. I will change the data_directory
parameter in postgresql.conf.

I could just copy everything under /var/lib/pgsql/data to the other
disk but I also want to clean the diretory now used thus I need to
know for sure what files/directories are data.

I have read the 50.1 section of the postgres manual.

I suppose all directories under /var/lib/pgsql/data are data
directories and i guess the postmaster.opts, postmaster.pid and
PG_VERSION files should stay in the config directory and obviously the
*.conf files are config files. Am i right?

Regards, Clodoaldo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brandon Aiken 2006-10-02 18:03:30 Re: Advantages of postgresql
Previous Message Alexander Staubo 2006-10-02 17:25:12 Re: Weird disk write load caused by PostgreSQL?