AIX 11gR2 grid root.sh Error: with status:FAIL.Error code is 256

hurp_oracle發表於2015-07-10
AIX: 11gR2 Grid Infrastructure Installation, root.sh Error: Failed to write the checkpoint:'' with status:FAIL.Error code is 256 (文件 ID 1382505.1)

出現此問題,是由於LIB庫引用了第三方的LIB,從已安裝好的資料庫上考過來即可解決
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
IBM AIX on POWER Systems (64-bit)
證狀:
Trying to install Grid Infrastructure 11.2.0.3, root.sh fails with:
# root.sh
..
User ignored Prerequisites during installation
Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Undefined subroutine &crsconfig_lib::dieformat called at /oracle/app/11.2.0.3/grid/crs/install/crsconfig_lib.pm line 6135.
rootcrs_.log shows:
2011-11-23 03:43:20: User ignored Prerequisites during installation
2011-11-23 03:43:24: ###### Begin DIE Stack Trace ######
2011-11-23 03:43:24: Package File Line Calling
2011-11-23 03:43:24: --------------- -------------------- ---- ----------
2011-11-23 03:43:24: 1: main rootcrs.pl 375 crsconfig_lib::dietrap
2011-11-23 03:43:24: 2: crsconfig_lib crsconfig_lib.pm 6135 main::__ANON__
2011-11-23 03:43:24: 3: crsconfig_lib crsconfig_lib.pm 6640 crsconfig_lib::set_file_perms
2011-11-23 03:43:24: 4: main rootcrs.pl 457 crsconfig_lib::run_env_setup_modules
2011-11-23 03:43:24: ####### End DIE Stack Trace #######
..
2011-11-23 03:43:24: Failed to write the checkpoint:'' with status:FAIL.Error code is 256
原因:
The problem is caused by clusterware library pointing to non-exist Vendor clusterware library, eg:
$ ls -l /oracle/app/11.2.0.3/grid/lib/libskgxn*
lrwxrwxrwx 1 grid oinstall 33 Nov 23 03:08 /oracle/app/11.2.0.3/grid/lib/libskgxn2.so -> /opt/ORCLcluster/lib/libskgxn2.so
-rwxr-xr-x 1 grid oinstall 159806 Oct 20 23:55 /oracle/app/11.2.0.3/grid/lib/libskgxnr.a
lrwxrwxrwx 1 grid oinstall 33 Nov 23 09:38 /oracle/app/11.2.0.3/grid/lib/libskgxnr.so -> /opt/ORCLcluster/lib/libskgxnr.so

$ ls -l /opt/ORCLcluster
ls: 0653-341 The file /opt/ORCLcluster does not exist.
This is caused by HACMP executable is not removed cleanly when HACMP is deinstalled. When HACMP is installed, it installs the directory /usr/sbin/cluster/utilities along with others. Oracle OUI depends on /usr/sbin/cluster/utilities/cldomain to determine if vendor clusterware exists. If yes, then a symlink of $GRID_HOME/lib/libskgxn2.so will be created pointing to /opt/ORCLcluster/lib/libskgxn2.so (so does libskgxnr.so). /opt/ORCLcluster directory is setup during rootpre.sh if vendor cluster is presented.


In this case, HACMP was first installed, then Veritas software was installed, it caused the /usr/sbin/cluster/utilities/cldomain became a symlink pointing to Veritas clusterware:
$ ls -l /usr/sbin/cluster/utilities/cldomain
lrwxrwxrwx    1 root     system           29 Sep 21 13:54 /usr/sbin/cluster/utilities/cldomain -> /opt/VRTSvcs/rac/bin/cldomain
When HACMP was deinstalled later, it removed all other files but left this symlink cldomain, causing Oracle considered vendor clusterware exists and created the symlink of libskgxn2.so and libskgxnr.so during link libraries phase in OUI installation. Further leads to root.sh failure.
解決方案:
1. When deinstalling vendor clusterware, make sure all associated files are removed. In this case, remove the symlink /usr/sbin/cluster/utilities/cldomain
2. Clean up the failed GI installation via $GRID_HOME/deinstall/deinstall command or clean up manually follow DOCUMENT 1364419.1
3. Reinstall Grid Infrastructure 
注:如果11.2 繼續想使用裸裝置不想解除安裝第三方叢集軟體如HACMP,可以透過如下方式來解決

 scp libskgxn* grid@10.19.242.182:/grid/product/11.2.0/gridhome_1/lib/
libskgxn2.a                                                                                                                           100%  156KB 155.9KB/s   00:00    
libskgxn2.so                                                                                                                          100%  202KB 202.5KB/s   00:00    
libskgxnr.a                                                                                                                           100%  156KB 155.9KB/s   00:00    
libskgxnr.so                                                                                                                          100%  202KB 202.5KB/s   00:00    
libskgxns.a                                                                                                                           100%   13KB  12.6KB/s   00:00    
libskgxns.so                                                                                                                          100%   14KB  13.9KB/s   00:00

[grid@sokfbcv6a] /grid/product/11.2.0/gridhome_1/lib> scp libskgxn* grid@10.19.242.184:/grid/product/11.2.0/gridhome_1/lib/
The authenticity of host '10.19.242.184 (10.19.242.184)' can't be established.
ECDSA key fingerprint is f6:39:b3:30:20:ad:d8:69:70:a9:c2:be:38:d2:f9:b9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.19.242.184' (ECDSA) to the list of known hosts.
grid@10.19.242.184's password: 
libskgxn2.a                                                                                                                           100%  156KB 155.9KB/s   00:00    
scp: /grid/product/11.2.0/gridhome_1/lib//libskgxn2.so: No such file or directory      ======》如果出現目錄不存,需要建目錄
libskgxnr.a                                                                                                                           100%  156KB 155.9KB/s   00:00    
scp: /grid/product/11.2.0/gridhome_1/lib//libskgxnr.so: No such file or directory
libskgxns.a                                                                                                                           100%   13KB  12.6KB/s   00:00    
libskgxns.so    

在需要安裝的環境下
[root@togm1b_new] /> chown grid:oinstall /opt/ORCLcluster/lib
[root@togm1b_new] /> chown -R grid:oinstall /opt/ORCLcluster/lib


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29446986/viewspace-1729036/,如需轉載,請註明出處,否則將追究法律責任。

相關文章