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
查看全部
發表第一個留言支持創作者!
Azure Backup service
閱讀時間約 6 分鐘
Oracle 單機資料庫打Patch
閱讀時間約 5 分鐘
Oracle - AutoUpgrade
閱讀時間約 11 分鐘
Exadata Patch 介紹
閱讀時間約 4 分鐘
你可能也想看
迎新活動「方格新手村」:新格友註冊加入方格子,知名日料吃到飽餐券送給你! 👉 還不是 vocus 的會員嗎?點此註冊,參與新手村活動 👈 近期站上也出現了不少新格友,為了歡迎各位的加入,「方格新手村」隨之登場! 即日起,只要是新註冊帳號於活動期間內發佈 3 則文章,就有機會抽獎獲得知名日料吃到飽餐券。原格友也可以一起同樂,我們準備了小任
Thumbnail
2024-06-21
101
川普當選,對台股是利多還是利空?川普在槍擊事件中所表現出來的英勇形象,讓他贏得美國總統大選幾乎已成定局。沒想到他隨口的一句話「台灣搶走美國的晶片生意,所以要付保護費」,就讓台積電在短短三天跌掉超過100 元,台股也跌掉1100點以上。台積電、台股會就此一路下跌嗎?未來該如何因應?  
Thumbnail
2024-07-20
67
金融科技與生活美學的融合 CUBE App實踐自我理想最近開啟了研究工作,也開始斜槓著手團購、行銷、洽談業務,慢慢想打造一條屬於自己的道路,而工作忙碌之虞,總忘記自己刷卡消費明細、信用卡繳費,還會忽略了最應該的投資理財,也常常在忙碌奔波中忘記信用卡優惠,國泰世華CUBE App給足了這些功能和服務。 日常生活與數位、科技形影不離,同時也拉近彼此距
Thumbnail
2024-07-11
22
[文具皇民病][自動鉛筆]UNI KURU TOGA ADVANCE UPGRADE M5-1030搭載Advance引擎的金屬版Upgrade,就是把外觀材質跟握持感做了提升, 售價也往上拉高,我認為給學生用的話的確是偏高了。
Thumbnail
2021-12-22
5
033021A Upgrade& 提升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
2021-03-30
1
020821 Upgrade& 昇華After the challenging driving, see the mountains firmly stand, at the far. Clouds come automatically, for celebrating the meaningful moments, with u
Thumbnail
2021-02-16
0
TCL Communication upgrades its Alcatel websitTCL Communication upgrades its Alcatel website TCL Communication announced today the launch of Alcatel’s newly upgraded website. Alcatel, a global bra
2020-03-19
0
SYSTEM UPGRADED 系統已升級 2019年尾一直到現在,我一直不斷地被各種不同的領悟衝擊著。這個轉變好似把我原本看待人生的架構給翻轉了一番,害我每一個本來已經設計好的課程都要從頭到尾重新改掉。戀愛與吸引的奧秘也越來越清晰可見,最近我真的佩服起我自己來,竟然能夠從體驗中自己創造出自己的框架跟名詞,把虛無縹緲的東西概念、架構、系統化
Thumbnail
2020-01-06
8
迎新活動「方格新手村」:新格友註冊加入方格子,知名日料吃到飽餐券送給你! 👉 還不是 vocus 的會員嗎?點此註冊,參與新手村活動 👈 近期站上也出現了不少新格友,為了歡迎各位的加入,「方格新手村」隨之登場! 即日起,只要是新註冊帳號於活動期間內發佈 3 則文章,就有機會抽獎獲得知名日料吃到飽餐券。原格友也可以一起同樂,我們準備了小任
Thumbnail
2024-06-21
101
川普當選,對台股是利多還是利空?川普在槍擊事件中所表現出來的英勇形象,讓他贏得美國總統大選幾乎已成定局。沒想到他隨口的一句話「台灣搶走美國的晶片生意,所以要付保護費」,就讓台積電在短短三天跌掉超過100 元,台股也跌掉1100點以上。台積電、台股會就此一路下跌嗎?未來該如何因應?  
Thumbnail
2024-07-20
67
金融科技與生活美學的融合 CUBE App實踐自我理想最近開啟了研究工作,也開始斜槓著手團購、行銷、洽談業務,慢慢想打造一條屬於自己的道路,而工作忙碌之虞,總忘記自己刷卡消費明細、信用卡繳費,還會忽略了最應該的投資理財,也常常在忙碌奔波中忘記信用卡優惠,國泰世華CUBE App給足了這些功能和服務。 日常生活與數位、科技形影不離,同時也拉近彼此距
Thumbnail
2024-07-11
22
[文具皇民病][自動鉛筆]UNI KURU TOGA ADVANCE UPGRADE M5-1030搭載Advance引擎的金屬版Upgrade,就是把外觀材質跟握持感做了提升, 售價也往上拉高,我認為給學生用的話的確是偏高了。
Thumbnail
2021-12-22
5
033021A Upgrade& 提升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
2021-03-30
1
020821 Upgrade& 昇華After the challenging driving, see the mountains firmly stand, at the far. Clouds come automatically, for celebrating the meaningful moments, with u
Thumbnail
2021-02-16
0
TCL Communication upgrades its Alcatel websitTCL Communication upgrades its Alcatel website TCL Communication announced today the launch of Alcatel’s newly upgraded website. Alcatel, a global bra
2020-03-19
0
SYSTEM UPGRADED 系統已升級 2019年尾一直到現在,我一直不斷地被各種不同的領悟衝擊著。這個轉變好似把我原本看待人生的架構給翻轉了一番,害我每一個本來已經設計好的課程都要從頭到尾重新改掉。戀愛與吸引的奧秘也越來越清晰可見,最近我真的佩服起我自己來,竟然能夠從體驗中自己創造出自己的框架跟名詞,把虛無縹緲的東西概念、架構、系統化
Thumbnail
2020-01-06
8