AIX系统学习之-CRS安装后校验-创新互联
AIX系统学习之-CRS安装后校验
创新互联建站主营共青城网站建设的网络公司,主营网站建设方案,成都app软件开发,共青城h5微信小程序开发搭建,共青城网站营销推广欢迎共青城等地区企业咨询系统环境:
操作系统:AIX 5.3.8
Oracle: Oracle 10gR2
案例分析:
在构建RAC时,安装完CRS需要做安装后的校验,在执行校验工具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 cluvfy drwxr-xr-x 4 oracle dba 512 Oct 16 13:35 install drwxr-xr-x 2 oracle dba 512 Oct 16 13:35 response drwxr-xr-x 3 oracle dba 512 Oct 16 13:35 rootpre -rwxr-xr-x 1 oracle dba 2602 Aug 20 2005 runInstaller drwxr-xr-x 9 oracle dba 3072 Oct 16 13:35 stage drwxr-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
查看目录权限:
[root@aix230:/u01/soft/Disk1/cluvfy]#ls -ld /u01 drwxr-sr-x 6 oracle dba 512 Oct 16 13:43 /u01 [root@aix230:/u01/soft/Disk1/cluvfy]#ls -l total 118384 drwxrwxr-x 3 oracle dba 2048 Oct 16 18:42 bin drwxr-xr-x 5 root system 512 Jul 16 2005 cv -rwxr-xr-x 1 oracle dba 21378978 Aug 20 2005 cvupack.zip drwxrwxr-x 2 root system 512 Aug 16 2005 jlib -rwxrwxrwx 1 oracle dba 39203424 Aug 20 2005 jrepack.zip drwxrwxr-x 10 oracle dba 3072 Oct 16 18:42 lib drwxrwxr-x 2 root system 512 Jul 19 2005 lib32 -rwxr-xr-x 1 oracle dba 3107 Aug 20 2005 runcluvfy.sh修改可执行脚本权限:
[root@aix230:/u01/soft/Disk1/cluvfy]#chmod 777 runcluvfy.sh
仍然失败,看来不是权限的问题:
[root@aix230:/u01/soft/Disk1/cluvfy]#./runcluvfy.sh
The unzip of archive file ./jrepack.zip failed
查看可执行脚本的内容,发现秘密
[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从以上内容:
AIX) DIRNAME=/bin/dirname UNZIP=/usr/bin/unzip可以看到,在执行脚本时需要执行“unzip”,执行路径为“/usr/bin/unzip"
查看本机unzip可执行文件位置:
[root@aix230:/u01/soft/Disk1/cluvfy]#which unzip
/u01/crs_1/bin/unzip
竟然不在"/usr/bin"下
拷贝unzip到"/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然后执行:
[root@aix230:/u01/soft/Disk1/cluvfy]#/u01/soft/Disk1/cluvfy/runcluvfy.sh -h
USAGE: cluvfy [ -help ] cluvfy stage { -list | -help } cluvfy stage {-pre|-post}@至此,问题得以解决!!!
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
网站名称:AIX系统学习之-CRS安装后校验-创新互联
当前URL:http://scjbc.cn/article/hoddj.html