I. 최신 버전 다운로드 경로

support.oracle.com에서 아래 문서 검색 후 OS에 맞는 설치 파일 다운로드
Autonomous Health Framework (AHF) On-Premise (Doc ID 2832630.1)

II. 자동 업그레이드

A) 설치 파일 압축 해제

unzip <다운로드 경로>/AHF-LINUX_v21.4.1.zip -d /root/ahf
[root@rac1 ~]# unzip /media/sf_oracle/AHF-LINUX_v21.4.1.zip -d /root/ahf
Archive:  /media/sf_oracle/AHF-LINUX_v21.4.1.zip
  inflating: /root/ahf/README.txt
  inflating: /root/ahf/ahf_setup
 extracting: /root/ahf/ahf_setup.dat
  inflating: /root/ahf/oracle-tfa.pub
  
[root@rac1 ~]# cd ./ahf/

[root@rac1 ahf]# ls
README.txt  ahf_setup  ahf_setup.dat  oracle-tfa.pub

B) 패치 수행

./ahf_setup
[root@rac1 ahf]# ./ahf_setup

AHF Installer for Platform Linux Architecture x86_64

AHF Installation Log : /tmp/ahf_install_214100_17399_2022_01_28-11_19_46.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 21.4.1 Build Date: 202201112133

AHF is already installed at /opt/oracle.ahf

Installed AHF Version: 20.4.4 Build Date: 202103031514

Do you want to upgrade AHF [Y]|N : y ==> 업그레이드 선택

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

1. rac2

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
Stopped OSWatcher
Nothing to do !
Shutting down TFA
Removed symlink /etc/systemd/system/multi-user.target.wants/oracle-tfa.service.
Removed symlink /etc/systemd/system/graphical.target.wants/oracle-tfa.service.
. . . . .
. . .
Successfully shutdown TFA..
/usr/bin/checkmodule:  loading policy configuration from inittfa-policy.te
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 19) to inittfa-policy.mod

Starting AHF Services
Starting TFA..
Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Waiting up to 100 seconds for TFA to be started..
. . . . .
Successfully started TFA Process..
. . . . .
TFA Started and listening for commands
No new directories were added to TFA
Directory /u01/app/oracle/crsdata/rac1/trace/chad was already added to TFA Directories.


INFO: orachk 스케줄러를 백그라운드로 시작하는 중입니다. /u01/app/oracle/oracle.ahf/data/rac1/diag/orachk/compliance_start_280122_112255.log에서 프로세스에 대한 세부정보를 확인할 수 있습니다.


AHF upgrade completed on rac1

Upgrading AHF on Remote Nodes :

AHF will be installed on rac2, Please wait.

AHF will prompt twice to install/upgrade per Remote Node. So total 2 prompts

Do you want to continue Y|[N] : y ==> 원격 업데이트 선택

AHF will continue with Upgrading on remote nodes

Upgrading AHF on rac2 :

[rac2] Copying AHF Installer
root@rac2's password: ==> 2번 노드 root 암호 입력

[rac2] Running AHF Installer
root@rac2's password: ==> 2번 노드 root 암호 입력

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

AHF is successfully upgraded to latest version

.------------------------------------------------------------.
| Host | TFA Version | TFA Build ID         | Upgrade Status |
+------+-------------+----------------------+----------------+
| rac1 |  21.4.1.0.0 | 21410020220111213353 | UPGRADED       |
| rac2 |  21.4.1.0.0 | 21410020220111213353 | UPGRADED       |
'------+-------------+----------------------+----------------'

Moving /tmp/ahf_install_214100_17399_2022_01_28-11_19_46.log to /u01/app/oracle/oracle.ahf/data/rac1/diag/ahf/

업그레이드 결과 확인


ahfctl version
[root@rac1 ~]# ahfctl

tfactl> help

Usage : /u01/app/19c/grid/bin/tfactl <command> [options]
    commands:diagcollect|collection|analyze|ips|run|start|stop|enable|disable|status|print|access|purge|directory|host|set|toolstatus|uninstall|diagnosetfa|syncnodes|upload|availability|rest|events|search|changes|isa|blackout|rediscover|modifyprofile|refreshconfig|get|version|floodcontrol|queryindex|index|purgeindex|purgeinventory
