grid軟體複製到另外的節點啟動crs

slnngk發表於2024-08-02

環境:
OS:Centos 7
DB:19.24.0

1.節點1打包grid軟體(root賬號操作)
[root@rac01 grid]# pwd
/u01/grid
[root@rac01 grid]# ls
grid_base grid_home oraInventory
[root@rac01 grid]# tar -zcvpf grid_home.tar.gz ./grid_home

注意:
grid_base不需要打包;
-p選項:帶上檔案許可權屬性

2.複製到節點2的相應目錄
[root@rac01 grid]# scp grid_home.tar.gz root@192.168.58.182:/u01/grid/

3.節點2模擬刪除grid_home目錄
[root@rac02 grid]# pwd
/u01/grid
[root@rac02 grid]#rm -rf grid_home

解壓從節點1複製過來的檔案
[root@rac02 grid]#tar -zxvpf grid_home.tar.gz

說明:解壓也需要帶上-p選項,保留原檔案許可權屬性

4.啟動節點2的crs
su - root
[root@rac02 grid]#/u01/grid/grid_home/19.3.0.0/bin/crsctl start crs
報錯:

2024-08-01 21:25:12.276 :    GPNP:2903945024: clsgpnp_InitCKProviders: [at clsgpnp0.c:5881] Result: (100) CLSGPNP_unknown. (:GPNP01746:)Error initializing gp
np security key provider: cred wallet (LSKP-CREDDOM_OLR-1).
2024-08-01 21:25:12.276 :    GPNP:2903945024: clsgpnpkwf_initwfloc: [at clsgpnpkwf.c:657] Result: (7) CLSGPNP_IO. (:GPNP01004:)Fatal: Cannot open neither PEE
R nor PRDR GPnP wallet. No more wallets to verify GPnP configuration (profile). Check GPnP configuration: wallet(s) either missing or do not have access privileges. statres: -5, Wallet home : /u01/grid/grid_home/19.3.0.0/gpnp/rac02/.
2024-08-01 21:25:12.276 :    GPNP:2903945024: clsgpnpkwf_initwfloc: [at clsgpnpkwf.c:743] Result: (66) CLSGPNP_WALLET_NONE. (:GPNP01003:)Failed to find peer wallet dir in either OCR_CRS_HOME, or ORACLE_HOME locations.
2024-08-01 21:25:12.277 :    GPNP:2903945024: clsgpnp_InitCKProviders: [at clsgpnp0.c:5911] Result: (66) CLSGPNP_WALLET_NONE. (:GPNP00254:)Error initializing
 gpnp security key provider: file wallet (LSKP-FSW).

解決辦法:
A.將軟體複製過來的如下目錄由rac01改成rac02
[grid@rac02 rac01]$ cd /u01/grid/grid_home/19.3.0.0/gpnp
[grid@rac02 gpnp]$ ls
gpnp_bcp__2022_4_18_5137 init manifest.txt profiles rac01 seed wallets
[grid@rac02 gpnp]$ mv rac01 rac02


B.重新執行如下指令碼
安裝gi時候需要執行
su - root
/u01/grid/oraInventory/orainstRoot.sh
/u01/grid/grid_home/19.3.0.0/root.sh

然後重做執行啟動命令

[root@rac02 grid]#/u01/grid/grid_home/19.3.0.0/bin/crsctl start crs

相關文章