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
出现此问题,是由于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/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29446986/viewspace-1729036/