File: README.Debian

package info (click to toggle)
pcs 0.9.155%2Bdfsg-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,424 kB
  • sloc: python: 61,672; xml: 17,483; ruby: 15,669; sh: 265; makefile: 211
file content (113 lines) | stat: -rw-r--r-- 3,563 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Instructions for PCS - Pacemaker/Corosync configuration system on Debian
========================================================================

1. Adding PCS to an existing cluster
------------------------------------

These instructions assume you wish to install PCS on a running
Pacemaker/Corosync cluster already configured using crmsh.

First of all, install pcs package on all cluster nodes and
check that pcsd service is running on each of the nodes:

  # service pcsd status
  * pcsd.service - PCS GUI and remote configuration interface
     Loaded: loaded (/lib/systemd/system/pcsd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2016-12-11 18:54:48 UTC; 8min ago

Service pcsd uses TCP port 2224 so make sure this port is open
for access by all cluster nodes.

Next, set a password for hacluster user on all cluster nodes:

  # passwd hacluster
  Enter new UNIX password:
  Retype new UNIX password:
  passwd: password updated successfully

Finally, authenticate the cluster nodes by running only on one of them:

  # pcs cluster auth
  Username: hacluster
  Password:
  node1: Authorized
  node2: Authorized

Cluster is now fully operational and both crm and pcs commands can
be used to manage cluster resources:

  # pcs cluster status
  Cluster Status:
   Stack: corosync
   Current DC: node1 (version 1.1.16-94ff4df) - partition with quorum
   Last updated: Sun Dec 11 19:10:26 2016
   Last change: Sun Dec 11 18:55:45 2016 by hacluster via crmd on node1
   2 nodes configured
   1 resource configured

  PCSD Status:
    node1: Online
    node2: Online


2. Initializing a new cluster using PCS
---------------------------------------

These instructions assume you wish to create a new Pacemaker/Corosync
cluster using PCS.

WARNING: Do not run the commands from this section on a working
cluster as they will delete the existing cluster configuration
and therefore influence running cluster resources.

First of all, install pcs package on all cluster nodes.  After
package installation cluster services (corosync, pacemaker and pcsd)
should be running on all nodes with default configuration.

As PCS expects Corosync and Pacemaker to be in unconfigured state,
the following command needs to be executed on all cluster nodes to
stop the services and delete their default configuration:

  # pcs cluster destroy
  Shutting down pacemaker/corosync services...
  Killing any remaining services...
  Removing all cluster configuration files...

Next, set a password for hacluster user on all cluster nodes:

  # passwd hacluster
  Enter new UNIX password:
  Retype new UNIX password:
  passwd: password updated successfully

Then authenticate the cluster nodes by running only on one of them:

  # pcs cluster auth node1 node2
  Username: hacluster
  Password:
  node1: Authorized
  node2: Authorized

Finally, the cluster is configured and started by running on one
of the nodes:

  # pcs cluster setup --start --name debian node1 node2
  Destroying cluster on nodes: node1, node2...
  node1: Stopping Cluster (pacemaker)...
  node2: Stopping Cluster (pacemaker)...
  node1: Successfully destroyed cluster
  node2: Successfully destroyed cluster

  Sending cluster config files to the nodes...
  node1: Succeeded
  node2: Succeeded

  Synchronizing pcsd certificates on nodes node1, node2...
  node1: Success
  node2: Success

  Restarting pcsd on the nodes in order to reload the certificates...
  node1: Success
  node2: Success

 -- Valentin Vidic <Valentin.Vidic@CARNet.hr>  Sun, 11 Dec 2016 20:49:18 +0100