Can not start PostgreSQL replication resource with Corosync/Pacemaker on CentOS 7Pacemaker/corosync timeout before resource transfersCorosync with Pacemaker Resource explanationHow to make active/passive jboss resource in pacemakerUbuntu 2 Node Cluster Postgresql 9.3 with pacemaker and Streaming ReplicationCan not start PostgreSQL replication resource with Corosync/PacemakerPacemaker failure-timeout don't reset failcountHow to get Pacemaker to restart services in a groupcorosync systemd resource does not reflect service statusHow to create resource for service using Corosync/PacemakerDRBD with Pacemaker/Corosync
Isn't Kirchhoff's junction law a violation of conservation of charge?
Is it a good idea to teach algorithm courses using pseudocode instead of a real programming language?
Bookshelves: the intruder
Why are stats in Angband written as 18/** instead of 19, 20...?
In how many ways can we partition a set into smaller subsets so the sum of the numbers in each subset is equal?
Why aren't satellites disintegrated even though they orbit earth within earth's Roche Limits?
How do I unravel apparent recursion in an edef statement?
Greek theta instead of lower case þ (Icelandic) in TexStudio
Bash - Execute two commands and get exit status 1 if first fails
Novel where a cube cooled below absolute zero makes a hole in reality
Does science define life as "beginning at conception"?
Can't think of a good word or term to describe not feeling or thinking
Why could the Lunar Ascent Engine be used only once?
Why does snapping your fingers activate the Infinity Gauntlet?
Is my company merging branches wrong?
What should I wear to go and sign an employment contract?
What does this 'x' mean on the stem of the voice's note, above the notehead?
Chain rule instead of product rule
Warped chessboard
What city and town structures are important in a low fantasy medieval world?
Why favour the standard WP loop over iterating over (new WP_Query())->get_posts()?
What does it mean for a program to be 32 or 64 bit?
How do we explain the use of a software on a math paper?
Was Tyrion always a poor strategist?
Can not start PostgreSQL replication resource with Corosync/Pacemaker on CentOS 7
Pacemaker/corosync timeout before resource transfersCorosync with Pacemaker Resource explanationHow to make active/passive jboss resource in pacemakerUbuntu 2 Node Cluster Postgresql 9.3 with pacemaker and Streaming ReplicationCan not start PostgreSQL replication resource with Corosync/PacemakerPacemaker failure-timeout don't reset failcountHow to get Pacemaker to restart services in a groupcorosync systemd resource does not reflect service statusHow to create resource for service using Corosync/PacemakerDRBD with Pacemaker/Corosync
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have 2 VM nodes cluster. Postgres is working in master-slave replication mode normally - Tested this.
While adding pgsql as pcs resource it gives error: From log file
care1 pgsql(pgsql)[30160]: ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
Commands which I have executed:
pcs property set no-quorum-policy="ignore"
pcs property set stonith-enabled="false"
pcs resource defaults resource-stickiness="INFINITY"
pcs resource defaults migration-threshold="1"
pcs resource create vip-master IPaddr2
ip="192.168.1.59" nic="enp0s3"
cidr_netmask="24"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="10s" on-fail="restart"
op stop timeout="60s" interval="0s" on-fail="block"
pcs resource create rpgsql pgsql
pgctl="/usr/pgsql-9.5/bin/pg_ctl"
psql="/usr/pgsql-9.5/bin/psql"
pgdata="/var/lib/pgsql/9.5/data/"
rep_mode="sync"
node_list="care2 care1"
restore_command="cp /var/lib/pgsql/archive/%f %p"
primary_conninfo_opt="keepalives_idle=60 keepalives_interval=5 keepalives_count=5"
master_ip="192.168.1.59"
restart_on_promote="false"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="4s" on-fail="restart"
op monitor timeout="60s" interval="3s" on-fail="restart" role="Master"
op promote timeout="60s" interval="0s" on-fail="restart"
op demote timeout="60s" interval="0s" on-fail="stop"
op stop timeout="60s" interval="0s" on-fail="block"
op notify timeout="60s" interval="0s"
pcs status
[root@care1 data]# pcs status
Cluster name: pcs_cluster
Stack: corosync
Current DC: care1 (version 1.1.15-11.el7_3.2-e174ec8) - partition with quorum
Last updated: Wed Feb 8 10:21:04 2017 Last change: Wed Feb 8 10:08:25 2017 by root via cibadmin on care1
2 nodes and 3 resources configured: 1 resource DISABLED and 0 BLOCKED from being started due to failures
Online: [ care1 care2 ]
Full list of resources:
WebServer (ocf::heartbeat:apache): Stopped (disabled)
vip-master (ocf::heartbeat:IPaddr2): Started care1
pgsql (ocf::heartbeat:pgsql): Stopped
Failed Actions:
* pgsql_start_0 on care2 'not configured' (6): call=62, status=complete, exitreason='Replication(rep_mode=async or sync) requires Master/Slave configuration.',
last-rc-change='Wed Feb 8 10:08:26 2017', queued=0ms, exec=146ms
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
Please advice if I am doing anything wrong
postgresql pacemaker
add a comment |
I have 2 VM nodes cluster. Postgres is working in master-slave replication mode normally - Tested this.
While adding pgsql as pcs resource it gives error: From log file
care1 pgsql(pgsql)[30160]: ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
Commands which I have executed:
pcs property set no-quorum-policy="ignore"
pcs property set stonith-enabled="false"
pcs resource defaults resource-stickiness="INFINITY"
pcs resource defaults migration-threshold="1"
pcs resource create vip-master IPaddr2
ip="192.168.1.59" nic="enp0s3"
cidr_netmask="24"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="10s" on-fail="restart"
op stop timeout="60s" interval="0s" on-fail="block"
pcs resource create rpgsql pgsql
pgctl="/usr/pgsql-9.5/bin/pg_ctl"
psql="/usr/pgsql-9.5/bin/psql"
pgdata="/var/lib/pgsql/9.5/data/"
rep_mode="sync"
node_list="care2 care1"
restore_command="cp /var/lib/pgsql/archive/%f %p"
primary_conninfo_opt="keepalives_idle=60 keepalives_interval=5 keepalives_count=5"
master_ip="192.168.1.59"
restart_on_promote="false"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="4s" on-fail="restart"
op monitor timeout="60s" interval="3s" on-fail="restart" role="Master"
op promote timeout="60s" interval="0s" on-fail="restart"
op demote timeout="60s" interval="0s" on-fail="stop"
op stop timeout="60s" interval="0s" on-fail="block"
op notify timeout="60s" interval="0s"
pcs status
[root@care1 data]# pcs status
Cluster name: pcs_cluster
Stack: corosync
Current DC: care1 (version 1.1.15-11.el7_3.2-e174ec8) - partition with quorum
Last updated: Wed Feb 8 10:21:04 2017 Last change: Wed Feb 8 10:08:25 2017 by root via cibadmin on care1
2 nodes and 3 resources configured: 1 resource DISABLED and 0 BLOCKED from being started due to failures
Online: [ care1 care2 ]
Full list of resources:
WebServer (ocf::heartbeat:apache): Stopped (disabled)
vip-master (ocf::heartbeat:IPaddr2): Started care1
pgsql (ocf::heartbeat:pgsql): Stopped
Failed Actions:
* pgsql_start_0 on care2 'not configured' (6): call=62, status=complete, exitreason='Replication(rep_mode=async or sync) requires Master/Slave configuration.',
last-rc-change='Wed Feb 8 10:08:26 2017', queued=0ms, exec=146ms
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
Please advice if I am doing anything wrong
postgresql pacemaker
add a comment |
I have 2 VM nodes cluster. Postgres is working in master-slave replication mode normally - Tested this.
While adding pgsql as pcs resource it gives error: From log file
care1 pgsql(pgsql)[30160]: ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
Commands which I have executed:
pcs property set no-quorum-policy="ignore"
pcs property set stonith-enabled="false"
pcs resource defaults resource-stickiness="INFINITY"
pcs resource defaults migration-threshold="1"
pcs resource create vip-master IPaddr2
ip="192.168.1.59" nic="enp0s3"
cidr_netmask="24"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="10s" on-fail="restart"
op stop timeout="60s" interval="0s" on-fail="block"
pcs resource create rpgsql pgsql
pgctl="/usr/pgsql-9.5/bin/pg_ctl"
psql="/usr/pgsql-9.5/bin/psql"
pgdata="/var/lib/pgsql/9.5/data/"
rep_mode="sync"
node_list="care2 care1"
restore_command="cp /var/lib/pgsql/archive/%f %p"
primary_conninfo_opt="keepalives_idle=60 keepalives_interval=5 keepalives_count=5"
master_ip="192.168.1.59"
restart_on_promote="false"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="4s" on-fail="restart"
op monitor timeout="60s" interval="3s" on-fail="restart" role="Master"
op promote timeout="60s" interval="0s" on-fail="restart"
op demote timeout="60s" interval="0s" on-fail="stop"
op stop timeout="60s" interval="0s" on-fail="block"
op notify timeout="60s" interval="0s"
pcs status
[root@care1 data]# pcs status
Cluster name: pcs_cluster
Stack: corosync
Current DC: care1 (version 1.1.15-11.el7_3.2-e174ec8) - partition with quorum
Last updated: Wed Feb 8 10:21:04 2017 Last change: Wed Feb 8 10:08:25 2017 by root via cibadmin on care1
2 nodes and 3 resources configured: 1 resource DISABLED and 0 BLOCKED from being started due to failures
Online: [ care1 care2 ]
Full list of resources:
WebServer (ocf::heartbeat:apache): Stopped (disabled)
vip-master (ocf::heartbeat:IPaddr2): Started care1
pgsql (ocf::heartbeat:pgsql): Stopped
Failed Actions:
* pgsql_start_0 on care2 'not configured' (6): call=62, status=complete, exitreason='Replication(rep_mode=async or sync) requires Master/Slave configuration.',
last-rc-change='Wed Feb 8 10:08:26 2017', queued=0ms, exec=146ms
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
Please advice if I am doing anything wrong
postgresql pacemaker
I have 2 VM nodes cluster. Postgres is working in master-slave replication mode normally - Tested this.
While adding pgsql as pcs resource it gives error: From log file
care1 pgsql(pgsql)[30160]: ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
Commands which I have executed:
pcs property set no-quorum-policy="ignore"
pcs property set stonith-enabled="false"
pcs resource defaults resource-stickiness="INFINITY"
pcs resource defaults migration-threshold="1"
pcs resource create vip-master IPaddr2
ip="192.168.1.59" nic="enp0s3"
cidr_netmask="24"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="10s" on-fail="restart"
op stop timeout="60s" interval="0s" on-fail="block"
pcs resource create rpgsql pgsql
pgctl="/usr/pgsql-9.5/bin/pg_ctl"
psql="/usr/pgsql-9.5/bin/psql"
pgdata="/var/lib/pgsql/9.5/data/"
rep_mode="sync"
node_list="care2 care1"
restore_command="cp /var/lib/pgsql/archive/%f %p"
primary_conninfo_opt="keepalives_idle=60 keepalives_interval=5 keepalives_count=5"
master_ip="192.168.1.59"
restart_on_promote="false"
op start timeout="60s" interval="0s" on-fail="restart"
op monitor timeout="60s" interval="4s" on-fail="restart"
op monitor timeout="60s" interval="3s" on-fail="restart" role="Master"
op promote timeout="60s" interval="0s" on-fail="restart"
op demote timeout="60s" interval="0s" on-fail="stop"
op stop timeout="60s" interval="0s" on-fail="block"
op notify timeout="60s" interval="0s"
pcs status
[root@care1 data]# pcs status
Cluster name: pcs_cluster
Stack: corosync
Current DC: care1 (version 1.1.15-11.el7_3.2-e174ec8) - partition with quorum
Last updated: Wed Feb 8 10:21:04 2017 Last change: Wed Feb 8 10:08:25 2017 by root via cibadmin on care1
2 nodes and 3 resources configured: 1 resource DISABLED and 0 BLOCKED from being started due to failures
Online: [ care1 care2 ]
Full list of resources:
WebServer (ocf::heartbeat:apache): Stopped (disabled)
vip-master (ocf::heartbeat:IPaddr2): Started care1
pgsql (ocf::heartbeat:pgsql): Stopped
Failed Actions:
* pgsql_start_0 on care2 'not configured' (6): call=62, status=complete, exitreason='Replication(rep_mode=async or sync) requires Master/Slave configuration.',
last-rc-change='Wed Feb 8 10:08:26 2017', queued=0ms, exec=146ms
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
Please advice if I am doing anything wrong
postgresql pacemaker
postgresql pacemaker
edited Feb 8 '17 at 18:51
Dok
785512
785512
asked Feb 8 '17 at 5:27
khyatikhyati
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The issue is fairly clear within the error:
ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
You will need to configure a MS (Master/Slave) type resource for the rpgsql primitive. See the second example in the documentation to apply this to an already created resource. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/s1-multistateresource-HAAR.html
Example pasted here for convenience:
pcs resource master master/slave_name resource_id|group_name [master_options]
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f831242%2fcan-not-start-postgresql-replication-resource-with-corosync-pacemaker-on-centos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The issue is fairly clear within the error:
ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
You will need to configure a MS (Master/Slave) type resource for the rpgsql primitive. See the second example in the documentation to apply this to an already created resource. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/s1-multistateresource-HAAR.html
Example pasted here for convenience:
pcs resource master master/slave_name resource_id|group_name [master_options]
add a comment |
The issue is fairly clear within the error:
ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
You will need to configure a MS (Master/Slave) type resource for the rpgsql primitive. See the second example in the documentation to apply this to an already created resource. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/s1-multistateresource-HAAR.html
Example pasted here for convenience:
pcs resource master master/slave_name resource_id|group_name [master_options]
add a comment |
The issue is fairly clear within the error:
ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
You will need to configure a MS (Master/Slave) type resource for the rpgsql primitive. See the second example in the documentation to apply this to an already created resource. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/s1-multistateresource-HAAR.html
Example pasted here for convenience:
pcs resource master master/slave_name resource_id|group_name [master_options]
The issue is fairly clear within the error:
ERROR: Replication(rep_mode=async or sync) requires Master/Slave configuration.
You will need to configure a MS (Master/Slave) type resource for the rpgsql primitive. See the second example in the documentation to apply this to an already created resource. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/s1-multistateresource-HAAR.html
Example pasted here for convenience:
pcs resource master master/slave_name resource_id|group_name [master_options]
answered Feb 8 '17 at 17:51
DokDok
785512
785512
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f831242%2fcan-not-start-postgresql-replication-resource-with-corosync-pacemaker-on-centos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown