Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sv translation
languagede

PCS Cluster is required forist erforderlich für:

  • The role Die Rolle LB (Load Balancer), if two load balancers are used for redundancy
  • The role STORE (file storage), if two file stores are setup using DRBD for redundancy

If the system does not contain redundancy, do not install this.

Install PCS Services (Both nodes)

  • wenn zwei Load Balancer zur Redundanz verwendet werden
  • die Rolle STORE (Dateiablage), wenn zwei Dateiablagen mit DRBD zur Redundanz eingerichtet sind

Wenn das System keine Redundanz enthält, installieren Sie diese nicht.

PCS Services Installieren (Beide Knoten)

Installieren Sie die PCS-PaketeInstall the PCS packages:

Code Block
titleInstall packagesPakete Installieren
yum -y install pacemaker pcs resource-agents fence-agents-all
systemctl enable pcsd
systemctl enable corosync
systemctl enable pacemaker
systemctl start pcsd.service
Disable

Managed Services deaktivieren (

Both nodes

beide Knoten)

Disable smb since this will be managed by pacemakerDeaktivieren Sie smb, da diese durch einen pacemaker gesteuert wird:

Code Block
titleDisable Managed Services Deaktivieren
systemctl disable smb
Configure the

Konfigurieren der Firewall (

Both nodes)

beide Knoten)

Konfigurieren Sie als Nächstes die Firewall für ha-DiensteNext configure the firewall for ha services:

Code Block
titleConfigure firewall Firewall Konfigurieren
firewall-cmd --zone=public --add-service=high-availability --permanent
firewall-cmd --reload

Change user password (Both nodes)

Benutzerpasswort ändern (beide Knoten)

Ändern Sie das Passwort des hacluster-Benutzers (ersetzen Sie <password> durch das gewählte PasswortChange the password of the hacluster user (replace <password> with the chosen password):

Code Block
titleSetup hosts and create user and passwordHosts einrichten und Benutzer und Passwort erstellen
echo <password> | passwd --stdin hacluster

Configuration (Only on one node!)

Konfiguration (Nur auf einem Knoten!)

Als nächstes konfigurieren Sie die Namen der Rechner und die virtuelle IP-Adresse, die im Cluster gemeinsam genutzt werden sollenNext configure the names of the machines and the virtual IP address which will be shared in the cluster:

Code Block
titleSetup hosts and create user and passwordHosts einrichten und Benutzer und Passwort erstellen
KE_HOST1=uk-acd-store1
KE_HOST2=uk-acd-store2

Cluster

Configuration (Only on one node!)

-Konfiguration (Nur auf einem Knoten!)

Konfigurieren Sie nun den Cluster und stellen Sie einige grundlegende Optionen ein - ersetzen Sie <password> durch das gewählte PasswortNow configure the cluster and set some basic options - replace <password> with the chosen password:

Code Block
titleConfigure clusterCluster Konfigurieren
pcs cluster auth ${KE_HOST1} ${KE_HOST2} -u hacluster -p <password> --force
pcs cluster setup --force --name portal ${KE_HOST1} ${KE_HOST2}
pcs cluster enable --all
pcs cluster start --all
pcs property set stonith-enabled=false
pcs property set no-quorum-policy=ignore
pcs resource defaults migration-threshold=1

Test

Check the results on both machinesÜberprüfen Sie die Ergebnisse auf beiden Maschinen:

Code Block
titleTest
pcs status
 
# ItEs mightkönnte takeein awenig littledauern, timebis forder theCluster clusteronline toist. comeFühren online.Sie Runden theobigen aboveBefehl commandaus, untilbis theder clusterCluster comesauf onlinebeiden onKnoten bothonline nodesist.
 
-->
 
Cluster name: portal
Stack: corosync
Current DC: uk-acd-store2 (version 1.1.16-12.el7_4.8-94ff4df) - partition with quorum
Last updated: Mon Mar 19 15:24:25 2018
Last change: Mon Mar 19 15:24:20 2018 by hacluster via crmd on uk-acd-store2

2 nodes configured
0 resources configured

Online: [ uk-acd-store1 uk-acd-store2 ]

No resources


Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled