6.1 检查系统包
grid 身份下校验安装环境(检测crs安装环境(sgdb1))
[root@node1 soft]#su – grid
[grid@node1 ~]$ cd /soft/grid
[grid@node1 grid]$ ./runcluvfy.sh stage -pre crsinst -n sgdb1,sgdb2 -fixup -verbose
//pre-安装前,post-安装后,阶段名称叫crsinst-crsinstall,-n-节点之间校验,verbose-校验的过程
|
执行结果如下:
[grid@sgdb1 grid]$ ./runcluvfy.sh stage -pre crsinst -n sgdb1,sgdb2 -fixup -verbose
Performing pre-checks for cluster services setup Checking node reachability... Check: Node reachability from node "sgdb1" Destination Node Reachable? ------------------------------------ ------------------------ sgdb1 yes sgdb2 yes Result: Node reachability check passed from node "sgdb1" Checking user equivalence... Check: User equivalence for user "grid" Node Name Status ------------------------------------ ------------------------ sgdb2 passed sgdb1 passed Result: User equivalence check passed for user "grid" Checking node connectivity... Checking hosts config file... Node Name Status ------------------------------------ ------------------------ sgdb2 passed sgdb1 passed Verification of the hosts config file successful Interface information for node "sgdb2" Name IP Address Subnet Gateway Def. Gateway HW Address MTU ------ --------------- --------------- --------------- --------------- ----------------- ------ eth0 192.168.243.72 192.168.243.0 0.0.0.0 192.168.243.1 08:00:27:35:D3:80 1500 eth1 10.10.10.72 10.10.10.0 0.0.0.0 192.168.243.1 08:00:27:0F:1B:70 1500 Interface information for node "sgdb1" Name IP Address Subnet Gateway Def. Gateway HW Address MTU ------ --------------- --------------- --------------- --------------- ----------------- ------ eth0 192.168.243.71 192.168.243.0 0.0.0.0 192.168.243.1 08:00:27:26:B6:27 1500 eth1 10.10.10.71 10.10.10.0 0.0.0.0 192.168.243.1 08:00:27:87:21:58 1500 Check: Node connectivity of subnet "192.168.243.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------- sgdb2[192.168.243.72] sgdb1[192.168.243.71] yes Result: Node connectivity passed for subnet "192.168.243.0" with node(s) sgdb2,sgdb1 Check: TCP connectivity of subnet "192.168.243.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------- sgdb1:192.168.243.71 sgdb2:192.168.243.72 passed Result: TCP connectivity check passed for subnet "192.168.243.0" Check: Node connectivity of subnet "10.10.10.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------- sgdb2[10.10.10.72] sgdb1[10.10.10.71] yes Result: Node connectivity passed for subnet "10.10.10.0" with node(s) sgdb2,sgdb1 Check: TCP connectivity of subnet "10.10.10.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------- sgdb1:10.10.10.71 sgdb2:10.10.10.72 passed Result: TCP connectivity check passed for subnet "10.10.10.0" Interfaces found on subnet "192.168.243.0" that are likely candidates for VIP are: sgdb2 eth0:192.168.243.72 sgdb1 eth0:192.168.243.71 Interfaces found on subnet "10.10.10.0" that are likely candidates for a private interconnect are: sgdb2 eth1:10.10.10.72 sgdb1 eth1:10.10.10.71 Checking subnet mask consistency... Subnet mask consistency check passed for subnet "192.168.243.0". Subnet mask consistency check passed for subnet "10.10.10.0". Subnet mask consistency check passed. Result: Node connectivity check passed Checking multicast communication... Checking subnet "192.168.243.0" for multicast communication with multicast group "230.0.1.0"... Check of subnet "192.168.243.0" for multicast communication with multicast group "230.0.1.0" passed. Checking subnet "10.10.10.0" for multicast communication with multicast group "230.0.1.0"... Check of subnet "10.10.10.0" for multicast communication with multicast group "230.0.1.0" passed. Check of multicast communication passed. Checking ASMLib configuration. Node Name Status ------------------------------------ ------------------------ sgdb2 passed sgdb1 passed Result: Check for ASMLib configuration passed. Check: Total memory Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 1.8336GB (1922680.0KB) 1.5GB (1572864.0KB) passed sgdb1 1.8346GB (1923704.0KB) 1.5GB (1572864.0KB) passed Result: Total memory check passed Check: Available memory Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 1.4816GB (1553604.0KB) 50MB (51200.0KB) passed sgdb1 1.4698GB (1541200.0KB) 50MB (51200.0KB) passed Result: Available memory check passed Check: Swap space Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 2.999GB (3144696.0KB) 2.7504GB (2884020.0KB) passed sgdb1 2.999GB (3144696.0KB) 2.7519GB (2885556.0KB) passed Result: Swap space check passed Check: Free disk space for "sgdb2:/tmp" Path Node Name Mount point Available Required Status ---------------- ------------ ------------ ------------ ------------ ------------ /tmp sgdb2 / 5.6738GB 1GB passed Result: Free disk space check passed for "sgdb2:/tmp" Check: Free disk space for "sgdb1:/tmp" Path Node Name Mount point Available Required Status ---------------- ------------ ------------ ------------ ------------ ------------ /tmp sgdb1 / 696.7174MB 1GB failed Result: Free disk space check failed for "sgdb1:/tmp" Check: User existence for "grid" Node Name Status Comment ------------ ------------------------ ------------------------ sgdb2 passed exists(5002) sgdb1 passed exists(5002) Checking for multiple users with UID value 5002 Result: Check for multiple users with UID value 5002 passed Result: User existence check passed for "grid" Check: Group existence for "oinstall" Node Name Status Comment ------------ ------------------------ ------------------------ sgdb2 passed exists sgdb1 passed exists Result: Group existence check passed for "oinstall" Check: Group existence for "dba" Node Name Status Comment ------------ ------------------------ ------------------------ sgdb2 passed exists sgdb1 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 ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 yes yes yes yes passed sgdb1 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 ---------------- ------------ ------------ ------------ ---------------- sgdb2 yes yes no failed sgdb1 yes yes no failed Result: Membership check for user "grid" in group "dba" failed Check: Run level Node Name run level Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 5 3,5 passed sgdb1 5 3,5 passed Result: Run level check passed Check: Hard limits for "maximum open file descriptors" Node Name Type Available Required Status ---------------- ------------ ------------ ------------ ---------------- sgdb2 hard 65536 65536 passed sgdb1 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 ---------------- ------------ ------------ ------------ ---------------- sgdb2 soft 65536 1024 passed sgdb1 soft 65536 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 ---------------- ------------ ------------ ------------ ---------------- sgdb2 hard 16384 16384 passed sgdb1 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 ---------------- ------------ ------------ ------------ ---------------- sgdb2 soft 16384 2047 passed sgdb1 soft 16384 2047 passed Result: Soft limits check passed for "maximum user processes" Check: System architecture Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 x86_64 x86_64 passed sgdb1 x86_64 x86_64 passed Result: System architecture check passed Check: Kernel version Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 2.6.32-358.el6.x86_64 2.6.9 passed sgdb1 2.6.32-358.el6.x86_64 2.6.9 passed Result: Kernel version check passed Check: Kernel parameter for "semmsl" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 250 250 250 passed sgdb1 250 250 250 passed Result: Kernel parameter check passed for "semmsl" Check: Kernel parameter for "semmns" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 32000 32000 32000 passed sgdb1 32000 32000 32000 passed Result: Kernel parameter check passed for "semmns" Check: Kernel parameter for "semopm" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 100 100 100 passed sgdb1 100 100 100 passed Result: Kernel parameter check passed for "semopm" Check: Kernel parameter for "semmni" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 128 128 128 passed sgdb1 128 128 128 passed Result: Kernel parameter check passed for "semmni" Check: Kernel parameter for "shmmax" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 2147483647875 2147483647875 984412160 passed sgdb1 2147483647875 2147483647875 984936448 passed Result: Kernel parameter check passed for "shmmax" Check: Kernel parameter for "shmmni" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 4096 4096 4096 passed sgdb1 4096 4096 4096 passed Result: Kernel parameter check passed for "shmmni" Check: Kernel parameter for "shmall" (vim /etc/sysctl.conf 修改shmall参数) Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 524288 524288 2097152 failed Current value incorrect. Configured value incorrect. sgdb1 524288 524288 2097152 failed Current value incorrect. Configured value incorrect. Result: Kernel parameter check failed for "shmall" Check: Kernel parameter for "file-max" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 6815744 6815744 6815744 passed sgdb1 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 ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 between 9000.0 & 65500.0 between 9000.0 & 65500.0 between 9000.0 & 65500.0 passed sgdb1 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 ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 262144 262144 262144 passed sgdb1 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 ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 4194304 4194304 4194304 passed sgdb1 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 ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 262144 262144 262144 passed sgdb1 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 ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 1048586 1048586 1048576 passed sgdb1 1048586 1048586 1048576 passed Result: Kernel parameter check passed for "wmem_max" Check: Kernel parameter for "aio-max-nr" Node Name Current Configured Required Status Comment ---------------- ------------ ------------ ------------ ------------ ------------ sgdb2 1048576 1048576 1048576 passed sgdb1 1048576 1048576 1048576 passed Result: Kernel parameter check passed for "aio-max-nr" Check: Package existence for "make" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 make-3.81-20.el6 make-3.80 passed sgdb1 make-3.81-20.el6 make-3.80 passed Result: Package existence check passed for "make" Check: Package existence for "binutils" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 binutils-2.20.51.0.2-5.36.el6 binutils-2.15.92.0.2 passed sgdb1 binutils-2.20.51.0.2-5.36.el6 binutils-2.15.92.0.2 passed Result: Package existence check passed for "binutils" Check: Package existence for "gcc(x86_64)"(使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing gcc(x86_64)-3.4.6 failed sgdb1 missing gcc(x86_64)-3.4.6 failed Result: Package existence check failed for "gcc(x86_64)" Check: Package existence for "libaio(x86_64)" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 libaio(x86_64)-0.3.107-10.el6 libaio(x86_64)-0.3.105 passed sgdb1 libaio(x86_64)-0.3.107-10.el6 libaio(x86_64)-0.3.105 passed Result: Package existence check passed for "libaio(x86_64)" Check: Package existence for "glibc(x86_64)" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 glibc(x86_64)-2.12-1.107.el6 glibc(x86_64)-2.3.4-2.41 passed sgdb1 glibc(x86_64)-2.12-1.107.el6 glibc(x86_64)-2.3.4-2.41 passed Result: Package existence check passed for "glibc(x86_64)" Check: Package existence for "compat-libstdc++-33(x86_64)" (使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing compat-libstdc++-33(x86_64)-3.2.3 failed sgdb1 missing compat-libstdc++-33(x86_64)-3.2.3 failed Result: Package existence check failed for "compat-libstdc++-33(x86_64)" Check: Package existence for "elfutils-libelf(x86_64)" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 elfutils-libelf(x86_64)-0.152-1.el6 elfutils-libelf(x86_64)-0.97 passed sgdb1 elfutils-libelf(x86_64)-0.152-1.el6 elfutils-libelf(x86_64)-0.97 passed Result: Package existence check passed for "elfutils-libelf(x86_64)" Check: Package existence for "elfutils-libelf-devel"(使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing elfutils-libelf-devel-0.97 failed sgdb1 missing elfutils-libelf-devel-0.97 failed Result: Package existence check failed for "elfutils-libelf-devel" Check: Package existence for "glibc-common" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 glibc-common-2.12-1.107.el6 glibc-common-2.3.4 passed sgdb1 glibc-common-2.12-1.107.el6 glibc-common-2.3.4 passed Result: Package existence check passed for "glibc-common" Check: Package existence for "glibc-devel(x86_64)" (使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing glibc-devel(x86_64)-2.3.4 failed sgdb1 missing glibc-devel(x86_64)-2.3.4 failed Result: Package existence check failed for "glibc-devel(x86_64)" Check: Package existence for "glibc-headers" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing glibc-headers-2.3.4 failed sgdb1 missing glibc-headers-2.3.4 failed Result: Package existence check failed for "glibc-headers" Check: Package existence for "gcc-c++(x86_64)" (使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing gcc-c++(x86_64)-3.4.6 failed sgdb1 missing gcc-c++(x86_64)-3.4.6 failed Result: Package existence check failed for "gcc-c++(x86_64)" Check: Package existence for "libaio-devel(x86_64)" (使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing libaio-devel(x86_64)-0.3.105 failed sgdb1 missing libaio-devel(x86_64)-0.3.105 failed Result: Package existence check failed for "libaio-devel(x86_64)" Check: Package existence for "libgcc(x86_64)" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 libgcc(x86_64)-4.4.7-3.el6 libgcc(x86_64)-3.4.6 passed sgdb1 libgcc(x86_64)-4.4.7-3.el6 libgcc(x86_64)-3.4.6 passed Result: Package existence check passed for "libgcc(x86_64)" Check: Package existence for "libstdc++(x86_64)" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 libstdc++(x86_64)-4.4.7-3.el6 libstdc++(x86_64)-3.4.6 passed sgdb1 libstdc++(x86_64)-4.4.7-3.el6 libstdc++(x86_64)-3.4.6 passed Result: Package existence check passed for "libstdc++(x86_64)" Check: Package existence for "libstdc++-devel(x86_64)" (使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing libstdc++-devel(x86_64)-3.4.6 failed sgdb1 missing libstdc++-devel(x86_64)-3.4.6 failed Result: Package existence check failed for "libstdc++-devel(x86_64)" Check: Package existence for "sysstat" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 sysstat-9.0.4-20.el6 sysstat-5.0.5 passed sgdb1 sysstat-9.0.4-20.el6 sysstat-5.0.5 passed Result: Package existence check passed for "sysstat" Check: Package existence for "pdksh"(使用yum安装) Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 missing pdksh-5.2.14 failed sgdb1 missing pdksh-5.2.14 failed Result: Package existence check failed for "pdksh" Check: Package existence for "expat(x86_64)" Node Name Available Required Status ------------ ------------------------ ------------------------ ---------- sgdb2 expat(x86_64)-2.0.1-11.el6_2 expat(x86_64)-1.95.7 passed sgdb1 expat(x86_64)-2.0.1-11.el6_2 expat(x86_64)-1.95.7 passed Result: Package existence check passed for "expat(x86_64)" 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 ------------------------------------ ------------------------ sgdb2 passed sgdb1 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... The NTP configuration file "/etc/ntp.conf" is available on all nodes NTP Configuration file check passed No NTP Daemons or Services were found to be running PRVF-5507 : NTP daemon or service is not running on any node but NTP configuration file exists on the following node(s): sgdb2,sgdb1 Result: Clock synchronization check using Network Time Protocol(NTP) failed 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 ------------ ------------------------ ------------------------ sgdb2 passed does not exist sgdb1 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 ------------ ------------------------ ------------------------ ---------- sgdb2 0022 0022 passed sgdb1 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 ------------------------------------ ------------------------ sgdb2 failed sgdb1 failed PRVF-5636 : The DNS response time for an unreachable node exceeded "15000" ms on following nodes: sgdb2,sgdb1 File "/etc/resolv.conf" is not consistent across nodes Check: Time zone consistency Result: Time zone consistency check passed Fixup information has been generated for following node(s): sgdb2,sgdb1 Please run the following script on each node as "root" user to execute the fixups: '/tmp/CVU_11.2.0.4.0_grid/runfixup.sh' Pre-check for cluster services setup was unsuccessful on all the nodes. |
6.2逐条解决问题,再次校验
根据提示,逐条解决问题,然后再次执行下列语句进行校验。
[grid@node1 grid]$ ./runcluvfy.sh stage -pre crsinst -n sgdb1,sgdb2 -fixup -verbose
|
附:使用DVD光盘作为yum源
引入光盘后,手工挂在光盘
[root@node1 yum.repos.d]#mount /dev/cdrom /media //vbox设置完毕后,手工挂载光盘
[root@node1 yum.repos.d]# ls /media/ //可以查看一下目录下文件
|
2、新建/etc/yum.repos.d/dvd.repo,添加如下内容并保存
[base]
name=Server baseurl=file:///media/Server
enable=1
gpcheck=1 |
注:若文件路径中有空格,需要将其转义成%20
3、清空yum缓存配置,使新路径生效
[root@localhost ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
//安装rpm包
[root@localhost ~]# yum install gcc* -y
|