安装grid执行root.sh脚本报错,包括删除grid infrastructure过程

failed to create a peer profile for oracle cluster gpnp.gpnptool rc=32512 
Creation of Oracle GPnP peer profile failed for dbrac2 at u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 4138.


原因:
查看日志发现是selinux没有关闭。
编辑/etc/sysconfig/selinux:
#SELINUX=enforcing   注释掉
SELINUX=disabled         增加    


除了selinux可能在安装RAC时带来很多麻烦,还有iptables也会带来很多麻烦,所以应该也都关闭。
[root@dbrac1 ~]# chkconfig --level 35 iptables off


已经安装了CRS,重复安装会报错
这里采取的方式是完全卸载grid infrastructure
用oracle用户执行deinstall
u01/app/11.2.0/grid/deinstall
[oracle@linux deinstall]./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2010-03-05_12-32-34-PM/logs/


############ ORACLE DEINSTALL & DECONFIG TOOL START ############




######################## CHECK OPERATION START ########################
Install check configuration START




Checking for existence of the Oracle home location /grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install is: /oracle
Checking for existence of central inventory location /oracle/oraInventory
Checking for existence of the Oracle Grid Infrastructure home
The following nodes are part of this cluster: p570a,p570b


Install check configuration END


Traces log file: /tmp/deinstall2010-03-05_12-32-34-PM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "p570a"[p570a-vip]
 >


The following information can be collected by running ifconfig -a on node "p570a"
Enter the IP netmask of Virtual IP "192.168.128.12" on node "p570a"[255.255.255.0]
 >


Enter the network interface name on which the virtual IP address "192.168.128.12" is active
 >


Enter an address or the name of the virtual IP used on node "p570b"[p570b-vip]
 >


The following information can be collected by running ifconfig -a on node "p570b"
Enter the IP netmask of Virtual IP "192.168.128.13" on node "p570b"[255.255.255.0]
 >


Enter the network interface name on which the virtual IP address "192.168.128.13" is active
 >


Enter an address or the name of the virtual IP[]
 >




Network Configuration check config START


Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_check3943047409382157255.log


Network Configuration check config END


Asm Check Configuration START


ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_check8859913828659895984.log


ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Is OCR/Voting Disk placed in ASM y|n [n]: y


Enter the OCR/Voting Disk diskgroup name []:
Specify the ASM Diagnostic Destination [ ]:
Specify the diskgroups that are managed by this ASM instance []:




######################### CHECK OPERATION END #########################




####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)p570a,p570b
Oracle Home selected for de-install is: /grid
Inventory Location where the Oracle home registered is: /oracle/oraInventory
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.err'


######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_clean6608625374089856517.log
ASM Clean Configuration START
ASM Clean Configuration END


Network Configuration clean config START


Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_clean5624344075530317905.log


De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.


De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.


De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.


De-configuring backup files on all nodes...
Backup files de-configured successfully.


The network configuration has been cleaned up successfully.


Network Configuration clean config END




----------------------------------------&gt


Run the following command as the root user or the administrator on node "p570a".


/tmp/deinstall2010-03-05_12-32-34-PM/perl/bin/perl -I/tmp/deinstall2010-03-05_12-32-34-PM/perl/lib -I/tmp/deinstall2010-03-05_12-32-34-PM/crs/install /tmp/deinstall2010-03-05_12-32-34-PM/crs/install/rootcrs.pl -force  -delete -paramfile /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp


Press Enter after you finish running the above commands




enter
Oracle Universal Installer clean START


Detach Oracle home '/grid' from the central inventory on the local node : Done


Delete directory '/oracle/oraInventory' on the local node : Done


The Oracle Base directory '/oracle' will not be removed on local node. The directory is not empty.


Detach Oracle home '/grid' from the central inventory on the remote nodes 'p570a' : Done


Could not remove listed directories based on '/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst' from nodes 'p570a'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst" to any of the given nodes "p570a ".
Error on node p570a:null]
Delete directory '/oracle/oraInventory' on the remote nodes 'p570a' : Done


The Oracle Base directory '/oracle' will not be removed on node 'p570a'. The directory is not empty.


Oracle Universal Installer cleanup completed with errors.


Oracle Universal Installer clean END




Oracle install clean START


Clean install operation removing temporary directory '/tmp//install' on node 'p570b'
Clean install operation removing temporary directory '/tmp//install' on node 'p570a'


Oracle install clean END


Moved default properties file /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp as /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp1


######################### CLEAN OPERATION END #########################




####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Oracle Clusterware was already stopped and de-configured on node "p570b"
Oracle Clusterware is stopped and successfully de-configured on node "p570a"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/grid' from the central inventory on the local node.
Failed to delete directory '/grid' on the local node.
Successfully deleted directory '/oracle/oraInventory' on the local node.
Successfully detached Oracle home '/grid' from the central inventory on the remote nodes 'p570a'.
Failed to delete directory '/grid' on the remote nodes 'p570a'.
Successfully deleted directory '/oracle/oraInventory' on the remote nodes 'p570a'.
Oracle Universal Installer cleanup completed with errors.




Run'rm -rf /etc/oraInst.loc'as root on node(s) 'p570b,p570a' at the end of the session.


Oracle install successfully cleaned up the temporary directories.


删除的很干净,连grid目录都一起删除了,之后进行重装








################################################################
下面是另一种不完全删除,重新执行root.sh的语法,记录一下,仔细研究
1,vi /etc/selinux/config 
SELINUX=disabled
2,重新执行root.sh
...
...
...
run '/u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig' 
3,执行/u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig' 报错
# /u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig
2011-06-04 01:52:59: Parsing the host name
2011-06-04 01:52:59: Checking for super user privileges
2011-06-04 01:52:59: User has super user privileges
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
Oracle Clusterware stack is not active on this node
Restart the clusterware stack (use /u01/grid-11.2/grid/bin/crsctl start crs) and retry
Failed to verify resources
4.忽略掉报错删除,来自网上。。。
# /u01/grid-11.2/grid/crs/install/rootcrs.pl -delete -force -verbose
2011-06-04 01:55:03: Parsing the host name
2011-06-04 01:55:03: Checking for super user privileges
2011-06-04 01:55:03: User has super user privileges
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
/u01/grid-11.2/grid/srvm/admin/getcrshome: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.eons is registered
Cannot communicate with crsd


/u01/grid-11.2/grid/bin/clsecho.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
/u01/grid-11.2/grid/bin/crsctl.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
/u01/grid-11.2/grid/bin/crsctl.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
You must kill crs processes or reboot the system to properly 
cleanup the processes started by Oracle clusterware
Successfully deconfigured Oracle clusterware stack on this node
5,执行root.sh
报错。。。
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
/u01/grid-11.2/grid/bin/ocrconfig.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
Command return code of 127 (32512) from command: /u01/grid-11.2/grid/bin/ocrconfig -local -upgrade grid oinstall
Failed to create or upgrade OLR
6,继续google
chcon -t texrel_shlib_t /u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1 
7,执行root.sh,提示需要deconfig,执行deconfig
8,在次root.sh

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15810196/viewspace-1393418/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/15810196/viewspace-1393418/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值