Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Content imported from a Scroll Translations translation file.

...

Sv translation
languagede

PCS Cluster ist erforderlich für:

  • Die Rolle LB (Load Balancer), 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-Pakete:

Translations Ignore


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



Managed Services deaktivieren (beide Knoten)

Deaktivieren Sie smb, da diese durch einen pacemaker gesteuert wird:

Translations Ignore


Code Block
titleDisable Managed Services
systemctl disable smb



Konfigurieren der Firewall (beide Knoten)

Konfigurieren Sie als Nächstes die Firewall für ha-Dienste:

Translations Ignore


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


Benutzerpasswort ändern (beide Knoten)

Ändern Sie das Passwort des hacluster-Benutzers (ersetzen Sie <password> durch das gewählte Passwort):

Translations Ignore


Code Block
titleSetup hosts and create user and password
echo <password> | passwd --stdin hacluster


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 sollen:

Translations Ignore


Code Block
titleSetup hosts and create user and password
KE_HOST1=uk-acd-store1
KE_HOST2=uk-acd-store2



Cluster-Konfiguration (Nur auf einem Knoten!)

Konfigurieren Sie nun den Cluster und stellen Sie einige grundlegende Optionen ein - ersetzen Sie <password> durch das gewählte Passwort:

Translations Ignore


Code Block
titleConfigure cluster
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

Überprüfen Sie die Ergebnisse auf beiden Maschinen:

Translations Ignore


Code Block
titleTest
pcs status
 
# It might take a little time for the cluster to come online. Run the above command, until the cluster comes online on both nodes.
 
-->
 
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



Sv translation
languagefr

Translations Ignore


Code Block
title
yum -y install pacemaker pcs resource-agents fence-agents-all systemctl enable pcsd systemctl enable corosync systemctl enable pacemaker systemctl start pcsd.service


Translations Ignore


Code Block
title
systemctl disable smb


Translations Ignore


Code Block
title
firewall-cmd --zone=public --add-service=high-availability --permanent firewall-cmd --reload 


Translations Ignore


Code Block
title
echo <password> | passwd --stdin hacluster


Translations Ignore


Code Block
title
KE_HOST1=uk-acd-store1 KE_HOST2=uk-acd-store2 


Translations Ignore


Code Block
title
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 


Translations Ignore


Code Block
title
pcs status   # It might take a little time for the cluster to come online. Run the above command, until the cluster comes online on both nodes.   -->   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