Linux

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating pass wd.byuid...

Naan 2014. 4. 7. 15:49
320x100

nis 구축중 ypinit -m 할때 아래와 같이 에러가 뜬다면


# /usr/lib64/yp/ypinit -m


At this point, we have to construct a list of the hosts which will run NIS

servers.  localhost is in the list of NIS server hosts.  Please continue to add

the names for the other hosts, one per line.  When you are done with the

list, type a <control D>

        next host to add:  localhost

        next host to add:

The current list of NIS servers looks like this:


localhost


Is this correct?  [y/n: y]  y

We need a few minutes to build the databases...

Building /var/yp/localhost.com/ypservers...

Running /var/yp/Makefile...

gmake[1]: Entering directory `/var/yp/localhost.com'

Updating passwd.byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating pass                                                                   wd.byuid...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating grou                                                                   p.byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating grou                                                                   p.bygid...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating host                                                                   s.byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating host                                                                   s.byaddr...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating rpc.                                                                   byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating rpc.                                                                   bynumber...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating serv                                                                   ices.byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating serv                                                                   ices.byservicename...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating neti                                                                   d.byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating prot                                                                   ocols.bynumber...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating prot                                                                   ocols.byname...

failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating mail                                                                   .aliases...

failed to send 'clear' to local ypserv: RPC: Program not registeredgmake[1]: Lea                                                                   ving directory `/var/yp/localhost.com'


localhost has been set up as a NIS master server.


Now you can run ypinit -s localhost on all slave server.


# service ypbind restart

ypbind 서비스를 시작후에 해보자


# /usr/lib64/yp/ypinit -m


At this point, we have to construct a list of the hosts which will run NIS

servers.  localhost is in the list of NIS server hosts.  Please continue to add

the names for the other hosts, one per line.  When you are done with the

list, type a <control D>

        next host to add:  localhost

        next host to add:

The current list of NIS servers looks like this:


localhost


Is this correct?  [y/n: y]  y

We need a few minutes to build the databases...

Building /var/yp/localhost.com/ypservers...

Running /var/yp/Makefile...

gmake[1]: Entering directory `/var/yp/localhost.com'

Updating passwd.byname...

Updating passwd.byname...

Updating passwd.byuid...

Updating group.byname...

Updating group.bygid...

Updating hosts.byname...

Updating hosts.byaddr...

Updating rpc.byname...

Updating rpc.bynumber...

Updating services.byname...

Updating services.byservicename...

Updating netid.byname...

Updating protocols.bynumber...

Updating protocols.byname...

Updating gmake[1]: Leaving directory `/var/yp/localhost.com'

mail.aliases...


localhost has been set up as a NIS master server.


Now you can run ypinit -s localhost on all slave server.





320x100