How to solve error Check for integrity of file "/etc/resolv.conf" failed when run ./runcluvfy.sh?

huangapple go评论86阅读模式
英文:

How to solve error Check for integrity of file "/etc/resolv.conf" failed when run ./runcluvfy.sh?

问题

我想在Oracle Linux操作系统上安装Oracle数据库12cR1实时应用程序集群。我已经在节点1和节点2上完成了所有配置,但在安装网格基础设施时出现了以下错误:

检查“/etc/resolv.conf”中所有服务器的DNS响应
从“/etc/resolv.conf”中指定的每个名称服务器检查名称“kaash-his-2”的响应
节点名称 来源 注释 状态


从“/etc/resolv.conf”中指定的每个名称服务器检查名称“kaash-his-1”的响应
节点名称 来源 注释 状态


文件“/etc/resolv.conf”的完整性检查失败

这是文件resolv.conf的输出:

[root@KAASH-HIS-1 tmp]# cat /etc/resolv.conf

由NetworkManager生成

nameserver 10.93.200.222
nameserver 10.93.200.223

[root@KAASH-HIS-2 ~]# cat /etc/resolv.conf

由NetworkManager生成

nameserver 10.93.200.222
nameserver 10.93.200.223

另一个错误:

开始检查/dev/shm是否作为临时文件系统挂载...

错误:

PRVE-0426:作为/dev/shm挂载的内存中文件系统的大小为“33554432k”兆字节,小于节点“”所需的“2048”兆字节
PRVE-0426:作为/dev/shm挂载的内存中文件系统的大小为“33554432k”兆字节,小于节点“”所需的“2048”兆字节

检查/dev/shm是否作为临时文件系统挂载失败

我已经在/etc/fstab文件中添加了/dev/shm,并且以下是文件的详细信息:

[root@KAASH-HIS-1 tmp]# cat /etc/fstab

/etc/fstab

由anaconda于2022年12月27日星期二13:35:34创建

通过引用可访问的文件系统维护在“/dev/disk”下

有关更多信息,请参见man页面fstab(5),findfs(8),mount(8)和/或blkid(8)

/dev/mapper/ol_kaash--his--1-root / xfs defaults 0 0
UUID=8c639649-0a25-48d7-9fe5-9ed62090f457 /boot xfs defaults 0 0
/dev/mapper/ol_kaash--his--1-home /home xfs defaults 0 0
/dev/mapper/ol_kaash--his--1-swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=32g 0 0

请问如何解决这些错误?

英文:

I want to install oracle database 12cR1 Real application cluster on oracle linux operating system .

I did all configurations in node 1 and node 2 but during the installation of grid infrastructure I got following errors :

checking DNS response from all servers in "/etc/resolv.conf"
checking response for name "kaash-his-2" from each of the name servers specified in "/etc/resolv.conf"
  Node Name     Source     Comment                   Status    
------------------------  ------------------------  ----------
checking response for name "kaash-his-1" from each of the name servers specified in "/etc/resolv.conf"
  Node Name     Source    Comment                   Status    
------------------  ------------------------  ----------

Check for integrity of file "/etc/resolv.conf" failed

and this is the output of file resolv.conf

    [root@KAASH-HIS-1 tmp]# cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 10.93.200.222
    nameserver 10.93.200.223

   [root@KAASH-HIS-2 ~]# cat /etc/resolv.conf
   # Generated by NetworkManager
   nameserver 10.93.200.222
   nameserver 10.93.200.223

the other error :

Starting check for /dev/shm mounted as temporary file system ...

ERROR: 

PRVE-0426 : The size of in-memory file system mounted as /dev/shm is "33554432k" megabytes which is less than the required size of "2048" megabytes on node ""
PRVE-0426 : The size of in-memory file system mounted as /dev/shm is "33554432k" megabytes which is less than the required size of "2048" megabytes on node ""

Check for /dev/shm mounted as temporary file system failed

and I added already the file /dev/shm in file /etc/fstab and this is the file details :

[root@KAASH-HIS-1 tmp]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Dec 27 13:35:34 2022
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/ol_kaash--his--1-root /                       xfs     defaults        0 0
UUID=8c639649-0a25-48d7-9fe5-9ed62090f457 /boot                   xfs     defaults        0 0
/dev/mapper/ol_kaash--his--1-home /home                   xfs     defaults        0 0
/dev/mapper/ol_kaash--his--1-swap swap                    swap    defaults        0 0
tmpfs /dev/shm tmpfs size=32g 0 0 

How to solve these errors please ?

答案1

得分: 0

编辑文件/etc/resolv.conf并为所有节点添加搜索和域:

[root@KAASH-HIS-1 tmp]# vi /etc/resolv.conf
    # 由NetworkManager生成
    搜索 "本地域名"
"本地域名"
    域名服务器 10.93.200.222
    域名服务器 10.93.200.223

关于/dev/shm大小错误,您可以使用以下命令作为root用户更改大小并挂载:

# mount -o remount,size=2G /dev/shm

然后通过以下命令确认大小:

# df -h

在安装过程中,如果挂载的/dev/shm大小大于2048M,可以忽略警告。

英文:

After days of search I found the solution for these errors :

1- Edit file /etc/resolv.conf and add search and domain for all nodes :

[root@KAASH-HIS-1 tmp]# vi /etc/resolv.conf
    # Generated by NetworkManager
    search "local-domain-name"
    domain "local-domain-name"
    nameserver 10.93.200.222
    nameserver 10.93.200.223

2- about the /dev/shm size error
you can change the size and mount using the following command as root user :

   # mount -o remount,size=2G /dev/shm  

then confirm the size by using

   # df -h 

and during the installation you can ignore the warning if the mounted size for /dev/shm greater than 2048M

huangapple
  • 本文由 发表于 2023年2月6日 04:58:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75355462.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定