由于某些远程安装的需求,OUI 的 GUI 界面远程交互比较慢,会影响DBA安装RAC时的速度。或者某些企业禁用了X Window,也造成了无法使用OUI来进行标准的RAC安装。
以下是一个静默安装数据库集群软件(GI HOME)和数据库软件(RDBMS HOME)的测试,希望对遇到以上无法使用OUI的DBA有所帮助。
测试环境是静默安装11.2.0.3版本的两节点RAC。OS 环境如下:
$ uname -a
Linux nascds10 2.6.9-78.0.0.0.1.ELhugemem #1 SMP Fri Jul 25 14:53:18 EDT 2008 i686 i686 i386 GNU/Linux
-bash-3.00$ cat enterprise-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
存储使用了Oracleasmlib 来配置管理:
[root@nascds10 ~]# /etc/init.d/oracleasm listdisks
DATA
OCR
RECO
具体步骤如下:
11.2.0.3 集群软件(GI) 静默安装
将11.2.0.3 集群安装软件解压缩到/home/grid/11.2.0.3/grid路径下。
1. 使用runcluvfy.sh 来执行安装前的预检查,来避免由于环境配置引发的安装失败问题。
su - grid
cd /home/grid/11.2.0.3/grid
-bash-3.00$ ./runcluvfy.sh stage -pre crsinst -n nascds10, nascds11 -verbose
具体输出
-bash-3.00$ ./runcluvfy.sh stage -pre crsinst -n nascds10,nascds11 -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "nascds10"
Destination Node Reachable?
------------------------------------ ------------------------
nascds10 yes
nascds11 yes
Result: Node reachability check passed from node "nascds10"
Checking user equivalence...
Check: User equivalence for user "grid"
Node Name Status
------------------------------------ ------------------------
nascds11 passed
nascds10 passed
Result: User equivalence check passed for user "grid"
Checking node connectivity...
Checking hosts config file...
Node Name Status
------------------------------------ ------------------------
nascds11 passed
nascds10 passed
Verification of the hosts config file successful
Interface information for node "nascds11"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth1 169.254.218.24 169.254.0.0 0.0.0.0 10.182.208.1 00:14:22:BD:59:DE 1500
eth1 192.168.10.2 192.168.10.0 0.0.0.0 10.182.208.1 00:14:22:BD:59:DE 1500
eth0 10.182.208.33 10.182.208.0 0.0.0.0 10.182.208.1 00:21:27:04:F7:E3 1500
eth0 10.182.208.33 10.182.208.0 0.0.0.0 10.182.208.1 00:21:27:04:F7:E3 1500
eth0 10.182.208.29 10.182.208.0 0.0.0.0 10.182.208.1 00:21:27:04:F7:E3 1500
eth0 10.182.208.34 10.182.208.0 0.0.0.0 10.182.208.1 00:21:27:04:F7:E3 1500
eth0 10.182.208.35 10.182.208.0 0.0.0.0 10.182.208.1 00:21:27:04:F7:E3 1500
Interface information for node "nascds10"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth1 192.168.10.1 192.168.10.0 0.0.0.0 10.182.208.1 00:14:22:CB:05:5C 1500
eth0 10.182.208.32 10.182.208.0 0.0.0.0 10.182.208.1 00:19:E0:3F:50:2B 1500
Check: Node connectivity of subnet "169.254.0.0"
Result: Node connectivity passed for subnet "169.254.0.0" with node(s) nascds11
Check: TCP connectivity of subnet "169.254.0.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
nascds10:10.182.208.32 nascds11:169.254.218.24 passed
Result: TCP connectivity check passed for subnet "169.254.0.0"
Check: Node connectivity of subnet "192.168.10.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
nascds11[192.168.10.2] nascds10[192.168.10.1] yes
Result: Node connectivity passed for subnet "192.168.10.0" with node(s) nascds11,nascds10
Check: TCP connectivity of subnet "192.168.10.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
nascds10:192.168.10.1 nascds11:192.168.10.2 passed
Result: TCP connectivity check passed for subnet "192.168.10.0"
Check: Node connectivity of subnet "10.182.208.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
nascds11[10.182.208.33] nascds11[10.182.208.33] yes
nascds11[10.182.208.33] nascds11[10.182.208.29] yes
nascds11[10.182.208.33] nascds11[10.182.208.34] yes
nascds11[10.182.208.33] nascds11[10.182.208.35] yes
nascds11[10.182.208.33] nascds10[10.182.208.32] yes
nascds11[10.182.208.33] nascds11[10.182.208.29] yes
nascds11[10.182.208.33] nascds11[10.182.208.34] yes
nascds11[10.182.208.33] nascds11[10.182.208.35] yes
nascds11[10.182.208.33] nascds10[10.182.208.32] yes
nascds11[10.182.208.29] nascds11[10.182.208.34] yes
nascds11[10.182.208.29] nascds11[10.182.208.35] yes
nascds11[10.182.208.29] nascds10[10.182.208.32] yes
nascds11[10.182.208.34] nascds11[10.182.208.35] yes
nascds11[10.182.208.34] nascds10[10.182.208.32] yes
nascds11[10.182.208.35] nascds10[10.182.208.32] yes
Result: Node connectivity passed for subnet "10.182.208.0" with node(s) nascds11,nascds10
Check: TCP connectivity of subnet "10.182.208.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
nascds10:10.182.208.32 nascds11:10.182.208.33 passed
nascds10:10.182.208.32 nascds11:10.182.208.29 passed
nascds10:10.182.208.32 nascds11:10.182.208.34 passed
nascds10:10.182.208.32 nascds11:10.182.208.35 passed
Result: TCP connectivity check passed for subnet "10.182.208.0"
Interfaces found on subnet "10.182.208.0" that are likely candidates for VIP are:
nascds11 eth0:10.182.208.33 eth0:10.182.208.33 eth0:10.182.208.29 eth0:10.182.208.34 eth0:10.182.208.35
nascds10 eth0:10.182.208.32
Interfaces found on subnet "192.168.10.0" that are likely candidates for a private interconnect are:
nascds11 eth1:192.168.10.2
nascds10 eth1:192.168.10.1
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "169.254.0.0".
Subnet mask consistency check passed for subnet "192.168.10.0".
Subnet mask consistency check passed for subnet "10.182.208.0".
Subnet mask consistency check passed.
Result: Node connectivity check passed
Checking multicast communication...
Checking subnet "169.254.0.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "169.254.0.0" for multicast communication with multicast group "230.0.1.0" passed.
Checking subnet "192.168.10.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.10.0" for multicast communication with multicast group "230.0.1.0" passed.
Checking subnet "10.182.208.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "10.182.208.0" for multicast communication with multicast group "230.0.1.0" passed.
Check of multicast communication passed.
Checking ASMLib configuration.
Node Name Status
------------------------------------ ------------------------
nascds11 passed
nascds10 passed
Result: Check for ASMLib configuration failed.
Check: Total memory
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 1.9702GB (2065856.0KB) 1.5GB (1572864.0KB) passed
nascds10 1.9702GB (2065856.0KB) 1.5GB (1572864.0KB) passed
Result: Total memory check passed
Check: Available memory
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 1.0107GB (1059752.0KB) 50MB (51200.0KB) passed
nascds10 1.5386GB (1613384.0KB) 50MB (51200.0KB) passed
Result: Available memory check passed
Check: Swap space
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 3.9987GB (4192956.0KB) 2.9552GB (3098784.0KB) passed
nascds10 3.9987GB (4192956.0KB) 2.9552GB (3098784.0KB) passed
Result: Swap space check passed
Check: Free disk space for "nascds11:/u01/app/11.2.0/grid,nascds11:/tmp"
Path Node Name Mount point Available Required Status
---------------- ------------ ------------ ------------ ------------ ------------
/u01/app/11.2.0/grid nascds11 / 24.2627GB 7.5GB passed
/tmp nascds11 / 24.2627GB 7.5GB passed
Result: Free disk space check passed for "nascds11:/u01/app/11.2.0/grid,nascds11:/tmp"
Check: Free disk space for "nascds10:/u01/app/11.2.0/grid,nascds10:/tmp"
Path Node Name Mount point Available Required Status
---------------- ------------ ------------ ------------ ------------ ------------
/u01/app/11.2.0/grid nascds10 / 19.757GB 7.5GB passed
/tmp nascds10 / 19.757GB 7.5GB passed
Result: Free disk space check passed for "nascds10:/u01/app/11.2.0/grid,nascds10:/tmp"
Check: User existence for "grid"
Node Name Status Comment
------------ ------------------------ ------------------------
nascds11 passed exists(501)
nascds10 passed exists(501)
Checking for multiple users with UID value 501
Result: Check for multiple users with UID value 501 passed
Result: User existence check passed for "grid"
Check: Group existence for "oinstall"
Node Name Status Comment
------------ ------------------------ ------------------------
nascds11 passed exists
nascds10 passed exists
Result: Group existence check passed for "oinstall"
Check: Group existence for "dba"
Node Name Status Comment
------------ ------------------------ ------------------------
nascds11 passed exists
nascds10 passed exists
Result: Group existence check passed for "dba"
Check: Membership of user "grid" in group "oinstall" [as Primary]
Node Name User Exists Group Exists User in Group Primary Status
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 yes yes yes yes passed
nascds10 yes yes yes yes passed
Result: Membership check for user "grid" in group "oinstall" [as Primary] passed
Check: Membership of user "grid" in group "dba"
Node Name User Exists Group Exists User in Group Status
---------------- ------------ ------------ ------------ ----------------
nascds11 yes yes yes passed
nascds10 yes yes yes passed
Result: Membership check for user "grid" in group "dba" passed
Check: Run level
Node Name run level Required Status
------------ ------------------------ ------------------------ ----------
nascds11 5 3,5 passed
nascds10 5 3,5 passed
Result: Run level check passed
Check: Hard limits for "maximum open file descriptors"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
nascds11 hard 65536 65536 passed
nascds10 hard 65536 65536 passed
Result: Hard limits check passed for "maximum open file descriptors"
Check: Soft limits for "maximum open file descriptors"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
nascds11 soft 1024 1024 passed
nascds10 soft 1024 1024 passed
Result: Soft limits check passed for "maximum open file descriptors"
Check: Hard limits for "maximum user processes"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
nascds11 hard 16384 16384 passed
nascds10 hard 16384 16384 passed
Result: Hard limits check passed for "maximum user processes"
Check: Soft limits for "maximum user processes"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
nascds11 soft 2047 2047 passed
nascds10 soft 2047 2047 passed
Result: Soft limits check passed for "maximum user processes"
Check: System architecture
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 i686 x86 passed
nascds10 i686 x86 passed
Result: System architecture check passed
Check: Kernel version
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 2.6.9-78.0.0.0.1.ELhugemem 2.6.9 passed
nascds10 2.6.9-78.0.0.0.1.ELhugemem 2.6.9 passed
Result: Kernel version check passed
Check: Kernel parameter for "semmsl"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 250 250 250 passed
nascds10 250 250 250 passed
Result: Kernel parameter check passed for "semmsl"
Check: Kernel parameter for "semmns"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 32000 32000 32000 passed
nascds10 32000 32000 32000 passed
Result: Kernel parameter check passed for "semmns"
Check: Kernel parameter for "semopm"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 100 100 100 passed
nascds10 100 100 100 passed
Result: Kernel parameter check passed for "semopm"
Check: Kernel parameter for "semmni"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 128 128 128 passed
nascds10 142 142 128 passed
Result: Kernel parameter check passed for "semmni"
Check: Kernel parameter for "shmmax"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 2115436544 2115436544 1057718272 passed
nascds10 1058521088 1058521088 1057718272 passed
Result: Kernel parameter check passed for "shmmax"
Check: Kernel parameter for "shmmni"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 4096 4096 4096 passed
nascds10 4096 4096 4096 passed
Result: Kernel parameter check passed for "shmmni"
Check: Kernel parameter for "shmall"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 3279547 3279547 2097152 passed
nascds10 3279547 3279547 2097152 passed
Result: Kernel parameter check passed for "shmall"
Check: Kernel parameter for "file-max"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 6815744 6815744 6815744 passed
nascds10 6815744 6815744 6815744 passed
Result: Kernel parameter check passed for "file-max"
Check: Kernel parameter for "ip_local_port_range"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 between 9000.0 & 65500.0 between 9000.0 & 65500.0 between 9000.0 & 65500.0 passed
nascds10 between 9000.0 & 65500.0 between 9000.0 & 65500.0 between 9000.0 & 65500.0 passed
Result: Kernel parameter check passed for "ip_local_port_range"
Check: Kernel parameter for "rmem_default"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 262144 262144 262144 passed
nascds10 262144 262144 262144 passed
Result: Kernel parameter check passed for "rmem_default"
Check: Kernel parameter for "rmem_max"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 4194304 4194304 4194304 passed
nascds10 4194304 4194304 4194304 passed
Result: Kernel parameter check passed for "rmem_max"
Check: Kernel parameter for "wmem_default"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 262144 262144 262144 passed
nascds10 262144 262144 262144 passed
Result: Kernel parameter check passed for "wmem_default"
Check: Kernel parameter for "wmem_max"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 1048576 1048576 1048576 passed
nascds10 1048576 1048576 1048576 passed
Result: Kernel parameter check passed for "wmem_max"
Check: Kernel parameter for "aio-max-nr"
Node Name Current Configured Required Status Comment
---------------- ------------ ------------ ------------ ------------ ------------
nascds11 3145728 3145728 1048576 passed
nascds10 3145728 3145728 1048576 passed
Result: Kernel parameter check passed for "aio-max-nr"
Check: Package existence for "make"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 make-3.80-7.EL4 make-3.80 passed
nascds10 make-3.80-7.EL4 make-3.80 passed
Result: Package existence check passed for "make"
Check: Package existence for "binutils"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 binutils-2.15.92.0.2-25 binutils-2.15.92.0.2 passed
nascds10 binutils-2.15.92.0.2-25 binutils-2.15.92.0.2 passed
Result: Package existence check passed for "binutils"
Check: Package existence for "gcc"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 gcc-3.4.6-10.0.1 gcc-3.4.6 passed
nascds10 gcc-3.4.6-10.0.1 gcc-3.4.6 passed
Result: Package existence check passed for "gcc"
Check: Package existence for "gcc-c++"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 gcc-c++-3.4.6-10.0.1 gcc-c++-3.4.6 passed
nascds10 gcc-c++-3.4.6-10.0.1 gcc-c++-3.4.6 passed
Result: Package existence check passed for "gcc-c++"
Check: Package existence for "libaio"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 libaio-0.3.105-2 libaio-0.3.105 passed
nascds10 libaio-0.3.105-2 libaio-0.3.105 passed
Result: Package existence check passed for "libaio"
Check: Package existence for "glibc"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 glibc-2.3.4-2.41 glibc-2.3.4-2.41 passed
nascds10 glibc-2.3.4-2.41 glibc-2.3.4-2.41 passed
Result: Package existence check passed for "glibc"
Check: Package existence for "compat-libstdc++-33"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 compat-libstdc++-33-3.2.3-47.3 compat-libstdc++-33-3.2.3 passed
nascds10 compat-libstdc++-33-3.2.3-47.3 compat-libstdc++-33-3.2.3 passed
Result: Package existence check passed for "compat-libstdc++-33"
Check: Package existence for "elfutils-libelf"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 elfutils-libelf-0.97.1-5 elfutils-libelf-0.97 passed
nascds10 elfutils-libelf-0.97.1-5 elfutils-libelf-0.97 passed
Result: Package existence check passed for "elfutils-libelf"
Check: Package existence for "elfutils-libelf-devel"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 elfutils-libelf-devel-0.97.1-5 elfutils-libelf-devel-0.97 passed
nascds10 elfutils-libelf-devel-0.97.1-5 elfutils-libelf-devel-0.97 passed
Result: Package existence check passed for "elfutils-libelf-devel"
Check: Package existence for "glibc-common"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 glibc-common-2.3.4-2.41 glibc-common-2.3.4 passed
nascds10 glibc-common-2.3.4-2.41 glibc-common-2.3.4 passed
Result: Package existence check passed for "glibc-common"
Check: Package existence for "glibc-devel"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 glibc-devel-2.3.4-2.41 glibc-devel-2.3.4 passed
nascds10 glibc-devel-2.3.4-2.41 glibc-devel-2.3.4 passed
Result: Package existence check passed for "glibc-devel"
Check: Package existence for "glibc-headers"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 glibc-headers-2.3.4-2.41 glibc-headers-2.3.4 passed
nascds10 glibc-headers-2.3.4-2.41 glibc-headers-2.3.4 passed
Result: Package existence check passed for "glibc-headers"
Check: Package existence for "libaio-devel"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 libaio-devel-0.3.105-2 libaio-devel-0.3.105 passed
nascds10 libaio-devel-0.3.105-2 libaio-devel-0.3.105 passed
Result: Package existence check passed for "libaio-devel"
Check: Package existence for "libgcc"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 libgcc-3.4.6-10.0.1 libgcc-3.4.6 passed
nascds10 libgcc-3.4.6-10.0.1 libgcc-3.4.6 passed
Result: Package existence check passed for "libgcc"
Check: Package existence for "libstdc++"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 libstdc++-3.4.6-10.0.1 libstdc++-3.4.6 passed
nascds10 libstdc++-3.4.6-10.0.1 libstdc++-3.4.6 passed
Result: Package existence check passed for "libstdc++"
Check: Package existence for "libstdc++-devel"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 libstdc++-devel-3.4.6-10.0.1 libstdc++-devel-3.4.6 passed
nascds10 libstdc++-devel-3.4.6-10.0.1 libstdc++-devel-3.4.6 passed
Result: Package existence check passed for "libstdc++-devel"
Check: Package existence for "sysstat"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 sysstat-5.0.5-19.el4 sysstat-5.0.5 passed
nascds10 sysstat-5.0.5-19.el4 sysstat-5.0.5 passed
Result: Package existence check passed for "sysstat"
Check: Package existence for "pdksh"
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
nascds11 pdksh-5.2.14-30.6 pdksh-5.2.14 passed
nascds10 pdksh-5.2.14-30.6 pdksh-5.2.14 passed
Result: Package existence check passed for "pdksh"
Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed
Check: Current group ID
Result: Current group ID check passed
Starting check for consistency of primary group of root user
Node Name Status
------------------------------------ ------------------------
nascds11 passed
nascds10 passed
Check for consistency of root user's primary group passed
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes
No NTP Daemons or Services were found to be running
Result: Clock synchronization check using Network Time Protocol(NTP) passed
Checking Core file name pattern consistency...
Core file name pattern consistency check passed.
Checking to make sure user "grid" is not in "root" group
Node Name Status Comment
------------ ------------------------ ------------------------
nascds11 passed does not exist
nascds10 passed does not exist
Result: User "grid" is not part of "root" group. Check passed
Check default user file creation mask
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
nascds11 0022 0022 passed
nascds10 0022 0022 passed
Result: Default user file creation mask check passed
Checking consistency of file "/etc/resolv.conf" across nodes
Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking DNS response time for an unreachable node
Node Name Status
------------------------------------ ------------------------
nascds11 passed
nascds10 passed
The DNS response time for an unreachable node is within acceptable limit on all nodes
File "/etc/resolv.conf" is consistent across nodes
Check: Time zone consistency
Result: Time zone consistency check passed
Pre-check for cluster services setup was successful.