For detailed help on each command use:
  /u01/app/19c/grid/bin/tfactl <command> -help

tfactl> version

AHF 버전: 21.4.1

tfactl> status

.--------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID   | Port | Version    | Build ID             | Inventory Status |
+------+---------------+-------+------+------------+----------------------+------------------+
| rac1 | RUNNING       | 21573 | 5000 | 21.4.1.0.0 | 21410020220111213353 | COMPLETE         |
| rac2 | RUNNING       | 19759 | 5000 | 21.4.1.0.0 | 21410020220111213353 | COMPLETE         |
'------+---------------+-------+------+------------+----------------------+------------------'

tfactl> toolstatus

Running command tfactltoolstatus on rac2 ...

.------------------------------------------------------------------.
|                    TOOLS STATUS - HOST : rac2                    |
+----------------------+--------------+--------------+-------------+
| Tool Type            | Tool         | Version      | Status      |
+----------------------+--------------+--------------+-------------+
| AHF Utilities        | alertsummary |       21.4.1 | DEPLOYED    |
|                      | calog        |       21.4.1 | DEPLOYED    |
|                      | dbglevel     |       21.4.1 | DEPLOYED    |
|                      | grep         |       21.4.1 | DEPLOYED    |
|                      | history      |       21.4.1 | DEPLOYED    |
|                      | ls           |       21.4.1 | DEPLOYED    |
|                      | managelogs   |       21.4.1 | DEPLOYED    |
|                      | menu         |       21.4.1 | DEPLOYED    |
|                      | orachk       |       21.4.1 | DEPLOYED    |
|                      | param        |       21.4.1 | DEPLOYED    |
|                      | ps           |       21.4.1 | DEPLOYED    |
|                      | pstack       |       21.4.1 | DEPLOYED    |
|                      | summary      |       21.4.1 | DEPLOYED    |
|                      | tail         |       21.4.1 | DEPLOYED    |
|                      | triage       |       21.4.1 | DEPLOYED    |
|                      | vi           |       21.4.1 | DEPLOYED    |
+----------------------+--------------+--------------+-------------+
| Development Tools    | oratop       |       14.1.2 | DEPLOYED    |
+----------------------+--------------+--------------+-------------+
| Support Tools Bundle | darda        | 2.10.0.R6036 | DEPLOYED    |
|                      | oswbb        |        8.3.2 | RUNNING     |
|                      | prw          | 12.1.13.11.4 | NOT RUNNING |
'----------------------+--------------+--------------+-------------'

Note :-
  DEPLOYED    : Installed and Available - To be configured or run interactively.
  NOT RUNNING : Configured and Available - Currently turned off interactively.
  RUNNING     : Configured and Available.


.------------------------------------------------------------------.
|                    TOOLS STATUS - HOST : rac1                    |
+----------------------+--------------+--------------+-------------+
| Tool Type            | Tool         | Version      | Status      |
+----------------------+--------------+--------------+-------------+
| AHF Utilities        | alertsummary |       21.4.1 | DEPLOYED    |
|                      | calog        |       21.4.1 | DEPLOYED    |
|                      | dbglevel     |       21.4.1 | DEPLOYED    |
|                      | grep         |       21.4.1 | DEPLOYED    |
|                      | history      |       21.4.1 | DEPLOYED    |
|                      | ls           |       21.4.1 | DEPLOYED    |
|                      | managelogs   |       21.4.1 | DEPLOYED    |
|                      | menu         |       21.4.1 | DEPLOYED    |
|                      | orachk       |       21.4.1 | DEPLOYED    |
|                      | param        |       21.4.1 | DEPLOYED    |
|                      | ps           |       21.4.1 | DEPLOYED    |
|                      | pstack       |       21.4.1 | DEPLOYED    |
|                      | summary      |       21.4.1 | DEPLOYED    |
|                      | tail         |       21.4.1 | DEPLOYED    |
|                      | triage       |       21.4.1 | DEPLOYED    |
|                      | vi           |       21.4.1 | DEPLOYED    |
+----------------------+--------------+--------------+-------------+
| Development Tools    | oratop       |       14.1.2 | DEPLOYED    |
+----------------------+--------------+--------------+-------------+
| Support Tools Bundle | darda        | 2.10.0.R6036 | DEPLOYED    |
|                      | oswbb        |        8.3.2 | RUNNING     |
|                      | prw          | 12.1.13.11.4 | NOT RUNNING |
'----------------------+--------------+--------------+-------------'

