upgrade AHF

閱讀時間約 18 分鐘
ahf
個人網站: https://kxodia.com
1.下載最新AHF
2.上傳AHF並解壓縮(可能不用解壓縮)
[root@rac1 ahf]# ls -lrt
total 407416
-rw-r--r-- 1 root root 417185977 Feb  8 15:41 AHF-LINUX_v21.4.1.zip
[root@rac1 ahf]# unzip AHF-LINUX_v21.4.1.zip
Archive:  AHF-LINUX_v21.4.1.zip
  inflating: README.txt
  inflating: ahf_setup
 extracting: ahf_setup.dat
  inflating: oracle-tfa.pub
[root@rac1 ahf]# ls -lrt
total 819728
-r-xr-xr-x 1 root root 422188843 Jan 13 03:24 ahf_setup
-rw-r--r-- 1 root root       384 Jan 13 03:26 ahf_setup.dat
-rw-r--r-- 1 root root      1525 Jan 13 03:26 README.txt
-rw-r--r-- 1 root root       625 Jan 13 03:26 oracle-tfa.pub
-rw-r--r-- 1 root root 417185977 Feb  8 15:41 AHF-LINUX_v21.4.1.zip
3.確認目前版本
[root@rac1 ahf]# ahfctl version
AHF version: 21.2.3
4.確認目前ahf狀態
[root@rac1 bin]# ahfctl statusahf
.--------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID   | Port | Version    | Build ID             | Inventory Status |
+------+---------------+-------+------+------------+----------------------+------------------+
| rac1 | RUNNING       | 24753 | 5000 | 21.2.3.0.0 | 21230020210909165804 | COMPLETE         |
| rac2 | RUNNING       | 18577 | 5000 | 21.2.3.0.0 | 21230020210909165804 | COMPLETE         |
'------+---------------+-------+------+------------+----------------------+------------------'
------------------------------------------------------------
Master node = rac1
orachk daemon version = 212300
Install location = /opt/oracle.ahf/orachk
Started at = Tue Feb 08 15:54:27 CST 2022
Scheduler type = TFA Scheduler
Scheduler PID:  24753
------------------------------------------------------------
ID: orachk.autostart_client_oratier1
------------------------------------------------------------
AUTORUN_FLAGS  =  -usediscovery -profile oratier1 -syslog -dball -showpass -tag autostart_client_oratier1 -readenvconfig
COLLECTION_RETENTION  =  7
AUTORUN_SCHEDULE  =  3 2 * * 1,2,3,4,5,6
------------------------------------------------------------
------------------------------------------------------------
ID: orachk.autostart_client
------------------------------------------------------------
AUTORUN_FLAGS  =  -usediscovery -syslog -tag autostart_client -readenvconfig
COLLECTION_RETENTION  =  14
AUTORUN_SCHEDULE  =  3 3 * * 0
------------------------------------------------------------
Next auto run starts on Feb 09, 2022 02:03:00
ID:orachk.AUTOSTART_CLIENT_ORATIER1
5.註冊ahf軟體目錄
[root@rac1 ahf]# ahfctl setupgrade -swstage /source/ahf
AHF autoupgrade parameters successfully updated
Successfully synced AHF configuration
refreshConfig() completed successfully.
6.開始升級
[root@rac1 ahf]# ahfctl upgrade
AHF software signature has been validated successfully
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_214100_30035_2022_02_08-16_05_12.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: 21.2.3 Build Date: 202109091658
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..
Starting AHF Services
Starting TFA..
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/grid/crsdata/rac1/trace/chad was already added to TFA Directories.
INFO: Starting orachk scheduler in background. Details for the process can be found at /u01/app/grid/oracle.ahf/data/rac1/diag/orachk/compliance_start_080222_160753.log
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.2.3.0.0 | 21230020210909165804 | NOT UPGRADED   |
'------+-------------+----------------------+----------------'
Moving /tmp/ahf_install_214100_30035_2022_02_08-16_05_12.log to /u01/app/grid/oracle.ahf/data/rac1/diag/ahf/
Please upgrade AHF on the below mentioned nodes as well using ahfctl upgrade
rac2
7. 節點2 再執行一次(需要將軟體scp 至node 2 相同路徑)
[root@rac2 ~]# ahfctl upgrade
Software stage directory /source/ahf does not exists.
[root@rac2 ~]# mkdir -p /source/ahf
[root@rac2 ~]# ahfctl upgrade
/source/ahf/AHF-LINUX_v21.4.1.zip successfully extracted at /source/ahf
AHF software signature has been validated successfully
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_214100_8825_2022_02_08-16_48_23.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: 21.2.3 Build Date: 202109091658
Upgrading /opt/oracle.ahf
Shutting down AHF Services
TFA-00201 Diagnostic directory not found.
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..
Starting AHF Services
Starting TFA..
Waiting up to 100 seconds for TFA to be started..
. . . . .
Successfully started TFA Process..
. . . . .
TFA Started and listening for commands
INFO: Starting orachk scheduler in background. Details for the process can be found at /u01/app/grid/oracle.ahf/data/rac2/diag/orachk/compliance_start_080222_164929.log
AHF is successfully upgraded to latest version
.------------------------------------------------------------.
| Host | TFA Version | TFA Build ID         | Upgrade Status |
+------+-------------+----------------------+----------------+
| rac2 |  21.4.1.0.0 | 21410020220111213353 | UPGRADED       |
| rac1 |  21.4.1.0.0 | 21410020220111213353 | UPGRADED       |
'------+-------------+----------------------+----------------'
Moving /tmp/ahf_install_214100_8825_2022_02_08-16_48_23.log to /u01/app/grid/oracle.ahf/data/rac2/diag/ahf/
p.s. 發現軟體scp 過來不需要解壓所也可以,或許第二步不需要解壓縮
8.確認結果
[root@rac2 ~]# ahfctl statusahf
.--------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID   | Port | Version    | Build ID             | Inventory Status |
+------+---------------+-------+------+------------+----------------------+------------------+
| rac2 | RUNNING       | 11254 | 5000 | 21.4.1.0.0 | 21410020220111213353 | COMPLETE         |
| rac1 | RUNNING       |  2974 | 5000 | 21.4.1.0.0 | 21410020220111213353 | COMPLETE         |
'------+---------------+-------+------+------------+----------------------+------------------'
------------------------------------------------------------
Master node = rac1
orachk daemon version = 212300
Install location = /opt/oracle.ahf/orachk
Started at = Tue Feb 08 15:57:45 CST 2022
Scheduler type = TFA Scheduler
Scheduler PID:  11254
No scheduler for any ID
[root@rac2 ~]# ahfctl version
AHF version: 21.4.1
留言0
查看全部
發表第一個留言支持創作者!
patchm此文章主要藉由一個exadata 季度補丁來介紹下載方式,解壓縮,與目錄架構。 QFSDP Quarterly Full Stack Download Patch for Exadata (QFSDP)是僅用於EXADATA MACHINE 每季度發行的補丁,內容包括有: Opatch
今天發生了錯誤訊息 ORA-1654: unable to extend index SYS.WRI$_ADV_OBJECTS_IDX_02 by 8192 in tablespace SYSAUX 接著查看占用最大的Segment 可以看到前四名分別為 也能透過以下指令修改為10天 參考文件:
Oracle Database AutoUpgrade 可以讓 DBA 在沒有過多人工干預的情況下,升級一個或多個資料庫,只需一個命令和一個配置文件。
本文以12.1的oracle單機資料庫為例,更新每季出的PSU
使用Azure Backup Service將資料備份到雲端Microsoft Azure平臺,本文摘要說明 Azure 備份架構、元件。
override是控制 SCOM 收集的數據量的關鍵。可以更改 SCOM 的配置,用於監視器(monitors)、屬性(attributes)、對象發現(object discoveries)和規則(rules)。必須具有一定權限才能創建和編輯override。
patchm此文章主要藉由一個exadata 季度補丁來介紹下載方式,解壓縮,與目錄架構。 QFSDP Quarterly Full Stack Download Patch for Exadata (QFSDP)是僅用於EXADATA MACHINE 每季度發行的補丁,內容包括有: Opatch
今天發生了錯誤訊息 ORA-1654: unable to extend index SYS.WRI$_ADV_OBJECTS_IDX_02 by 8192 in tablespace SYSAUX 接著查看占用最大的Segment 可以看到前四名分別為 也能透過以下指令修改為10天 參考文件:
Oracle Database AutoUpgrade 可以讓 DBA 在沒有過多人工干預的情況下,升級一個或多個資料庫,只需一個命令和一個配置文件。
本文以12.1的oracle單機資料庫為例,更新每季出的PSU
使用Azure Backup Service將資料備份到雲端Microsoft Azure平臺,本文摘要說明 Azure 備份架構、元件。
override是控制 SCOM 收集的數據量的關鍵。可以更改 SCOM 的配置,用於監視器(monitors)、屬性(attributes)、對象發現(object discoveries)和規則(rules)。必須具有一定權限才能創建和編輯override。
你可能也想看
Google News 追蹤
Thumbnail
這個秋,Chill 嗨嗨!穿搭美美去賞楓,裝備款款去露營⋯⋯你的秋天怎麼過?秋日 To Do List 等你分享! 秋季全站徵文,我們準備了五個創作主題,參賽還有機會獲得「火烤兩用鍋」,一起來看看如何參加吧~
Thumbnail
美國總統大選只剩下三天, 我們觀察一整週民調與金融市場的變化(包含賭局), 到本週五下午3:00前為止, 誰是美國總統幾乎大概可以猜到60-70%的機率, 本篇文章就是以大選結局為主軸來討論近期甚至到未來四年美股可能的改變
Thumbnail
Faker昨天真的太扯了,中國主播王多多點評的話更是精妙,分享給各位 王多多的點評 「Faker是我們的處境,他是LPL永遠繞不開的一個人和話題,所以我們特別渴望在決賽跟他相遇,去直面我們的處境。 我們曾經稱他為最高的山,最長的河,以為山海就是盡頭,可是Faker用他28歲的年齡...
Thumbnail
搭載Advance引擎的金屬版Upgrade,就是把外觀材質跟握持感做了提升, 售價也往上拉高,我認為給學生用的話的確是偏高了。
Thumbnail
Equip with the right energy by sleeping well and eating correctly and the right meal, to?  To LOVE, whom you feel great when being him/her.  To ...
Thumbnail
After the challenging driving, see the mountains firmly stand, at the far. Clouds come automatically, for celebrating the meaningful moments, with u
TCL Communication upgrades its Alcatel website TCL Communication announced today the launch of Alcatel’s newly upgraded website. Alcatel, a global bra
Thumbnail
2019年尾一直到現在,我一直不斷地被各種不同的領悟衝擊著。這個轉變好似把我原本看待人生的架構給翻轉了一番,害我每一個本來已經設計好的課程都要從頭到尾重新改掉。戀愛與吸引的奧秘也越來越清晰可見,最近我真的佩服起我自己來,竟然能夠從體驗中自己創造出自己的框架跟名詞,把虛無縹緲的東西概念、架構、系統化
Thumbnail
這個秋,Chill 嗨嗨!穿搭美美去賞楓,裝備款款去露營⋯⋯你的秋天怎麼過?秋日 To Do List 等你分享! 秋季全站徵文,我們準備了五個創作主題,參賽還有機會獲得「火烤兩用鍋」,一起來看看如何參加吧~
Thumbnail
美國總統大選只剩下三天, 我們觀察一整週民調與金融市場的變化(包含賭局), 到本週五下午3:00前為止, 誰是美國總統幾乎大概可以猜到60-70%的機率, 本篇文章就是以大選結局為主軸來討論近期甚至到未來四年美股可能的改變
Thumbnail
Faker昨天真的太扯了,中國主播王多多點評的話更是精妙,分享給各位 王多多的點評 「Faker是我們的處境,他是LPL永遠繞不開的一個人和話題,所以我們特別渴望在決賽跟他相遇,去直面我們的處境。 我們曾經稱他為最高的山,最長的河,以為山海就是盡頭,可是Faker用他28歲的年齡...
Thumbnail
搭載Advance引擎的金屬版Upgrade,就是把外觀材質跟握持感做了提升, 售價也往上拉高,我認為給學生用的話的確是偏高了。
Thumbnail
Equip with the right energy by sleeping well and eating correctly and the right meal, to?  To LOVE, whom you feel great when being him/her.  To ...
Thumbnail
After the challenging driving, see the mountains firmly stand, at the far. Clouds come automatically, for celebrating the meaningful moments, with u
TCL Communication upgrades its Alcatel website TCL Communication announced today the launch of Alcatel’s newly upgraded website. Alcatel, a global bra
Thumbnail
2019年尾一直到現在,我一直不斷地被各種不同的領悟衝擊著。這個轉變好似把我原本看待人生的架構給翻轉了一番,害我每一個本來已經設計好的課程都要從頭到尾重新改掉。戀愛與吸引的奧秘也越來越清晰可見,最近我真的佩服起我自己來,竟然能夠從體驗中自己創造出自己的框架跟名詞,把虛無縹緲的東西概念、架構、系統化