Diagnostics

Manual Upgrade Autonomous Health Framework

Das Mittel der Wahl, um Informationen wie Healthchecks oder Diagnostic Collections zu bekommen, ist das Autonomous Health Framework (AHF)

In einfachen Schritten lässt sich das AHF auf die neueste Version aktualisieren.

Neben der Dokumentation und wichtigen FAQs findet sich auch die Software in dieser MOS Note:

Autonomous Health Framework (AHF) – Including TFA and ORAchk/EXAchk (Doc ID 2550798.1)

Hat man die neue AHF Version auf das entsprechende System in ein Staging Verzeichnis geladen, kann die Datei entpackt werden.

[root@ra01dbadm01 AHF]# mkdir AHF2320
[root@ra01dbadm01 AHF]# mv AHF-LINUX_v23.2.0.zip AHF2320

[root@ra01dbadm01 AHF]# cd AHF2320/

[root@ra01dbadm01 AHF2320]# ls
AHF-LINUX_v23.2.0.zip

[root@ra01dbadm01 AHF2320]# unzip AHF-LINUX_v23.2.0.zip
Archive:  AHF-LINUX_v23.2.0.zip
  inflating: README.txt
  inflating: ahf_setup
 extracting: ahf_setup.dat
  inflating: oracle-tfa.pub

Nun ist es möglich das AHF auf eine aktuelle Version zu bringen..

[root@ra01dbadm01 AHF2320]# ./ahf_setup

AHF Installer for Platform Linux Architecture x86_64

AHF Installation Log : /tmp/ahf_install_232000_186000_2023_04_20-18_35_53.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 23.2.0 Build Date: 202303021115

AHF is already installed at /opt/oracle.ahf

Installed AHF Version: 21.2.3 Build Date: 202109091658

Do you want to upgrade AHF [Y]|N : Y

AHF will also be installed/upgraded on these Cluster Nodes :

1. ra01dbadm02

The AHF Location and AHF Data Directory must exist on the above nodes
AHF Location : /opt/oracle.ahf
AHF Data Directory : /u01/app/oracle/oracle.ahf/data

Do you want to install/upgrade AHF on Cluster Nodes ? [Y]|N : Y

Upgrading /opt/oracle.ahf

Shutting down AHF Services

Upgrading AHF Services

Starting AHF Services
No new directories were added to TFA
Directory /u01/app/oracle/crsdata/ra01dbadm01/trace/chad was already added to TFA Directories.

AHF upgrade completed on ra01dbadm01

Upgrading AHF on Remote Nodes :

AHF will be installed on ra01dbadm02, Please wait.

Upgrading AHF on ra01dbadm02 :

[ra01dbadm02] Copying AHF Installer

[ra01dbadm02] Running AHF Installer

Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] : N

.-------------------------------------------------------------------.
| Host        | TFA Version | TFA Build ID         | Upgrade Status |
+-------------+-------------+----------------------+----------------+
| ra01dbadm01 |  23.2.0.0.0 | 23200020230302111526 | UPGRADED       |
| ra01dbadm02 |  23.2.0.0.0 | 23200020230302111526 | UPGRADED       |
'-------------+-------------+----------------------+----------------'

Setting up AHF CLI and SDK

AHF is successfully upgraded to latest version

Moving /tmp/ahf_install_232000_186000_2023_04_20-18_35_53.log to /u01/app/oracle/oracle.ahf/data/ra01dbadm01/diag/ahf/

Mit tfactl status lässt sich der Status der AHF Installation anzeigen.

[root@ra01dbadm01 AHF]# tfactl status

.----------------------------------------------------------------------------------------------------.
| Host        | Status of TFA | PID    | Port | Version    | Build ID             | Inventory Status |
+-------------+---------------+--------+------+------------+----------------------+------------------+
| ra01dbadm01 | RUNNING       | 197092 | 5000 | 23.2.0.0.0 | 23200020230302111526 | COMPLETE         |
| ra01dbadm02 | RUNNING       | 297700 | 5000 | 23.2.0.0.0 | 23200020230302111526 | COMPLETE         |
'-------------+---------------+--------+------+------------+----------------------+------------------'

Ein Gesamtüberblick über den Status liefert auch ahfctl statusahf.

[root@ra01dbadm01 sw_stage]# ahfctl statusahf

.----------------------------------------------------------------------------------------------------.
| Host        | Status of TFA | PID    | Port | Version    | Build ID             | Inventory Status |
+-------------+---------------+--------+------+------------+----------------------+------------------+
| ra01dbadm01 | RUNNING       | 197092 | 5000 | 23.2.0.0.0 | 23200020230302111526 | COMPLETE         |
| ra01dbadm02 | RUNNING       | 297700 | 5000 | 23.2.0.0.0 | 23200020230302111526 | COMPLETE         |
'-------------+---------------+--------+------+------------+----------------------+------------------'


-------------------------------------+-----------------------------------------------------------------------------------------------
|Parameter                            | Value                                                                                         |
-------------------------------------+-----------------------------------------------------------------------------------------------
|Master node                          | ra01dbadm01                                                                                   |
|exachk daemon version                | 232000                                                                                        |
|Install location                     | /opt/oracle.ahf/exachk                                                                        |
|Scheduled exachk collection location | /u01/app/oracle/oracle.ahf/data/ra01dbadm01/exachk/user_root/output on Master node ra01dbadm01|
|Started at                           | Wed Apr 20 18:34:16 CEST 2023                                                                 |
|Scheduler type                       | TFA Scheduler                                                                                 |
|Scheduler PID                        | 197092                                                                                        |
-------------------------------------+-----------------------------------------------------------------------------------------------
|Scheduled runs                       |                                                                                               |
-------------------------------------+-----------------------------------------------------------------------------------------------
|Scheduler                            | exachk.autostart_client_exatier1                                                              |
-------------------------------------+-----------------------------------------------------------------------------------------------
|AUTORUN_FLAGS                        | -usediscovery -profile exatier1 -dball -showpass -tag autostart_client_exatier1 -readenvconfig|
|AUTORUN_SCHEDULE                     | 3 2 * * 1,2,3,4,5,6                                                                           |
|COLLECTION_RETENTION                 | 7                                                                                             |
-------------------------------------+-----------------------------------------------------------------------------------------------
|Scheduler                            | exachk.autostart_client                                                                       |
-------------------------------------+-----------------------------------------------------------------------------------------------
|AUTORUN_FLAGS                        | -usediscovery -tag autostart_client -readenvconfig                                            |
|AUTORUN_SCHEDULE                     | 3 3 * * 0                                                                                     |
|COLLECTION_RETENTION                 | 14                                                                                            |
-------------------------------------+-----------------------------------------------------------------------------------------------
|Previous runs                        |                                                                                               |
-------------------------------------+-----------------------------------------------------------------------------------------------
|No previous runs                     |                                                                                               |
-------------------------------------+-----------------------------------------------------------------------------------------------
|Next auto run starts on              | Apr 21, 2023 02:03:00 ID:exachk.autostart_client_exatier1                                     |
-------------------------------------+-----------------------------------------------------------------------------------------------

Leave a Reply

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert