3

我们已经设置了 3 台虚拟机服务器机器,它们从 2 台其他存储机器上挂载虚拟机。我们从存储服务器挂载虚拟机,以便在移动虚拟机时移动更少的数据(在一台服务器上暂停、在新服务器上挂载、取消暂停),并便于快照和备份。

由于暴风雨,我们正处于长期停电的状态(运营团队忘记检查发电机中是否有燃料,并且不要每周对其进行测试tsk,tsk),因此我们关闭了所有设备。

给发电机加油后,我们开始把所有东西都装起来。大问题。

为了 NFS 挂载存储,NFS 想要进行反向 DNS 查找,但是 DNS 服务器是一个 VM,在存储被 NFS 挂载之前无法启动!

我们将 DNS 服务器 VM 复制到本地 VM 服务器之一并启动它,这样我们就可以启动所有内容。

我们想在没有反向查找的情况下运行 NFS(一切都在我们的内部网络上),但不知道如何关闭。

任何帮助表示赞赏

4

4 回答 4

1

将 NFS 客户端的 IP 地址放入/etc/hostsNFS 服务器的文件中,并带有如下注释:

# 2009-04-17 Workaround a chicken and egg DNS resolution problem at boot
192.0.2.1 mynfsclient
192.0.2.2 anothernfsclient

然后,将“更改机器的 IP 地址时,不要忘记更新 NFS 服务器的主机文件”添加到您的运行手册。

现在,要关闭 NFS 服务器中的这个愚蠢的 DNS 测试,这取决于服务器。您显然没有指明操作系统或服务器类型。

于 2009-04-17T06:52:12.000 回答
1

I had a similar problem with an old Yellow Machine NAS box - I was having DNS/DHCP fights where the reverse lookups were not matching the forward lookups.

In our case, just putting dummy entries in the NAS box /etc/hosts for all the IPs solved the problem. I don't even need to have correct names for the IPs - just any name for an IP solved stopped mountd from complaining.

(Interesting side note - at least in the older version of Linux on the NAS box, there's a typo in the NFS error message: "DNS forward lookup does't match with reverse " )

于 2009-12-11T14:32:35.163 回答
0

你不能把有问题的服务器的 IP 地址放在 fstab 文件中,不需要 dns 查找。

于 2009-04-15T22:03:21.033 回答
0

它是 NFS v4,问题在于所有访问请求都使用反向 DNS 查找来确定 NFS 域以用于访问/安全目的。

我认为您可以通过在 /etc/default/nfs 中添加一行来停止这种行为,其中包含:

NFSMAPID_DOMAIN=jrandom.dns.domain.com

这需要在彼此共享/使用 NFS 的所有系统之间匹配。请参阅有关设置 NFSMAPID_DOMAIN的部分,该部分位于页面末尾,它解释了未设置时会发生什么。

NFSv4 - 比一袋黄鼠狼更有趣。

于 2010-01-13T02:22:10.053 回答