TeamSUN iVCS:准确的确定虚拟机的VNC连接地址
在TeamSUN iVCS的使用过程中,如何准确的确定运行虚拟机的VNC访问信息?
首先,登录到虚拟机运行的节点主机。可以通过SecureCRT或者PuTTY等终端模拟工具登录。
然后执行以下命令:
ps -ef | grep -v grep | grep Your_VM_Name | gre[……]
Adamhuan's Data Center - 【逻辑驱动数据】
数据玩物、代码屋、1/0游戏:(零和博弈)/ 禅宗意志 / 规则战争 / 解放数据力量 / 技术的飞速发展并没有改变这个世界,因为,这个世界从没有变,它只是越来越趋近于它本来的模样。
在TeamSUN iVCS的使用过程中,如何准确的确定运行虚拟机的VNC访问信息?
首先,登录到虚拟机运行的节点主机。可以通过SecureCRT或者PuTTY等终端模拟工具登录。
然后执行以下命令:
ps -ef | grep -v grep | grep Your_VM_Name | gre[……]
具体报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
[root@node1 install]# /u01/app/10g/grid/root.sh WARNING: directory '/u01/app/10g' is not owned by root WARNING: directory '/u01/app' is not owned by root WARNING: directory '/u01' is not owned by root Checking to see if Oracle CRS stack is already configured Setting the permissions on OCR backup directory Setting up NS directories Oracle Cluster Registry configuration upgraded successfully WARNING: directory '/u01/app/10g' is not owned by root WARNING: directory '/u01/app' is not owned by root WARNING: directory '/u01' is not owned by root Successfully accumulated necessary OCR keys. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. node <nodenumber>: <nodename> <private interconnect name> <hostname> node 1: node1 node1-priv node1 node 2: node2 node2-priv node2 Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. Now formatting voting device: /dev/raw/raw2 Format of 1 voting devices complete. Startup will be queued to init within 90 seconds. Adding daemons to inittab Expecting the CRS daemons to be up within 600 seconds. Failure at final check of Oracle CRS stack. 10 [root@node1 install]# |
该错误相关的后台日志为:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
[root@node1 node1]# pwd /u01/app/10g/grid/log/node1 [root@node1 node1]# ls admin alertnode1.log client crsd cssd evmd racg [root@node1 node1]# [root@node1 node1]# cat alertnode1.log 2015-04-25 22:56:17.862 [client(4563)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_4563.log. 2015-04-25 22:56:17.871 [client(4563)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_4563.log. 2015-04-25 22:56:17.880 [client(4563)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_4563.log. 2015-04-25 22:56:17.917 [client(4563)]CRS-1001:The OCR was formatted using version 2. 2015-04-25 22:59:25.937 [client(4613)]CRS-1801:Cluster crs configured with nodes node1 node2 . 2015-04-25 23:36:26.437 [client(5156)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log. 2015-04-25 23:36:26.449 [client(5156)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log. 2015-04-25 23:36:26.458 [client(5156)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log. 2015-04-25 23:36:26.516 [client(5156)]CRS-1001:The OCR was formatted using version 2. 2015-04-25 23:39:28.846 [client(5206)]CRS-1801:Cluster crs configured with nodes node1 node2 . [root@node1 node1]# [root@node1 node1]# cat /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved. 2015-04-25 23:36:26.428: [ OCRCONF][417421056]ocrconfig starts... 2015-04-25 23:36:26.428: [ OCRCONF][417421056]Upgrading OCR data 2015-04-25 23:36:26.437: [ OCRRAW][417421056]propriogid:1: INVALID FORMAT 2015-04-25 23:36:26.437: [ OCRRAW][417421056]ibctx:1:ERROR: INVALID FORMAT 2015-04-25 23:36:26.437: [ OCRRAW][417421056]proprinit:problem reading the bootblock or superbloc 22 2015-04-25 23:36:26.438: [ default][417421056]a_init:7!: Backend init unsuccessful : [22] 2015-04-25 23:36:26.438: [ OCRCONF][417421056]Exporting OCR data to [OCRUPGRADEFILE] 2015-04-25 23:36:26.438: [ OCRAPI][417421056]a_init:7!: Backend init unsuccessful : [33] 2015-04-25 23:36:26.438: [ OCRCONF][417421056]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured] 2015-04-25 23:36:26.448: [ OCRRAW][417421056]propriogid:1: INVALID FORMAT 2015-04-25 23:36:26.449: [ OCRRAW][417421056]ibctx:1:ERROR: INVALID FORMAT 2015-04-25 23:36:26.449: [ OCRRAW][417421056]proprinit:problem reading the bootblock or superbloc 22 2015-04-25 23:36:26.449: [ default][417421056]a_init:7!: Backend init unsuccessful : [22] 2015-04-25 23:36:26.457: [ OCRRAW][417421056]propriogid:1: INVALID FORMAT 2015-04-25 23:36:26.458: [ OCRRAW][417421056]ibctx:1:ERROR: INVALID FORMAT 2015-04-25 23:36:26.458: [ OCRRAW][417421056]proprinit:problem reading the bootblock or superbloc 22 2015-04-25 23:36:26.468: [ OCRRAW][417421056]propriogid:1: INVALID FORMAT 2015-04-25 23:36:26.493: [ OCRRAW][417421056]propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2] 2015-04-25 23:36:26.516: [ OCRRAW][417421056]propriniconfig:No 92 configuration 2015-04-25 23:36:26.516: [ OCRAPI][417421056]a_init:6a: Backend init successful 2015-04-25 23:36:26.953: [ OCRCONF][417421056]Initialized DATABASE keys in OCR 2015-04-25 23:36:27.057: [ OCRCONF][417421056]Successfully set skgfr block 0 2015-04-25 23:36:27.057: [ OCRCONF][417421056]Exiting [status=success]... [root@node1 node1]# [root@node1 node1]# |
该错误为Oracle的Bug。
需要打上补丁:Patch:4679769
Oracle官方(My Ora[……]
具体报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
[grid@ora10grac1 clusterware]$ ./runInstaller ******************************************************************************** Please run the script rootpre.sh as root on all machines/nodes. The script can be found at the toplevel of the CD or stage-area. Once you have run the script, please type Y to proceed Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle Clusterware installation. Answer 'n' to abort installation and then ask root to run 'rootpre.sh'. ******************************************************************************** Has 'rootpre.sh' been run by root? [y/n] (n) y Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-23_10-07-02PM. Please wait ...[grid@ora10grac1 clusterware]$ Oracle Universal Installer, Version 10.2.0.1.0 Production Copyright (C) 1999, 2005, Oracle. All rights reserved. Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2015-04-23_10-07-02PM/jre/1.4.2/lib/i386/libawt.so: libXtst.so.6: cannot open shared object file: No such file or directory occurred.. java.lang.UnsatisfiedLinkError: /tmp/OraInstall2015-04-23_10-07-02PM/jre/1.4.2/lib/i386/libawt.so: libXtst.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(Unknown Source) at sun.awt.DebugHelper.<clinit>(Unknown Source) at java.awt.Component.<clinit>(Unknown Source) at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202) at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436) at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866) Exception in thread "main" java.lang.NoClassDefFoundError at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202) at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151) at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866) [grid@ora10grac1 clusterware]$ |
解法:
如上报错是因为缺少软件包导致的,你需要执行下列命令修复:
yum install -y libXtst.x86_64 libXtst-devel.x86_64 libXtst.i686 libXtst[……]
如题所示的错误是由于操作系统准备阶段的软件包不全导致的,具体的报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
[grid@ora10grac1 clusterware]$ ./runInstaller ******************************************************************************** Please run the script rootpre.sh as root on all machines/nodes. The script can be found at the toplevel of the CD or stage-area. Once you have run the script, please type Y to proceed Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle Clusterware installation. Answer 'n' to abort installation and then ask root to run 'rootpre.sh'. ******************************************************************************** Has 'rootpre.sh' been run by root? [y/n] (n) y Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-24_12-27-41AM. Please wait ...[grid@ora10grac1 clusterware]$ Oracle Universal Installer, Version 10.2.0.1.0 Production Copyright (C) 1999, 2005, Oracle. All rights reserved. Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2015-04-24_12-27-41AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred.. java.lang.UnsatisfiedLinkError: /tmp/OraInstall2015-04-24_12-27-41AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(Unknown Source) at sun.awt.DebugHelper.<clinit>(Unknown Source) at java.awt.Component.<clinit>(Unknown Source) at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202) at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436) at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866) Exception in thread "main" java.lang.NoClassDefFoundError at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202) at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151) at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866) [grid@ora10grac1 clusterware]$ |
解法如下:
yum install -y libXp.i686 libXp.x86_64 libXp-devel.i686 libXp-devel.x8[……]