runcluvfy.sh 脚本使用

本文详细介绍了 Oracle 官方在安装 Grid 前执行的预检查脚本 runcluvfy.sh 的输出结果,包括网络可达性、用户权限、内存、磁盘空间、内核参数等关键系统的检查情况,并总结了 Oracle 对操作系统环境的具体要求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

oracle 官方建议在安装oracle grid前运行此脚本,来检查各个节点是否满足grid安装的官方要求:

如果是自己的测试环境,部分‘unpassed’可以忽略。

[grid@vrh5 grid]$ sh runcluvfy.sh stage -pre crsinst -n vrh5,vrh6

Performing pre-checks for cluster services setup

Checking node reachability...
Node reachability check passed from node "vrh5"


Checking user equivalence...
User equivalence check passed for user "grid"

Checking node connectivity...

Checking hosts config file...

Verification of the hosts config file successful

Node connectivity passed for subnet "192.168.1.0" with node(s) vrh6,vrh5
TCP connectivity check passed for subnet "192.168.1.0"

Node connectivity passed for subnet "172.168.1.0" with node(s) vrh6,vrh5
TCP connectivity check passed for subnet "172.168.1.0"

Node connectivity passed for subnet "10.0.4.0" with node(s) vrh6,vrh5
TCP connectivity check failed for subnet "10.0.4.0"


Interfaces found on subnet "172.168.1.0" that are likely candidates for VIP are:
vrh6 eth1:172.168.1.182
vrh5 eth1:172.168.1.181

Interfaces found on subnet "10.0.4.0" that are likely candidates for VIP are:
vrh6 eth2:10.0.4.15
vrh5 eth2:10.0.4.15

Interfaces found on subnet "192.168.1.0" that are likely candidates for a private interconnect are:
vrh6 eth0:192.168.1.183
vrh5 eth0:192.168.1.181

Node connectivity check passed

Total memory check failed
Check failed on nodes:
vrh6,vrh5
Available memory check passed
Swap space check failed
Free disk space check passed for "vrh6:/tmp"
Free disk space check passed for "vrh5:/tmp"
User existence check passed for "grid"
Group existence check passed for "oinstall"
Group existence check passed for "dba"
Membership check for user "grid" in group "oinstall" [as Primary] passed
Membership check for user "grid" in group "dba" failed
Check failed on nodes:
vrh6,vrh5
Run level check passed
Hard limits check passed for "maximum open file descriptors"
Soft limits check passed for "maximum open file descriptors"
Hard limits check passed for "maximum user processes"
Soft limits check passed for "maximum user processes"
System architecture check passed
Kernel version check passed
Kernel parameter check passed for "semmsl"
Kernel parameter check passed for "semmns"
Kernel parameter check passed for "semopm"
Kernel parameter check passed for "semmni"
Kernel parameter check passed for "shmmax"
Kernel parameter check passed for "shmmni"
Kernel parameter check passed for "shmall"
Kernel parameter check passed for "file-max"
Kernel parameter check passed for "ip_local_port_range"
Kernel parameter check passed for "rmem_default"
Kernel parameter check passed for "rmem_max"
Kernel parameter check passed for "wmem_default"
Kernel parameter check passed for "wmem_max"
Kernel parameter check passed for "aio-max-nr"
Package existence check passed for "make-3.81"
Package existence check passed for "binutils-2.17.50.0.6"
Package existence check passed for "gcc-4.1.2"
Package existence check passed for "libaio-0.3.106 (i386)"
Package existence check passed for "libaio-0.3.106 (x86_64)"
Package existence check passed for "glibc-2.5-24 (i686)"
Package existence check passed for "glibc-2.5-24 (x86_64)"
Package existence check passed for "compat-libstdc++-33-3.2.3 (i386)"
Package existence check passed for "compat-libstdc++-33-3.2.3 (x86_64)"
Package existence check passed for "elfutils-libelf-0.125 (x86_64)"
Package existence check passed for "elfutils-libelf-devel-0.125"
Package existence check passed for "glibc-common-2.5"
Package existence check passed for "glibc-devel-2.5 (i386)"
Package existence check passed for "glibc-devel-2.5 (x86_64)"
Package existence check passed for "glibc-headers-2.5"
Package existence check passed for "gcc-c++-4.1.2"
Package existence check passed for "libaio-devel-0.3.106 (i386)"
Package existence check passed for "libaio-devel-0.3.106 (x86_64)"
Package existence check passed for "libgcc-4.1.2 (i386)"
Package existence check passed for "libgcc-4.1.2 (x86_64)"
Package existence check passed for "libstdc++-4.1.2 (i386)"
Package existence check passed for "libstdc++-4.1.2 (x86_64)"
Package existence check passed for "libstdc++-devel-4.1.2 (x86_64)"
Package existence check passed for "sysstat-7.0.2"
Package existence check passed for "unixODBC-2.2.11 (i386)"
Package existence check passed for "unixODBC-2.2.11 (x86_64)"
Package existence check passed for "unixODBC-devel-2.2.11 (i386)"
Package existence check passed for "unixODBC-devel-2.2.11 (x86_64)"
Package existence check passed for "ksh-20060214"
Check for multiple users with UID value 0 passed
Current group ID check passed
Core file name pattern consistency check passed.

