Обсуждение: How to move data folder to another mount pount

Поиск
Список
Период
Сортировка

How to move data folder to another mount pount

От
clingareddy@vsoftcorp.com
Дата:

Hi All,

 

i am using 1TB for my pg_data folder for postgres. But my 1TB if filled with base folder only.

 

Now i had 2TB another mount point, so i want to move my data folder or new mount point. So please suggest me how to move data folder or my base folder to another location.

 

 

Thanks,

Chandra Kiran L

DBA - TEAM


 

Please do not print this email unless it is absolutely necessary. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail and destroy all copies of this message and any attachments. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

Re: How to move data folder to another mount pount

От
Matheus de Oliveira
Дата:

On Sun, Dec 20, 2015 at 11:32 AM, <clingareddy@vsoftcorp.com> wrote:

i am using 1TB for my pg_data folder for postgres. But my 1TB if filled with base folder only.

 

Now i had 2TB another mount point, so i want to move my data folder or new mount point. So please suggest me how to move data folder or my base folder to another location.


You have two options: (1) create a new tablespace at the new mount point and move the database(s) or some relations or (2) move the entire PGDATA directory to the new mount point.

For the option (2) we need to know which OS/distro you are using and how you installed PostgreSQL (package, EDB installer, etc.).

Best regards,
--
Matheus de Oliveira