Moving postgresql data cluster

大兔子大兔子 提交于 2019-12-10 04:15:07

问题


Our postgres data folder was installed on a drive with very limited space. I'm now trying to move it over to a newly mounted drive (more space). I've followed several blog posts and they all say...

  1. stop service
  2. copy data cluster
  3. update postgresql-9.1 file (PGDATA=)
  4. restart service

The service starts but when I go to connect, it gives me "could not connect to server: Connection refused"

I tried telnet-ing to port 5432 and nothing.

Here is the link to what I've been trying: http://www-01.ibm.com/support/docview.wss?uid=swg21324272


回答1:


Thanks everyone for your help. Looks like the problem was with permissioning.

Instead of doing

cp -R fromfolder tofolder

I did

cp -a fromfolder tofolder

And that solved it. Thanks all.



来源:https://stackoverflow.com/questions/11265540/moving-postgresql-data-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!