In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
AIX system Learning-check after CRS installation
System environment:
Operating system: AIX 5.3.8
Oracle: Oracle 10gR2
Case study:
When building RAC, you need to do post-installation verification after installing CRS. The following error occurred when executing the verification tool cluvfy:
[root@aix230:/u01/soft/Disk1/cluvfy] # crs_stat-t
Name Type Target State Host-ora.aix229.gsd application ONLINE ONLINE aix229 ora.aix229.ons application ONLINE ONLINE aix229 ora.aix229.vip application ONLINE ONLINE Aix229 ora.aix230.gsd application ONLINE ONLINE aix230 ora.aix230.ons application ONLINE ONLINE aix230 ora.aix230.vip application ONLINE ONLINE aix230
[root@aix230:/u01/soft/Disk1] # ls-l
Total 56
Drwxr-xr-x 7 oracle dba 512 Oct 16 18:42 cluvfydrwxr-xr-x 4 oracle dba 512 Oct 16 13:35 installdrwxr-xr-x 2 oracle dba 512 Oct 16 13:35 responsedrwxr-xr-x 3 oracle dba 512 Oct 16 13:35 rootpre-rwxr-xr-x 1 oracle dba 2602 Aug 20 2005 runInstallerdrwxr-xr-x 9 oracle dba 3072 Oct 16 13:35 stagedrwxr-xr-x 2 oracle dba 512 Oct 16 13:35 upgrade
[root@aix230:/u01/soft/Disk1/cluvfy] # / u01/soft/Disk1/cluvfy/runcluvfy.sh-h
The unzip of archive file / u01/soft/Disk1/cluvfy/jrepack.zip failed
View directory permissions:
[root@aix230:/u01/soft/Disk1/cluvfy] # ls-ld / u01drwxr-sr-x 6 oracle dba 512 Oct 16 13:43 / U01 [root@aix230:/u01/soft/Disk1/cluvfy] # ls-ltotal 118384drwxrwxr-x 3 oracle dba 2048 Oct 16 18:42 bindrwxr-xr-x 5 root system 512 Jul 16 2005 cv-rwxr-xr-x 1 oracle dba 21378978 Aug 20 2005 cvupack. Zipdrwxrwxr-x 2 root system 512 Aug 16 2005 jlib-rwxrwxrwx 1 oracle dba 39203424 Aug 20 2005 jrepack.zipdrwxrwxr-x 10 oracle dba 3072 Oct 16 18:42 libdrwxrwxr-x 2 root system 512 Jul 19 2005 lib32-rwxr-xr-x 1 oracle dba 3107 Aug 20 2005 runcluvfy.sh
Modify executable script permissions:
[root@aix230:/u01/soft/Disk1/cluvfy] # chmod 777 runcluvfy.sh
It still fails, and it doesn't seem to be a matter of permissions:
[root@aix230:/u01/soft/Disk1/cluvfy] #. / runcluvfy.sh
The unzip of archive file. / jrepack.zip failed
Check the contents of the executable script and discover the secret
[root@aix230:/u01/soft/Disk1/cluvfy] # cat runcluvfy.sh
#! / bin/sh## This script sets up the environment for invocation of cluster verification # tool (cluvfy), unpacks the archive (cluvfy.zip) for the verification # framework software, executes the requested verification command, and cleans# up the space occupied by the unpacked verification software.# # Usage: cluvfy.sh TMPDIR=/tmpECHO=/bin/echoRM=/bin/rmMKDIR=/bin/mkdircase `/ bin/ uname` inLinux) UNZIP=/usr/bin/unzip DIRNAME=/usr/bin/dirname HP-UX) UNZIP=/usr/bin/unzip DIRNAME=/bin/dirname;; SunOS) UNZIP=/usr/bin/unzip DIRNAME=/bin/dirname;; AIX) DIRNAME=/bin/dirname UNZIP=/usr/bin/unzip if [- f $UNZIP] then UNZIP=/usr/bin/unzip else UNZIP=/usr/local/bin/unzip fi OSF1) UNZIP=/usr/bin/unzip DIRNAME=/usr/bin/dirname; *) $ECHO "ERROR: Unknown Operating system" exit-1; EsacEXEC_DIR= `$ DIRNAME $0`CVUZIP _ FILE=$EXEC_DIR/cvupack.zipJREZIP_FILE=$EXEC_DIR/jrepack.zip# Setup CV_HOME environment variable for cluvfy # This variable points to the home for cluster verification software.# If not set by the caller of this script It points (by default) # to temporary directoryif ["X$CV_HOME" = "X"] then CV_HOME=$TMPDIR/$$else CV_HOME=$CV_HOME/$$fi$RM-rf $CV_HOME$MKDIR-p $CV_HOMEexport CV_HOME# Setup CV_JDKHOME environment variable for cluvfy # This variable points to the java package required by cluster verification# framework # If this varible isn't set by the caller of this script The jrepack.zip# archive is unpacked in $CV_HOME/jre directory and this directory is set in# CV_JDKHOMEif ["X$CV_JDKHOME" = "X"] then if [!-f $JREZIP_FILE] Then $ECHO "\" $JREZIP_FILE\ "does not exist." $ECHO "ERROR. Either CV_JDKHOME environment variable should be set "$ECHO" or $JREZIP_FILE should exist. " Exit 1 else $UNZIP-o $JREZIP_FILE-d $CV_HOME/jre > / dev/null 2 > & 1 EXEC_STATUS=$? If [$EXEC_STATUS! = "0"]; then $ECHO The unzip of archive file $JREZIP_FILE failed exit 1 fi CV_JDKHOME=$CV_HOME/jre export CV_JDKHOME fifi# Setup CV_DESTLOC environment variable for cluvfy # This variable points to a directory on each (remote as well as local) node# that is writable. The cluster verifcation tool will copy the required # software bits (on need basis) to this directory.# If not set by the caller of this script, it points (by default) # to temporary directoryif ["X$CV_DESTLOC" = "X"] then CV_DESTLOC=$TMPDIRfiexport CV_DESTLOC# Unpack the cluster verification software archive on its home$UNZIP-o $CVUZIP_FILE-d $CV_HOME > / dev/null 2 > & 1EXEC_STATUS=$?if [$EXEC_STATUS! = "0"] Then $ECHO The unzip of archive file $CVUZIP_FILE failed exit 1fi# Execute the requested cluster verification command$ {CV_HOME} / bin/cluvfy "$@" EXEC_STATUS=$?# Cleanup the home for cluster verification software$RM-rf $CV_HOME# Return the status of executed cluster verification command exit $EXEC_STATUS
From the above:
AIX) DIRNAME=/bin/dirname UNZIP=/usr/bin/unzip
As you can see, you need to execute "unzip" when executing the script, and the execution path is "/ usr/bin/unzip".
View the location of the native unzip executable:
[root@aix230:/u01/soft/Disk1/cluvfy] # which unzip
/ u01/crs_1/bin/unzip
Unexpectedly not under "/ usr/bin"
Copy unzip to "/ usr/bin"
[root@aix230:/u01/soft/Disk1/cluvfy] # cp / u01/crs_1/bin/unzip / usr/bin [root@aix230:/u01/soft/Disk1/cluvfy] # which unzip/usr/bin/unzip
Then execute:
[root@aix230:/u01/soft/Disk1/cluvfy] # / u01/soft/Disk1/cluvfy/runcluvfy.sh-h
USAGE:cluvfy [- help] cluvfy stage {- list |-help} cluvfy stage {- pre |-post} [- verbose] cluvfy comp {- list |-help} cluvfy comp [- verbose]
@ at this point, the problem has been solved!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.