Note :-
  DEPLOYED    : Installed and Available - To be configured or run interactively.
  NOT RUNNING : Configured and Available - Currently turned off interactively.
  RUNNING     : Configured and Available.

III. 수동 업그레이드

A) 기존 설치 정보 확인

find . -name ahf
tfactl
[root@rac1 /]# find . -name ahf
./opt/oracle.ahf/ahf
./u01/app/oracle/oracle.ahf/data/rac1/diag/ahf

[root@rac1 opt]# tfactl
WARNING - TFA Software is older than 180 days. Please consider upgrading TFA to the latest version.

B) 기존 버전 삭제

cd <AHF 설치 경로>/bin/
./uninstallahf.sh
[root@rac1 ~]# cd /opt/oracle.ahf/bin/

[root@rac1 bin]# ./uninstallahf.sh
Starting AHF Uninstall
NOTE : Uninstalling will delete the repository as well since Install type is GI
AHF will be uninstalled on:
rac1
rac2

Do you want to continue with AHF uninstall ? [Y]|N : y ==> 삭제 선택

Stopping AHF service on local node rac1...
Stopping TFA Support Tools...

Removed symlink /etc/systemd/system/multi-user.target.wants/oracle-tfa.service.
Removed symlink /etc/systemd/system/graphical.target.wants/oracle-tfa.service.


Stopping and removing AHF in rac2...
The authenticity of host 'rac2 (10.0.1.102)' can't be established.
ECDSA key fingerprint is SHA256:Fk/XLhXMDES44Kp3pZrMq1+pg9pYj41fOLMi1zC3z2s.
ECDSA key fingerprint is MD5:ff:28:01:c7:b0:9b:4f:a9:6e:28:3e:ef:8a:8f:70:70.
Are you sure you want to continue connecting (yes/no)? yes ==> 삭제 선택
Warning: Permanently added 'rac2,10.0.1.102' (ECDSA) to the list of known hosts.
root@rac2's password: ==> 2번 노드 root 암호 입력
Removed symlink /etc/systemd/system/multi-user.target.wants/oracle-tfa.service.
Removed symlink /etc/systemd/system/graphical.target.wants/oracle-tfa.service.
Successfully uninstalled AHF on node rac2
Removing AHF setup on rac1:
Removing /etc/rc.d/rc0.d/K17init.tfa
Removing /etc/rc.d/rc1.d/K17init.tfa
Removing /etc/rc.d/rc2.d/K17init.tfa
Removing /etc/rc.d/rc4.d/K17init.tfa
Removing /etc/rc.d/rc6.d/K17init.tfa
Removing /etc/init.d/init.tfa...
Removing /etc/systemd/system/oracle-tfa.service...
Removing /u01/app/19c/grid/bin/tfactl...
Removing /opt/oracle.ahf/rpms
Removing /opt/oracle.ahf/jre
Removing /opt/oracle.ahf/common
Removing /opt/oracle.ahf/bin
Removing /opt/oracle.ahf/python
Removing /opt/oracle.ahf/analyzer
Removing /opt/oracle.ahf/tfa
Removing /opt/oracle.ahf/orachk
Removing /opt/oracle.ahf/ahf
Removing /u01/app/oracle/oracle.ahf/data/rac1
Removing /opt/oracle.ahf/install.properties
Removing /u01/app/oracle/oracle.ahf/data/repository
Removing /u01/app/oracle/oracle.ahf/data
Removing /u01/app/oracle/oracle.ahf
Removing AHF Home : /opt/oracle.ahf
Removing /sys/fs/cgroup/cpu/oratfagroup/

C) 삭제 결과 확인

ls /opt
[root@rac1 opt]# ls
ORCLfmap  VBoxGuestAdditions-6.1.30  oracle  rh  ==> 경로에 oracle.ahf 삭제 확인

D) 신규 버전 설치 준비

mkdir -p /opt/oracle.ahf
unzip <설치 파일 다운로드 경로>/AHF-LINUX_v21.4.1.zip -d /opt/oracle.ahf/
[root@rac1 ~]# mkdir -p /opt/oracle.ahf

