grid config.sh ins-06001 ins-06006
Jul052015
客户克隆VM安装模版在使用config.sh配置RAC时,在SSH配置界面报INS-06001/INS-06006,通过手动配置SSH等效性后,在系统上面执行ssh登录是成功的。
1,OS执行SSH命令执行等效性 |
grid@htzhz1 ~]$ ssh htzhz1 Last login: Fri Jul 3 16:22:43 2015 from htzhz1 [grid@htzhz1 ~]$ ssh htzhz2 Last login: Fri Jul 3 16:47:40 2015 from htzhz1 [grid@htzhz2 ~]$ exit logout Connection to htzhz2 closed.
这里可以看到ssh等效性是成功的。
2,执行config.sh配置RAC |
这里点setup报下面错误
在TEST报下面错误
3,查看日志信息 |
日志在$ORACLE_BASE/oraInventory下面
[grid@htzhz1 tmp]$ ls -lrt total 61520 drwxr-xr-x. 4 root root 4096 Apr 10 2014 vmware-tools-distrib drwx------. 2 root root 16384 Aug 13 2014 lost+found drwx------ 2 root root 4096 Oct 27 2014 seahorse-Yt2lQS drwx------ 2 root root 4096 Oct 27 2014 keyring-zdwlbd drwx------ 2 root root 4096 Nov 6 2014 seahorse-VLuwZy drwx------ 2 root root 4096 Nov 6 2014 keyring-bn4fyp -r--r--r-- 1 root root 62889032 Nov 6 2014 VMwareTools-9.4.5-1734305.tar.gz drwx------ 2 root root 4096 Nov 27 2014 seahorse-JUtmg8 drwx------ 2 root root 4096 Nov 27 2014 keyring-SFsuGv drwx------ 2 root root 4096 Jul 2 11:08 virtual-root.lirmIt drwx------ 2 root root 4096 Jul 2 11:09 virtual-root.76plBJ drwx------ 2 root root 4096 Jul 3 10:15 virtual-root.H3ZvV1 drwx------. 2 gdm gdm 4096 Jul 3 15:30 pulse-NcziZlGGz9Hv drwx------ 2 gdm gdm 4096 Jul 3 15:30 orbit-gdm drwx------ 2 root root 4096 Jul 3 15:31 seahorse-SHGChE drwx------ 2 root root 4096 Jul 3 15:31 ssh-EjKHQI120Xo2 drwx------ 2 root root 4096 Jul 3 15:31 keyring-tIPt4s drwx------ 2 root root 4096 Jul 3 15:31 vmware-root drwx------. 2 root root 4096 Jul 3 15:31 pulse-j6vLbYWlbt0f drwx------ 2 root root 4096 Jul 3 15:31 virtual-root.HyIeiA drwx------ 2 root root 4096 Jul 3 15:54 orbit-root drwxr-xr-x 2 grid oinstall 4096 Jul 3 20:45 hsperfdata_grid -rw-r--r-- 1 grid oinstall 1843 Jul 3 20:45 getfileinfoconfigfile_8659486013185844007.txt drwxr-xr-x 3 grid oinstall 4096 Jul 3 20:48 CVU_11.2.0.4.0_grid [grid@htzhz1 logs]$ vi configActions2015-07-03_08-45-16-PM.out Loading file /u01/app/11.2.0/grid/oui/prov/resources/ssh_system.properties in environment Logfile Location : /u01/app/11.2.0/grid/inventory/Scripts/sshsetup1_2015-07-03_08-49-12-PM.log ClusterLogger - log file location: /u01/app/11.2.0/grid/Logs/remoteInterfaces2015-07-03_08-49-12-PM.log Plugin : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH found in class path Changing Default Plugin from : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH to : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH ~ [grid@htzhz1 logs]$ cat /u01/app/11.2.0/grid/inventory/Scripts/sshsetup1_2015-07-03_08-49-12-PM.log INFO: Environment Variables: INFO: ORACLE_HOME = /u01/app/11.2.0/grid INFO: PATH = /u01/app/11.2.0/grid/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/grid/bin:/u01/app/11.2.0/grid/OPatch INFO: CLASSPATH = /u01/app/11.2.0/grid/JRE:/u01/app/11.2.0/grid/jlib:/u01/app/11.2.0/grid/rdbms/jlib INFO: Username:grid INFO: Install area Control created with access level 2 INFO: Reading global variables from file /u01/app/11.2.0/grid/inventory/globalvariables/oracle.crs/globalvariables.xml INFO: Setting oracle.sysman.prov.ssh.lock_retry_count to 1 INFO: Setting oracle.sysman.prov.logJschDebug to TRUE INFO: Setting oracle.sysman.prov.ssh.lock_sleep_time to 30 INFO: Setting oracle.sysman.prov.ssh.ssh_auth_algo to RSA configActions2015-07-03_08-45-16-PM.log Jul 3, 2015 8:45:52 PM oracle.install.commons.flow.AbstractFlowExecutor rollback INFO: Rolled back to state <CRSNodeInformationUI> Jul 3, 2015 8:49:12 PM oracle.install.driver.oui.OUISSHSupportManager establishSSHConnectivity INFO: SSH Support Manager logs will be written to /u01/app/11.2.0/grid/inventory/Scripts/sshsetup1_2015-07-03_08-49-12-PM.log Jul 3, 2015 8:49:12 PM oracle.install.commons.util.StatusControl showMessage INFO: Establishing SSH connectivity between the selected nodes. This may take several minutes. Please wait... Jul 3, 2015 8:49:12 PM oracle.install.driver.oui.OUISSHSupportManager establishSSHConnectivity INFO: SSH Setup policy used: BIDIRECTIONAL Jul 3, 2015 8:49:13 PM oracle.install.driver.oui.OUISSHSupportManager establishSSHConnectivity WARNING: Failed to establish SSH connectivity between the selected nodes oracle.sysman.prov.remoteinterfaces.exception.FatalException at oracle.sysman.prov.ssh.SSHSetup.setupConnectivity(SSHSetup.java:297) at oracle.install.driver.oui.OUISSHSupportManager.establishSSHConnectivity(OUISSHSupportManager.java:167) at oracle.install.ivw.common.view.SSHSetupPane$7.perform(SSHSetupPane.java:277) at oracle.install.ivw.common.view.SSHSetupPane$SSHOperation.run(SSHSetupPane.java:336) Caused by: java.lang.NullPointerException at java.io.File.<init>(File.java:194) at oracle.sysman.prov.ssh.SSHDirectoryLocker.getLockLocation(SSHDirectoryLocker.java:123) at oracle.sysman.prov.ssh.SSHDirectoryLocker.releaseLock(SSHDirectoryLocker.java:139) at oracle.sysman.prov.ssh.BaseSSHSetup.releaseLockOnDirectory(BaseSSHSetup.java:128) at oracle.sysman.prov.ssh.BaseSSHSetup.setUpSSH(BaseSSHSetup.java:114) at oracle.sysman.prov.ssh.SSHSetup.setupConnectivity(SSHSetup.java:283) ... 3 more Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getSSHConnectivityDetails INFO: Preparing to check passwordless SSH Connectivity between nodes: [htzhz1, htzhz2] Jul 3, 2015 8:49:30 PM oracle.install.commons.util.StatusControl showMessage INFO: Testing passwordless SSH connectivity between the selected nodes. This may take several minutes, please wait... Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getSSHConnectivityDetails INFO: OverallStatus of User Equivalence check using CVU is SUCCESSFUL Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes INFO: Finding passwordless SSH connectivity setup on remote nodes Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes INFO: Preparing remote commands to check passwordless SSH connectivity setup on remote nodes Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes INFO: Total number of remote commands to be executed is 2 Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes WARNING: Failed while executing remote commands to check SSH connectivity to other nodes. oracle.ops.mgmt.cluster.ClusterException: No ED25519 host key is known for htzhz1 and you have requested strict checking.Host key verification failed. :failedNo ED25519 host key is known for htzhz2 and you have requested strict checking.Host key verification failed. :failed 这里是主要原因。 at oracle.ops.mgmt.cluster.ClusterConfig.submit(ClusterConfig.java:578) at oracle.ops.mgmt.cluster.ClusterCmd.submit(ClusterCmd.java:269) at oracle.ops.mgmt.cluster.ClusterCmd.submit(ClusterCmd.java:294) at oracle.install.driver.oui.OUISSHSupportManager.getUnconfiguredRemoteNodes(OUISSHSupportManager.java:428) at oracle.install.driver.oui.OUISSHSupportManager.getSSHConnectivityDetails(OUISSHSupportManager.java:378) at oracle.install.commons.net.support.SSHSupportManager.getSSHConnectivityDetails(SSHSupportManager.java:181) at oracle.install.ivw.common.view.SSHSetupPane$8.perform(SSHSetupPane.java:305) at oracle.install.ivw.common.view.SSHSetupPane$SSHOperation.run(SSHSetupPane.java:336) Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes INFO: Source Node: htzhz2 Target Node: htzhz1 Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes INFO: Exception: null Jul 3, 2015 8:49:30 PM oracle.install.driver.oui.OUISSHSupportManager getUnconfiguredRemoteNodes
4,取消SSH检查功能 |
因为SSH配置是成功的,ssh,scp的路径也是成功的,所以我们选择忽略SSH检查。
修改$ORACLE_HOME/crs/config/config.pl文件,添加下面内容,这里我把代码添加到debug这里的
GetOptions('debug' => \$debug); if($debug){ $debugOpts=' -Doracle.install.ssh.setupCheckEnabled=false -DTRACING.LEVEL=2 -DTRACING.ENABLED=TRUE '; } [grid@htzhz1 config]$ ./config.sh -debug >/tmp/log.txt
可以看到下面的提示
也能正常进入选择网卡的界面,如下
5,查看SSH TEST时报错的原因 |
下面通过DEBUG查看一下SSH TEST的原因,通过debug我们也可以看到ssh的过程,下面值给出报错相关的信息
2.778 CST ] [ClusterConfig.isClusterInstalled:363] hasJarPresent=false [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.778 CST ] [ClusterConfig.init:423] Returning same instance to clientSSHSetupPane.SSHOperation [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.779 CST ] [ClusterConfig.submit:488] Entering submit, cmdCount=2 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.779 CST ] [Semaphore.acquire:109] SyncBufferEmpty:Acquire called by thread SSHSetupPane.SSHOperation m_count=1 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.779 CST ] [Semaphore.release:85] SyncBufferFull:Release called by thread SSHSetupPane.SSHOperation m_count=1 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.779 CST ] [Semaphore.acquire:109] SyncBufferEmpty:Acquire called by thread SSHSetupPane.SSHOperation m_count=0 [Worker 2] [ 2015-07-03 21:03:22.780 CST ] [Semaphore.release:85] SyncBufferEmpty:Release called by thread Worker 2 m_count=1 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.780 CST ] [Semaphore.release:85] SyncBufferFull:Release called by thread SSHSetupPane.SSHOperation m_count=1 [Worker 2] [ 2015-07-03 21:03:22.780 CST ] [Utils.getLocalHost:481] Hostname retrieved: htzhz1, returned: htzhz1 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.780 CST ] [ClusterConfig.submit:523] submitted commands=2[Worker 3] [ 2015-07-03 21:03:22.780 CST ] [Semaphore.release:85] SyncBufferEmpty:Release called by thread Worker 3 m_count=1 [Worker 2] [ 2015-07-03 21:03:22.781 CST ] [UnixSystem.checkRemoteExecutionSetup:2293] Using Remote Shell Command: '/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 ' [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.781 CST ] [ClusterConfig.block:596] block called by thread SSHSetupPane.SSHOperation commandNum 2 [Worker 3] [ 2015-07-03 21:03:22.781 CST ] [Utils.getLocalHost:481] Hostname retrieved: htzhz1, returned: htzhz1 [Worker 2] [ 2015-07-03 21:03:22.781 CST ] [UnixSystem.checkRemoteExecutionSetup:2294] Using Remote Copy Command: '/usr/bin/scp' [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.781 CST ] [Semaphore.acquire:109] ClientResource Constructor:Blocking Semaphore owned by SSHSetupPane.SSHOperation:Acquire called by thread SSHSetupPane.SSHOperation m_count=0 [Worker 2] [ 2015-07-03 21:03:22.781 CST ] [UnixSystem.runCmd:1888] unixcmd=/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 htzhz2 -n /bin/sh -c '/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 htzhz1 /bin/true ' [Worker 3] [ 2015-07-03 21:03:22.781 CST ] [UnixSystem.runCmd:1888] unixcmd=/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 htzhz2 -n /bin/sh -c '/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 htzhz2 /bin/true ' [Worker 2] [ 2015-07-03 21:03:22.782 CST ] [RuntimeExec.runCommand:75] Calling Runtime.exec() with the command [Worker 3] [ 2015-07-03 21:03:22.782 CST ] [RuntimeExec.runCommand:75] Calling Runtime.exec() with the command [Worker 2] [ 2015-07-03 21:03:22.782 CST ] [RuntimeExec.runCommand:77] /usr/bin/ssh [Worker 3] [ 2015-07-03 21:03:22.782 CST ] [RuntimeExec.runCommand:77] /usr/bin/ssh [Worker 2] [ 2015-07-03 21:03:22.782 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.782 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] FallBackToRsh=no [Worker 3] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] FallBackToRsh=no [Worker 2] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] PasswordAuthentication=no [Worker 3] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] PasswordAuthentication=no [Worker 2] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.783 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] StrictHostKeyChecking=yes [Worker 3] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] StrictHostKeyChecking=yes [Worker 2] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] NumberOfPasswordPrompts=0 [Worker 3] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] NumberOfPasswordPrompts=0 [Worker 2] [ 2015-07-03 21:03:22.784 CST ] [RuntimeExec.runCommand:77] htzhz2 [Worker 3] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] htzhz2 [Worker 2] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] -n [Worker 3] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] -n [Worker 2] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] /bin/sh [Worker 3] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] /bin/sh [Worker 2] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] -c [Worker 3] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] -c [Worker 2] [ 2015-07-03 21:03:22.785 CST ] [RuntimeExec.runCommand:77] '/usr/bin/ssh [Worker 3] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] '/usr/bin/ssh [Worker 2] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] FallBackToRsh=no [Worker 3] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] FallBackToRsh=no [Worker 2] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.786 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] PasswordAuthentication=no [Worker 3] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] PasswordAuthentication=no [Worker 2] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] StrictHostKeyChecking=yes [Worker 3] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] StrictHostKeyChecking=yes [Worker 2] [ 2015-07-03 21:03:22.787 CST ] [RuntimeExec.runCommand:77] -o [Worker 3] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] -o [Worker 2] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] NumberOfPasswordPrompts=0 [Worker 3] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] NumberOfPasswordPrompts=0 [Worker 2] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] htzhz1 [Worker 3] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] htzhz2 [Worker 2] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] /bin/true [Worker 3] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] /bin/true [Worker 2] [ 2015-07-03 21:03:22.788 CST ] [RuntimeExec.runCommand:77] ' [Worker 3] [ 2015-07-03 21:03:22.789 CST ] [RuntimeExec.runCommand:77] ' [Thread-20] [ 2015-07-03 21:03:22.803 CST ] [StreamReader.run:61] In StreamReader.run [Thread-22] [ 2015-07-03 21:03:22.803 CST ] [StreamReader.run:61] In StreamReader.run [Thread-21] [ 2015-07-03 21:03:22.803 CST ] [StreamReader.run:61] In StreamReader.run [Worker 2] [ 2015-07-03 21:03:22.803 CST ] [RuntimeExec.runCommand:142] runCommand: Waiting for the process [Thread-19] [ 2015-07-03 21:03:22.803 CST ] [StreamReader.run:61] In StreamReader.run [Worker 3] [ 2015-07-03 21:03:22.803 CST ] [RuntimeExec.runCommand:142] runCommand: Waiting for the process [Thread-22] [ 2015-07-03 21:03:22.941 CST ] [StreamReader.run:65] ERROR>No ED25519 host key is known for htzhz2 and you have requested strict checking. [Thread-22] [ 2015-07-03 21:03:22.942 CST ] [StreamReader.run:65] ERROR>Host key verification failed. [Worker 3] [ 2015-07-03 21:03:22.942 CST ] [RuntimeExec.runCommand:144] runCommand: process returns 255 [Worker 3] [ 2015-07-03 21:03:22.943 CST ] [RuntimeExec.runCommand:161] RunTimeExec: output> [Worker 3] [ 2015-07-03 21:03:22.943 CST ] [RuntimeExec.runCommand:170] RunTimeExec: error> [Worker 3] [ 2015-07-03 21:03:22.943 CST ] [RuntimeExec.runCommand:173] No ED25519 host key is known for htzhz2 and you have requested strict checking. [Worker 3] [ 2015-07-03 21:03:22.944 CST ] [RuntimeExec.runCommand:173] Host key verification failed. [Worker 3] [ 2015-07-03 21:03:22.944 CST ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand [Worker 3] [ 2015-07-03 21:03:22.944 CST ] [NativeSystem.rununixcmd:1152] NativeSystem.rununixcmd: RetString 0|No ED25519 host key is known for htzhz2 and you have requested strict checking.Host key verification failed. :failed [Worker 3] [ 2015-07-03 21:03:22.944 CST ] [RunCtlCommand.execute:116] Here is list,cmd=/usr/bin/ssh,env=[Ljava.lang.String;@409a44d6,node=htzhz2m_srcLoc=nullm_destLoc=null [Worker 3] [ 2015-07-03 21:03:22.945 CST ] [NativeResult.<init>:91] NativeResult: The String obtained is0|No ED25519 host key is known for htzhz2 and you have requested strict checking.Host key verification failed. :failed [Worker 3] [ 2015-07-03 21:03:22.945 CST ] [NativeResult.<init>:99] The status string is: 0 [Worker 3] [ 2015-07-03 21:03:22.945 CST ] [NativeResult.<init>:112] The result string is: No ED25519 host key is known for htzhz2 and you have requested strict checking.Host key verification failed. :failed 1 [Worker 3] [ 2015-07-03 21:03:22.945 CST ] [ClusterConfig$ExecuteCommand.returnCommandToClient:2951] returnCommandToClient; fillCount=0 is full=false [Worker 3] [ 2015-07-03 21:03:22.946 CST ] [Semaphore.acquire:109] SyncBufferEmpty:Acquire called by thread Worker 3 m_count=50 [Worker 3] [ 2015-07-03 21:03:22.946 CST ] [Semaphore.release:85] SyncBufferFull:Release called by thread Worker 3 m_count=1 [Worker 3] [ 2015-07-03 21:03:22.946 CST ] [ClientResource.getListener:157] Calling getListener [Worker 3] [ 2015-07-03 21:03:22.947 CST ] [ClusterConfig$ExecuteCommand.run:3046] Owner Thread name of the blocking Semaphore SSHSetupPane.SSHOperation [Worker 3] [ 2015-07-03 21:03:22.947 CST ] [ClusterConfig$ExecuteCommand.run:3054] Obtained Semaphore [Worker 3] [ 2015-07-03 21:03:22.948 CST ] [Semaphore.release:85] ClientResource Constructor:Blocking Semaphore owned by SSHSetupPane.SSHOperation:Release called by thread Worker 3 m_count=1 [Worker 3] [ 2015-07-03 21:03:22.948 CST ] [ClusterConfig$ExecuteCommand.run:3069] Released Semaphore by worker=Worker 3 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.948 CST ] [ClusterConfig.block:608] block acquired semnum=0 [Worker 3] [ 2015-07-03 21:03:22.949 CST ] [Semaphore.acquire:109] SyncBufferFull:Acquire called by thread Worker 3 m_count=0 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.949 CST ] [Semaphore.acquire:109] ClientResource Constructor:Blocking Semaphore owned by SSHSetupPane.SSHOperation:Acquire called by thread SSHSetupPane.SSHOperation m_count=0 [Thread-21] [ 2015-07-03 21:03:22.955 CST ] [StreamReader.run:65] ERROR>No ED25519 host key is known for htzhz1 and you have requested strict checking. [Thread-21] [ 2015-07-03 21:03:22.956 CST ] [StreamReader.run:65] ERROR>Host key verification failed. [Worker 2] [ 2015-07-03 21:03:22.956 CST ] [RuntimeExec.runCommand:144] runCommand: process returns 255 [Worker 2] [ 2015-07-03 21:03:22.956 CST ] [RuntimeExec.runCommand:161] RunTimeExec: output> [Worker 2] [ 2015-07-03 21:03:22.956 CST ] [RuntimeExec.runCommand:170] RunTimeExec: error> [Worker 2] [ 2015-07-03 21:03:22.957 CST ] [RuntimeExec.runCommand:173] No ED25519 host key is known for htzhz1 and you have requested strict checking. [Worker 2] [ 2015-07-03 21:03:22.957 CST ] [RuntimeExec.runCommand:173] Host key verification failed. [Worker 2] [ 2015-07-03 21:03:22.957 CST ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand [Worker 2] [ 2015-07-03 21:03:22.957 CST ] [NativeSystem.rununixcmd:1152] NativeSystem.rununixcmd: RetString 0|No ED25519 host key is known for htzhz1 and you have requested strict checking.Host key verification failed. :failed [Worker 2] [ 2015-07-03 21:03:22.958 CST ] [RunCtlCommand.execute:116] Here is list,cmd=/usr/bin/ssh,env=[Ljava.lang.String;@409a44d6,node=htzhz2m_srcLoc=nullm_destLoc=null [Worker 2] [ 2015-07-03 21:03:22.958 CST ] [NativeResult.<init>:91] NativeResult: The String obtained is0|No ED25519 host key is known for htzhz1 and you have requested strict checking.Host key verification failed. :failed [Worker 2] [ 2015-07-03 21:03:22.958 CST ] [NativeResult.<init>:99] The status string is: 0 [Worker 2] [ 2015-07-03 21:03:22.958 CST ] [NativeResult.<init>:112] The result string is: No ED25519 host key is known for htzhz1 and you have requested strict checking.Host key verification failed. :failed 1 [Worker 2] [ 2015-07-03 21:03:22.959 CST ] [ClusterConfig$ExecuteCommand.returnCommandToClient:2951] returnCommandToClient; fillCount=1 is full=false [Worker 2] [ 2015-07-03 21:03:22.959 CST ] [Semaphore.acquire:109] SyncBufferEmpty:Acquire called by thread Worker 2 m_count=49 [Worker 2] [ 2015-07-03 21:03:22.959 CST ] [Semaphore.release:85] SyncBufferFull:Release called by thread Worker 2 m_count=2 [Worker 2] [ 2015-07-03 21:03:22.959 CST ] [ClientResource.getListener:157] Calling getListener [Worker 2] [ 2015-07-03 21:03:22.959 CST ] [ClusterConfig$ExecuteCommand.run:3046] Owner Thread name of the blocking Semaphore SSHSetupPane.SSHOperation [Worker 2] [ 2015-07-03 21:03:22.960 CST ] [ClusterConfig$ExecuteCommand.run:3054] Obtained Semaphore [Worker 2] [ 2015-07-03 21:03:22.960 CST ] [Semaphore.release:85] ClientResource Constructor:Blocking Semaphore owned by SSHSetupPane.SSHOperation:Release called by thread Worker 2 m_count=1 [Worker 2] [ 2015-07-03 21:03:22.960 CST ] [ClusterConfig$ExecuteCommand.run:3069] Released Semaphore by worker=Worker 2 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.960 CST ] [ClusterConfig.block:608] block acquired semnum=1 [Worker 2] [ 2015-07-03 21:03:22.960 CST ] [Semaphore.acquire:109] SyncBufferFull:Acquire called by thread Worker 2 m_count=0 [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.961 CST ] [ClusterConfig.submit:557] Out of block [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.961 CST ] [CommandBuffer.checkCommandStatus:83] CommandBuffer:checkCommandStatus returning false, command number= 4 thread name= Thread[SSHSetupPane.SSHOperation,6,main] [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.961 CST ] [ClusterConfig.submit:574] status=false [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.962 CST ] [ClusterException.setErrorMessage:133] ClusterException.setErrorMessage: commands[0]=oracle.install.driver.oui.OUISSHSupportManager$SSHSetupVerificationCommand@501d5ebc [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.962 CST ] [ClusterException.setErrorMessage:153] ClusterException.setErrorMessage: errString is 'No ED25519 host key is known for htzhz2 and you have requested strict checking.Host key verification failed. :failed' [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.962 CST ] [ClusterException.setErrorMessage:133] ClusterException.setErrorMessage: commands[1]=oracle.install.driver.oui.OUISSHSupportManager$SSHSetupVerificationCommand@3836b1bb [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.962 CST ] [ClusterException.setErrorMessage:153] ClusterException.setErrorMessage: errString is 'No ED25519 host key is known for htzhz1 and you have requested strict checking.Host key verification failed. :failed' [SSHSetupPane.SSHOperation] [ 2015-07-03 21:03:22.963 CST ] [ClusterConfig.destroy:452] destroying resources for client thread Thread[SSHSetupPane.SSHOperation,6,main] 这里知道报错的信息,就是下面这个SQL触发的。 [grid@htzhz2 ~]$ /usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 htzhz2 -n /bin/sh -c '/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 htzhz2 /bin/true' No ED25519 host key is known for htzhz2 and you have requested strict checking. Host key verification failed. 通过查看,发现缺少known_hosts文件 [grid@htzhz1 .ssh]$ scp known_hosts htzhz2:~/.ssh/ known_hosts
在次点TEST,终于成功了
6,配置SSH报错分析 |
这里配置DEBUG后,基本没有生成任何的信息,
[grid@htzhz1 .ssh]$ vi /u01/app/11.2.0/grid/inventory/Scripts/sshsetup1_2015-07-03_09-14-36-PM.log Loading file /u01/app/11.2.0/grid/oui/prov/resources/ssh_system.properties in environment Logfile Location : /u01/app/11.2.0/grid/inventory/Scripts/sshsetup1_2015-07-03_09-14-36-PM.log ClusterLogger - log file location: /u01/app/11.2.0/grid/Logs/remoteInterfaces2015-07-03_09-14-36-PM.log Plugin : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH found in class path Changing Default Plugin from : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH to : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH INFO: Environment Variables: INFO: ORACLE_HOME = /u01/app/11.2.0/grid INFO: PATH = /u01/app/11.2.0/grid/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/grid/bin:/u01/app/11.2.0/grid/OPatch INFO: CLASSPATH = /u01/app/11.2.0/grid/JRE:/u01/app/11.2.0/grid/jlib:/u01/app/11.2.0/grid/rdbms/jlib INFO: Username:grid INFO: Install area Control created with access level 2 INFO: Reading global variables from file /u01/app/11.2.0/grid/inventory/globalvariables/oracle.crs/globalvariables.xml INFO: Setting oracle.sysman.prov.ssh.lock_retry_count to 1 INFO: Setting oracle.sysman.prov.logJschDebug to TRUE INFO: Setting oracle.sysman.prov.ssh.lock_sleep_time to 30 INFO: Setting oracle.sysman.prov.ssh.ssh_auth_algo to RSA [grid@htzhz1 .ssh]$ vi /u01/app/11.2.0/grid/Logs/remoteInterfaces2015-07-03_09-14-36-PM.log INFO: Creating a new session id - SSHSetupPane.SSHOperation INFO: entering SystemFactory.CreateNativeSystem() INFO: creating a NativeSystem object: platformGrp is UNIX INFO: Loading system properties from file: /u01/app/11.2.0/grid/oui/prov/resources/system.properties INFO: Setting property oracle.sysman.prov.remoteinterfaces.sudo_pbrun_path to INFO: Creating a new session id - SSHSetupPane.SSHOperation INFO: entering SystemFactory.CreateNativeSystem() INFO: creating a NativeSystem object: platformGrp is UNIX INFO: Loading system properties from file: /u01/app/11.2.0/grid/oui/prov/resources/system.properties INFO: Setting property oracle.sysman.prov.remoteinterfaces.sudo_pbrun_path to INFO: Setting property oracle.sysman.prov.threadpoolsize to 2 INFO: Setting property oracle.sysman.prov.threadpoolmaxsize to 10 INFO: Setting property oracle.sysman.prov.sleep_time to 10000 INFO: Setting property oracle.sysman.prov.ping_retry_count to 2 INFO: Setting property oracle.sysman.prov.remoteinterfaces.sudo_pbrun_password to INFO: Setting property oracle.sysman.prov.fallbackToRsh to INFO: Setting property oracle.sysman.prov.riLogLoc to INFO: Setting property oracle.sysman.prov.remoteinterfaces.sudo_pbrun_args to INFO: Setting property oracle.sysman.prov.default_plugin to oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH INFO: Plugin : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH found in class path INFO: Changing Default Plugin from : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH to : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH INFO: Semaphore-BufferEmpty:Acquire called by thread Worker 0 m_count=0 INFO: Semaphore-BufferEmpty:Acquire called by thread Worker 1 m_count=0 INFO: Creating new session with id SSHSetupPane.SSHOperation INFO: No.of. active sessions: 1 INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/platformInfo.properties INFO: loading ignoreMessages.txt /u01/app/11.2.0/grid/oui/prov/resources/ignoreMessages.txt INFO: Reloading local platform properties INFO: loading LOCAL properties: /u01/app/11.2.0/grid/oui/prov/resources/Paths.properties INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/Paths.properties INFO: loading LOCAL properties: /u01/app/11.2.0/grid/oui/prov/resources/sPaths.properties INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/sPaths.properties INFO: loading LOCAL properties: /u01/app/11.2.0/grid/oui/prov/resources/userPaths.properties INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/userPaths.properties INFO: loading ignoreMessages.txt /u01/app/11.2.0/grid/oui/prov/resources/ignoreMessages.txt INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/platformInfo.properties INFO: loading ignoreMessages.txt /u01/app/11.2.0/grid/oui/prov/resources/ignoreMessages.txt INFO: Reloading local platform properties INFO: loading LOCAL properties: /u01/app/11.2.0/grid/oui/prov/resources/Paths.properties INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/Paths.properties INFO: loading LOCAL properties: /u01/app/11.2.0/grid/oui/prov/resources/sPaths.properties INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/sPaths.properties INFO: loading LOCAL properties: /u01/app/11.2.0/grid/oui/prov/resources/userPaths.properties INFO: loading file: /u01/app/11.2.0/grid/oui/prov/resources/userPaths.properties INFO: loading ignoreMessages.txt /u01/app/11.2.0/grid/oui/prov/resources/ignoreMessages.txt INFO: Session Preferences pluginName value : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH INFO: Plugin : oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandSSH is default Plugin for current session : INFO: /usr/bin/ssh -V INFO: Exitcode of the remote command [rnode localhost]: 0 INFO: Errstream [rnode localhost]: OpenSSH_6.6p1, OpenSSL 1.0.0-fips 29 Mar 2010 INFO: CommandResult status [rnode localhost]: false 不知道是不是这里的原因 INFO: Disposing session: SSHSetupPane.SSHOperation INFO: No.of. sessions remaining: 0 INFO: Acquiring writer lock for cleanup INFO: Thread got interrupted. returning from run(). Worker Thread id: 0 INFO: Thread got interrupted. returning from run(). Worker Thread id: 1 INFO: Releasing writer lock INFO: entering SystemFactory.dispose() INFO: Disposing session: SSHSetupPane.SSHOperation INFO: No.of. sessions remaining: 0 INFO: Acquiring writer lock for cleanup INFO: Releasing writer lock INFO: entering SystemFactory.dispose()
没有其它的信息了,这里怀疑是由于下面两个原因导致的
1,SSH的版本,这个的可能行比较小。
2,SSH安装配置文件在非默认的路径,这个的可能行能很大,因为OUI安装的时候如果发现是OPENSSH的时候会去/etc/ssh下面访问一些文件,不知道是不是这个原因。
本文固定链接: http://www.htz.pw/?p=1085 | 认真就输
最活跃的读者