|
搭建一套ADG环境grid、oracle软件都是从主库copy过来的。环境检查一致之后,执行clone脚本和root脚本正常,在执行config脚本的时候报错
直接放报错日志
[main] [ 2020-11-11 11:08:09.400 GMT+08:00 ] [RuntimeExec.runCommand:75] Calling Runtime.exec() with the command
[main] [ 2020-11-11 11:08:09.400 GMT+08:00 ] [RuntimeExec.runCommand:77] /usr/bin/scp
[main] [ 2020-11-11 11:08:09.401 GMT+08:00 ] [RuntimeExec.runCommand:77] -p
[main] [ 2020-11-11 11:08:09.401 GMT+08:00 ] [RuntimeExec.runCommand:77] c5oyj2b:'/etc/oraInst.loc'
[main] [ 2020-11-11 11:08:09.401 GMT+08:00 ] [RuntimeExec.runCommand:77] /grid/product/11.2.0.4/gridhome_1/inventory/Scripts/oraInst.loc
[Thread-203] [ 2020-11-11 11:08:09.416 GMT+08:00 ] [StreamReader.run:61] In StreamReader.run
[Thread-202] [ 2020-11-11 11:08:09.416 GMT+08:00 ] [StreamReader.run:61] In StreamReader.run
[main] [ 2020-11-11 11:08:09.416 GMT+08:00 ] [RuntimeExec.runCommand:142] runCommand: Waiting for the process
[Thread-203] [ 2020-11-11 11:08:09.793 GMT+08:00 ] [StreamReader.run:65] ERROR>protocol error: filename does not match request
[main] [ 2020-11-11 11:08:09.793 GMT+08:00 ] [RuntimeExec.runCommand:144] runCommand: process returns 1
[main] [ 2020-11-11 11:08:09.793 GMT+08:00 ] [RuntimeExec.runCommand:161] RunTimeExec: output>
[main] [ 2020-11-11 11:08:09.794 GMT+08:00 ] [RuntimeExec.runCommand:170] RunTimeExec: error>
[main] [ 2020-11-11 11:08:09.794 GMT+08:00 ] [RuntimeExec.runCommand:173] protocol error: filename does not match request
[main] [ 2020-11-11 11:08:09.794 GMT+08:00 ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand
[main] [ 2020-11-11 11:08:09.794 GMT+08:00 ] [NativeSystem.rununixcmd:1152] NativeSystem.rununixcmd: RetString 0|protocol error: filename does not match request :failed
[main] [ 2020-11-11 11:08:09.794 GMT+08:00 ] [CopyCommand.execute:79] CopyCommand.execute: native copyFile returns `0|protocol error: filename does not match request :failed'
[main] [ 2020-11-11 11:08:09.795 GMT+08:00 ] [NativeResult.<init>:91] NativeResult: The String obtained is0|protocol error: filename does not match request :failed
[main] [ 2020-11-11 11:08:09.795 GMT+08:00 ] [NativeResult.<init>:99] The status string is: 0
[main] [ 2020-11-11 11:08:09.795 GMT+08:00 ] [NativeResult.<init>:112] The result string is: protocol error: filename does not match request :failed 1
[main] [ 2020-11-11 11:08:09.795 GMT+08:00 ] [ClusterException.setErrorMessage:133] ClusterException.setErrorMessage: commands[0]=oracle.ops.mgmt.command.file.CopyCommand@69966996
[main] [ 2020-11-11 11:08:09.796 GMT+08:00 ] [ClusterException.setErrorMessage:153] ClusterException.setErrorMessage: errString is &#39;protocol error: filename does not match request :failed&#39;
[FATAL] [INS-42016] The current Grid home is not registered in the central inventory on the following nodes: [c5oyj2b]
CAUSE: The wizard does not find this Grid home to be registered with the central inventory on some or all of the nodes specified.
ACTION: Register the Grid home on the specified nodes with the central inventory, either by using a cloning operation, or by using an attach-home operation. Restart the wizard after fixing this issue.可以看到比较显眼的是[FATAL] [INS-42016]报错,没有在网上找到相关解决方法
在最开始的ERROR上面是个 /usr/bin/scp命令,手工执行了下该命令可以成功
刚开始不确定是不是软件包问题,又换了两个软件包,均在config的时候报这个错误
后来在mos上搜索&#39;protocol error: filename does not match request :failed&#39;相关的时候有篇介绍报错很类似,只是报错位置不同
rootcrs.log
2020-09-12 16:56:48: $GRID_HOME/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode rac02 -destfile $GRID_HOME/srvm/admin/ocrloc
.tmp -nodelist rac02 ... failed
2020-09-12 16:56:48: capout=oracle.ops.mgmt.cluster.ClusterException: protocol error: filename does not match request :failed
2020-09-12 16:56:48: Running as user oracle: $GRID_HOME/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode rac01 -destfile $GRID_HOME/srvm/admin/ocrloc.tmp -nodelist rac01
2020-09-12 16:56:48: s_run_as_user2: Running /bin/su oracle -c &#39; echo CLSRSC_START; $GRID_HOME/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode
paappdb307 -destfile $GRID_HOME/srvm/admin/ocrloc.tmp -nodelist rac01 &#39;
2020-09-12 16:56:49: Removing file /tmp/ibaQY2Me9
2020-09-12 16:56:49: Successfully removed file: /tmp/ibaQY2Me9
2020-09-12 16:56:49: pipe exit code: 256
2020-09-12 16:56:49: /bin/su exited with rc=1mos上说这是个bug,bug信息如下
This is due to following bug
Bug 30376285 - ORACLE.OPS.MGMT.CLUSTER.CLUSTEREXCEPTION: PROTOCOL ERROR: FILENAME DOES NOT MATCH REQUEST :FAILED
Duplicate Bug 29457319 - LNX64-193:ROOT.SH RETURN CLSRSC-571 AND PRKC-1191 WHEN ADD NODE TO MC。按照解决方法
1* # Rename the original scp.
mv /usr/bin/scp /usr/bin/scp.orig
2* # Create a new file .
vi /usr/bin/scp
3* # Add the below line to the new created file .
/usr/bin/scp.orig -T $*
4* # Change the file permission.
chmod 555 /usr/bin/scp
5* Re-run root.sh不同的是执行脚本不同,在改完权限之后,重新执行config,正常通过,确认问题就是scp的bug导致 |
|