postgresql无法启动
pg_ctl: could not start serverpg_ctl: Examine the log output.systemd: postgresql.service: control process exited, code=exited status=1systemd: postgresql.service: control process exited, code=exited s
pg_ctl: could not start server
pg_ctl: Examine the log output.systemd: postgresql.service: control process exited, code=exited status=1
systemd: postgresql.service: control process exited, code=exited status=1
systemd: Failed to start PostgreSQL database server.
systemd: Failed to start PostgreSQL database server.
systemd: Unit postgresql.service entered failed state.
systemd: Unit postgresql.service entered failed state.
systemd: postgresql.service failed.
systemd: postgresql.service failed.
背景
背景是在有点复杂。。。简单说把数据库目录mount到一个rceph集群的bd上,原来的数据库所在机器挂了。然后另找一台机器,重新mount数据库目录到一个rbd上面。这样的情况下
,数据库没有启动成功。
解决办法
su - postgres
pg_restxlog /var/lib/pgsql/data
切换postgres用户后,清理日志。
更多推荐
所有评论(0)