Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2004 16:53:50 -0700
From:      "Jin Guojun [DSD]" <g_jin@lbl.gov>
To:        questions@freebsd.org, bugs@freebsd.org
Subject:   ypinit doubles /var/yp/ypservers entries
Message-ID:  <4092E70E.4A1D725@lbl.gov>

next in thread | raw e-mail | index | archive | help
more /usr/sbin/ypinit
...
for host in ${HOST_LIST};
do
        echo "${host} ${host}" >> ${YP_DIR}/ypservers
        echo "${host} ${host}"
done | ${MAKEDBM} - ${YP_DIR}/${DOMAIN}/ypservers

This makes /var/yp/ypservers like this

my_host_name     my_host_name
slave1_name    slave1_name
slave2_name    slave2_name

When type make under /var/yp, it complains:

yppush: transfer of map passwd.byuid to server slave1_name slave1_name
slave1_name failed
yppush: status returned by ypxfr: no such host
yppush: transfer of map passwd.byuid to server my_host_name failed
yppush: status returned by ypxfr: Master's version not newer
Pushed passwd.byuid map.
Updating netid.byname...
yppush: slave1_name slave1_name slave1_name : couldn't create udp handle to NIS
server: RPC: Unknown host

When changed it to following format, "make" is happy (no master name --
my_host_name):
slave1_name
slave2_name

So, question is that does ypservers do require  master_name in ypservers?
My guess is not.
The double-entry is not needed because it do nothing good.

If both are true, we need to make quick fix in ypinit script in all new
releases.

--
------------ Jin Guojun ----------- v --- j_guojun@lbl.gov ---
Distributed Systems Department          http://www.itg.lbl.gov/~jin
M/S 50B-2239                            Ph#:(510) 486-7531 Fax: 486-6363
Lawrence Berkeley National Laboratory,  Berkeley, CA 94720





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4092E70E.4A1D725>