User "grid" is not part of "root" group. Check passed
Default user file creation mask check passed

Starting Clock synchronization checks using Network Time Protocol(NTP)...

NTP Configuration file check started...
NTP Configuration file check passed

Checking daemon liveness...
Liveness check failed for "ntpd"
Check failed on nodes:

vrh6,vrh5
PRVF-5415 : Check to see if NTP daemon is running failed
Clock synchronization check using Network Time Protocol(NTP) failed


Pre-check for cluster services setup was unsuccessful on all the nodes.

从以上检查,也可以看出oracle 需要对os环境有哪些具体的要求,比如rpm包,内核参数,tmp,用户组。。。。。。

上面命令报错日志是什么问题:[root@19cdb01 rpm]# su - grid Last login: Fri Mar 7 09:30:37 CST 2025 on pts/0 [grid@19cdb01:/home/grid]$ [grid@19cdb01:/home/grid]$ export CVUQDIISK_GRP=oinstall [grid@19cdb01:/home/grid]$ [grid@19cdb01:/home/grid]$ cd /u01/app/19.3.0/grid/ [grid@19cdb01:/u01/app/19.3.0/grid]$ [grid@19cdb01:/u01/app/19.3.0/grid]$ [grid@19cdb01:/u01/app/19.3.0/grid]$ cd /u01/app/19.3.0/grid [grid@19cdb01:/u01/app/19.3.0/grid]$ [grid@19cdb01:/u01/app/19.3.0/grid]$ ls addnode clone dbjava diagnostics gpnp install jdbc lib OPatch ords perl qos rhp rootupgrade.sh sqlpatch tomcat welcome.html xdk assistants crs dbs dmu gridSetup.sh instantclient jdk md opmn oss plsql racg root.sh runcluvfy.sh sqlplus ucp wlm bin css deinstall env.ora has inventory jlib network oracore oui precomp rdbms root.sh.old sdk srvm usm wwg cha cv demo evm hs javavm ldap nls ord owm QOpatch relnotes root.sh.old.1 slax suptools utl xag [grid@19cdb01:/u01/app/19.3.0/grid]$ [grid@19cdb01:/u01/app/19.3.0/grid]$ ./runcluvfy.sh stage -pre crsinst -n 19cdb01, 19cdb02 -verbose ERROR: Unexpected symbol "19cdb02". See usage for detail. USAGE: runcluvfy.sh stage -pre crsinst -responseFile <response_file> [-fixup] [-fixupnoexec] [-method sudo -user <user_name> [-location <dir_path>]|-method root] [-r {10.1|10.2|11.1|11.2|12.1|12.2|18|19}] [-verbose] crsinst -file <config_file> [-fixup] [-fixupnoexec] [-method sudo -user <user_name> [-location <dir_path>]|-method root] [-verbose] crsinst -upgrade [-rolling] [-src_crshome <src_crshome>] -dest_crshome <dest_crshome> -dest_version <dest_version> [-fixup] [-fixupnoe
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值