[root@rac1 ~]# unzip /media/sf_oracle/AHF-LINUX_v21.4.1.zip -d /opt/oracle.ahf/
Archive:  /media/sf_oracle/AHF-LINUX_v21.4.1.zip
  inflating: /opt/oracle.ahf/README.txt
  inflating: /opt/oracle.ahf/ahf_setup
 extracting: /opt/oracle.ahf/ahf_setup.dat
  inflating: /opt/oracle.ahf/oracle-tfa.pub

[root@rac1 ~]# cd /opt/oracle.ahf/

[root@rac1 oracle.ahf]# ls
README.txt  ahf_setup  ahf_setup.dat  oracle-tfa.pub

신규 버전 설치

./ahf_setup
[root@rac1 oracle.ahf]# ./ahf_setup

AHF Installer for Platform Linux Architecture x86_64

AHF Installation Log : /tmp/ahf_install_214100_23467_2022_01_28-10_59_26.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 21.4.1 Build Date: 202201112133

Default AHF Location : /opt/oracle.ahf

Do you want to install AHF at [/opt/oracle.ahf] ? [Y]|N : y ==> 설치 경로 확인

AHF Location : /opt/oracle.ahf

AHF Data Directory stores diagnostic collections and metadata.
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.

Choose Data Directory from below options :

1. /u01/app/oracle [Free Space : 65664 MB]
2. Enter a different Location

Choose Option [1 - 2] : 1 ==> 메타 데이터 및 분석 데이터 경로 확인

AHF Data Directory : /u01/app/oracle/oracle.ahf/data

Do you want to add AHF Notification Email IDs ? [Y]|N : n ==> 이메일 수신 취소 선택

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

1. rac2

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 ==> 클러스터 노드 설치 선택

Extracting AHF to /opt/oracle.ahf

Configuring TFA Services

Discovering Nodes and Oracle Resources
/usr/bin/checkmodule:  loading policy configuration from inittfa-policy.te
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 19) to inittfa-policy.mod

Not generating certificates as GI discovered

Starting TFA Services
Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.

.-------------------------------------------------------------------------.
| Host | Status of TFA | PID   | Port | Version    | Build ID             |
+------+---------------+-------+------+------------+----------------------+
| rac1 | RUNNING       | 25072 | 5000 | 21.4.1.0.0 | 21410020220111213353 |
'------+---------------+-------+------+------------+----------------------'

Running TFA Inventory...

Adding default users to TFA Access list...

.--------------------------------------------------------------.
|                 Summary of AHF Configuration                 |
+-----------------+--------------------------------------------+
| Parameter       | Value                                      |
+-----------------+--------------------------------------------+
| AHF Location    | /opt/oracle.ahf                            |
| TFA Location    | /opt/oracle.ahf/tfa                        |
| Orachk Location | /opt/oracle.ahf/orachk                     |
| Data Directory  | /u01/app/oracle/oracle.ahf/data            |
| Repository      | /u01/app/oracle/oracle.ahf/data/repository |
| Diag Directory  | /u01/app/oracle/oracle.ahf/data/rac1/diag  |
'-----------------+--------------------------------------------'


Starting orachk scheduler from AHF ...

AHF install completed on rac1

Installing AHF on Remote Nodes :

AHF will be installed on rac2, Please wait.

AHF will prompt twice to install/upgrade per Remote Node. So total 2 prompts

Do you want to continue Y|[N] : y ==> 클러스터 작업 진행 선택

AHF will continue with Installing on remote nodes

Installing AHF on rac2 :

[rac2] Copying AHF Installer
root@rac2's password: ==> 2번 노드 root 암호 입력

[rac2] Running AHF Installer
root@rac2's password: ==> 2번 노드 root 암호 입력

AHF binaries are available in /opt/oracle.ahf/bin

AHF is successfully installed

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

Moving /tmp/ahf_install_214100_23467_2022_01_28-10_59_26.log to /u01/app/oracle/oracle.ahf/data/rac1/diag/ahf/

업그레이드 결과 확인

ahfctl version
[root@rac1 ~]# ahfctl version

AHF 버전 : 21.4.1
  • 레이블 없음