Well, thanks for the advice. I have to say, I've never had to deal with an "incorrect" hosts file and NIS/NFS, so I'm not entirely certain if this is a Debian issue or an OpenVZ issue. It's just one of those things that I've taken for granted for always being correct!
On Sun, Jan 10, 2010 at 1:01 PM, Scott Dowdle <dow...@montanalinux.org> wrote: > Steve, > > ----- "Steve Scaffidi" <step...@scaffidi.net> wrote: >> Very strange issue, I'm not sure where I went wrong or how to fix it: >> >> CT /etc/hosts: >> -------------------- >> 127.0.0.1 localhost.localdomain localhost >> # Auto-generated hostname. Please do not remove this comment. >> 10.1.10.123 test-server.redweek.com test-server test-server >> -------------------- >> >> OpenVZ seems to really want to have the hostname listed twice in the >> hosts file... every time I issue a vzctl restart that line is reset >> to >> what I pasted above. >> >> Unfortunately this error causes NIS and NFS to fail (due to portmapper >> failing) and I can get them working by fixing the invalid line above >> and restarting those services in the right order. However, I really >> need to figure out why openvz seems to be doing this and how to fix >> it! > > Look at the script being run from /etc/vz/dists/debian.conf you'll see > reference to scripts in the /etc/vz/dists/scripts/ directory. > > On a Fedora 12 container, I also had the hostname listed twice but it doesn't > break anything and yp works fine. I also see this behavior in some other > containers as well as physical hosts without OpenVZ. > > I'm not discouraging you from fixing it, but your services shouldn't be so > picky. > > TYL, > -- > Scott Dowdle > 704 Church Street > Belgrade, MT 59714 > (406)388-0827 [home] > (406)994-3931 [work] > _______________________________________________ > Users mailing list > Users@openvz.org > https://openvz.org/mailman/listinfo/users > -- -- Steve Scaffidi <step...@scaffidi.net> _______________________________________________ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users