Smarter gleichzeitige Fixpackaktualisierungen für Db2 pureScale -Instanzen ausführen
Sie können mehrere Hosts in einer Db2 pureScale -Instanz aktualisieren, während die verbleibenden Member und Cluster-Caching-Funktionen weiterhin Transaktionen verarbeiten.
Vorbereitende Schritte
- All prerequisites are met. Weitere Informationen finden Sie unter Installation eines Fixpacks vorbereiten.
- Sie verfügen über Rootberechtigung und Instanzeignerberechtigung.
- Online-Fixpack-Updates werden zwischen der Db2 -Version, die auf Ihrer Db2 pureScale -Instanz installiert ist, und der Db2 -Version des Fixpacks oder speziellen Builds, die Sie installieren möchten, unterstützt. Führen Sie den Befehl installFixPack mit der Option -show_level_info aus, um zu ermitteln, ob die Aktualisierung unterstützt wird. Führen Sie den Befehl an der Position des neuen Fixpacks oder des speziellen Build-Image aus.
Das folgende Beispiel zeigt eine Beispielausgabe für die Ausführung voninstallFixPack -show_level_info:Code level = Version:11 Release:5 Modification:8 Fixpack:0 Architecture level = Version:11 Release:5 Modification:8 Fixpack:0 Section level = Version:11 Release:5 Modification:8 Fixpack:0 Supports online update = Yes Minimum committed code level required for online install = Version:11 Release:5 Modification:6 Fixpack:0 The execution completed successfully. For more information see the DB2 installation log at "/tmp/installFixPack.log.13369572". DBI1070I Program installFixPack completed successfully.
Informationen zu dieser Task
- -concurrency: Aktualisiert automatisch alle Hosts in einem Cluster mit einem angegebenen Grad des gemeinsamen Zugriffs
- -autoupdate: Aktualisiert automatisch alle Hosts in einem Cluster mit einem optimalen Grad des gemeinsamen Zugriffs.
- Alle Hosts müssen aktualisiert werden, bevor Sie Änderungen festschreiben und die Db2 pureScale -Instanz aktualisieren können.
- Der Wert des Parameters -concurrency darf nicht mehr als die Hälfte der Mitglieder sein.
- Diese Aktualisierungsmethode wird für geografisch verteilte Db2 pureScale Cluster (GDPC) nicht unterstützt.
- Die sekundäre CF muss sich im Peerstatus befinden, nachdem sie aktualisiert wurde. Diese Statusänderung erfolgt automatisch, wenn eine Verbindung zu einer Datenbank hergestellt wird, nachdem die sekundäre CF aktualisiert wurde.
Prozedur
Beispiel
# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -autoupdate -show_update_order -y
DBI1961I The installFixPack command was run with -show_update_order. This option is informational and no update operation will occur.
The installFixPack command will update the hosts with concurrency "3".
The installFixPack command will update the hosts in the following order:
host1.ibm.com,host2.ibm.com,host3.ibm.com,
host4.ibm.com,
host5.ibm.com,
host6.ibm.com
Wenn der Befehl -show_update_order erfolgreich ausgeführt wird, führen Sie die reale Aktualisierung aus. Das folgende Beispiel zeigt die Befehlssyntax und Ausgabe der Ausführung des Befehls installFixPack mit der Option -autoupdate :# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -autoupdate -y
Performing online fixpack update on host: "host1.ibm.com".
Performing online fixpack update on host: "host2.ibm.com".
Performing online fixpack update on host: "host3.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host1.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host1.ibm.com" for details.
Performing online fixpack update on host: "host4.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host2.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host2.ibm.com" for details.
Performing online fixpack update on host: "host5.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host3.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host3.ibm.com" for details.
Performing online fixpack update on host: "host6.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host4.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host4.ibm.com" for details.
DBI1964I The online fixpack update operation succeeded on "host5.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host5.ibm.com" for details.
DBI1964I The online fixpack update operation succeeded on "host6.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host6.ibm.com" for details.
Beispiel 2: Halten Sie weitere Hosts während der Aktualisierung online, indem Sie die Option -concurrency < Anzahl Hosts > verwenden.
# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -concurrency 2 -show_update_order -y
DBI1961I The installFixPack command was run with -show_update_order. This option is informational and no update operation will occur.
The installFixPack command will update the hosts with concurrency "2".
The installFixPack command will update the hosts in the following order:
host1.ibm.com,host2.ibm.com,
host3.ibm.com,
host4.ibm.com,
host5.ibm.com,
host6.ibm.com-show_update_order erfolgreich ausgeführt wird, führen Sie die reale Aktualisierung aus. Das folgende Beispiel zeigt die Befehlssyntax und die Ausgabe der Ausführung des Befehls installFixPack mit der Option -concurrency auf 2:# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -concurrency 2 -y
Performing online fixpack update on host: "host1.ibm.com".
Performing online fixpack update on host: "host2.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host1.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host1.ibm.com" for details.
Performing online fixpack update on host: "host3.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host2.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host2.ibm.com" for details.
Performing online fixpack update on host: "host4.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host3.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host3.ibm.com" for details.
Performing online fixpack update on host: "host5.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host4.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host4.ibm.com" for details.
Performing online fixpack update on host: "host6.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host5.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host5.ibm.com" for details.
DBI1964I The online fixpack update operation succeeded on "host6.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host6.ibm.com" for details.Nächste Schritte
Sie können die Aktualisierung auf einem einzelnen Host überwachen, indem Sie eine separate Sitzung auf diesem Host öffnen. Überprüfen Sie nach der Anmeldung den Inhalt von /tmp/installFixPack_Concurrent.log.<pid> , um den Status der Aktualisierung zu überwachen.
Wenn während des gleichzeitigen Fixpack-Updates ein Fehler auftritt, überprüfen Sie die Protokolle auf Details. Wenn das Problem behoben ist, können Sie den Rest des Cluster manuell aktualisieren oder die Anweisungen ab Schritt 2 befolgen. Das Installationsprogramm überwacht die Hosts, die aktualisiert wurden, sodass Aktualisierungen nur auf die Hosts angewendet werden, die sie benötigen.