1) Not able to start service Postgresql-9.5 on
[root@bmipgsqlt3 /]# /etc/init.d/postgresql-9.5 restart
Stopping postgresql-9.5 service: [ OK ]
Starting postgresql-9.5 service: [FAILED]
Not able to start the postgres service after making changes following replication configuration from: http://www.unixmen.com/setup-postgresql-replication-centos/
bash-4.1$ pg_basebackup -D /var/lib/pgsql/9.5/data -h 10.200.231.151 -U repluser
NOTICE: WAL archiving is not enabled; you must ensure that all required WAL segments are copied through other means to complete the backup
To get rid of this notice, I need to change WAL_archiving setting from postgres.conf. However, to make that change effective I will need to restart the service which I am not able to do now.
This is slave server and everything is working fine on the master server. I am able to start and stop the service on Master.
PS: I am at the step where I stopped the service on Slave server and executed pg_basebackup
2) I dont see recovery.conf file in /data/ folder after I backuped the data
[root@bmipgsqlt3 /]# cd /var/lib/pgsql/9.5/data/
[root@bmipgsqlt3 data]# ls
backup_label pg_dynshmem pg_multixact pg_stat PG_VERSION
base pg_hba.conf pg_notify pg_stat_tmp pg_xlog
global pg_ident.conf pg_replslot pg_subtrans postgresql.auto.conf
pg_clog pg_log pg_serial pg_tblspc postgresql.conf
pg_commit_ts pg_logical pg_snapshots pg_twophase
Thank you for your time on this. Any help on this is appreciated.