1748259 Members
3910 Online
108760 Solutions
New Discussion юеВ

Re: NIS update error.

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

NIS update error.

Hi All,

I am getting following errors when try to update the NIS database but we can success by terminating when error comes and running /var/yp/ypmake once again.

Ex:

1)First i am running /var/yp/ypmake

root@lgapps:/emd/home/bzlqct > /var/yp/ypmake

For NIS domain emdeng:

Building the passwd map(s)... passwd build complete.
Pushing the passwd map(s): passwd.byname

The server hangs here, then i am press "CTRL + C" to terminate (to get the prompt).

2)Then again i am running /var/yp/ypmake

root@lgapps:/emd/home/bzlqct > /var/yp/ypmake

For NIS domain emdeng:

The passwd map(s) are up-to-date.
The group map(s) are up-to-date.
The hosts map(s) are up-to-date.
The networks map(s) are up-to-date.
The rpc map(s) are up-to-date.
The services map(s) are up-to-date.
The protocols map(s) are up-to-date.
The netgroup map(s) are up-to-date.
The aliases map(s) are up-to-date.
The vhe_list map(s) are up-to-date.
The publickey map(s) are up-to-date.
Building the netid map(s)... netid build complete.
Pushing the netid map(s): netid.byname

Now the server hangs here, then again i am press "CTRL + C" to terminate (to get the prompt).

3)Then once again i am running /var/yp/ypmake

Now it is working success full.


what is the issue.

13 REPLIES 13
Steven Schweda
Honored Contributor
Solution

Re: NIS update error.

> Pushing the passwd map(s): passwd.byname
>
> The server hangs here, [...]

> Pushing the netid map(s): netid.byname
>
> Now the server hangs here

I know nothing, but it looks to me as if
your "push" operations all fail.

> Now it is working success full.

Well, yeah. There's nothing more to "make",
but there's no reason to believe that any of
the slave servers has gotten the new data.

Is "yppush" also successful? (I'd guess
not.)

If not, then I'd try to identify the slave
servers, and see if things are running right
on them, and if you can communicate with
them.

Or, wait longer to see if you get an actual
error, instead of only a hung "yppush".


> what is the issue.

Do you mean, "What is the _problem_?"?
Jamie A Dennis
Frequent Advisor

Re: NIS update error.

First thing I would do is go to the directory where you store your map files and see if all the map files look correct (not zero length, etc.) and which ones have been updated recently.

If none have been updated, yppush will have no work to do. If netid HAS been updated, which appears to be the case based on your information above, verify your changes, then cd /var/yp, run make netid, which will then execute yppush netid.

If this still doesn't work, please provide more data and I'll see if I can help further.

Best regards,

Jamie
"If hindsight is 20/20, why don't more people use their rearview mirrors?" - James (Jamie) A. Dennis, 1998
Steven Schweda
Honored Contributor

Re: NIS update error.

> If none have been updated, yppush will have
> no work to do.

ypmake cares about changed files. When a
source file has changed, ypmake will normally
use yppush to distribute the changed data.

yppush does _not_ care about changed data.
Unless you have no NIS maps, yppush _always_
has "work to do", and it will do it (or try
to) when asked.

> [...] which will then execute yppush netid.

Why not just run yppush manually?
Ganesan R
Honored Contributor

Re: NIS update error.

Hi Senthilkumar,

YPMAKE is to uptate the map files, if you have make any changes on the source file. What changes you have made and on which source file.

Instead of running ypmake without any argument(which builds/updates all the maps), you can run with specific maps to be updated as a argument with ypmake commnad. For example, if you have modified only user accounts(passwd file), then you can run this command.

#ypmake passwd
or
#ypmake passwd.byname

This command will update only the passwd map and update the changes to slave servers.

Finally you said,

>>Now it is working success full<<

Do you mean that the changes or updated to the NIS database ?

Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: NIS update error.

Hi Again,

All these NIS activities like building the map files, updating the map files, notifying the slave servers about the chanes, reporting the status, etc will be taken care by NIS master daemon.

Since it is not building the maps and reporting proplerly, you can try stop and restart the NIS master daemon.
Best wishes,

Ganesh.
Steven Schweda
Honored Contributor

Re: NIS update error.

> [...] will be taken care by NIS master
> daemon.

> [...] stop and restart the NIS master
> daemon.

Ok, I'll bite. What is the "NIS master
daemon"? And what are its magical powers?
Steven Schweda
Honored Contributor

Re: NIS update error.

> [...] NIS activities like building the map
> files, updating the map files, [...]

And what are these "map files"? I know what
files are, and I have at least a vague idea
what NIS maps are, but I don't know what "map
files" are.
Ganesan R
Honored Contributor

Re: NIS update error.

Hi Steven,

>>What is the "NIS master
daemon"? And what are its magical powers?<<

Is this question to me? Do you want me to explain the daemons running on NIS master. If so here it is..

ypserv
======
An NIS server process. It runs on both master and slave NIS servers.
Its job is to listen to incoming requests and respond to them after
consulting NIS maps.

rpc.yppasswdd
==============
Runs only on NIS master servers. When a user runs the yppasswd or passwd command to change a password, this daemon updates the
password file used for building NIS password maps. It then updates the maps and pushes these to all slave servers.

rpc.updated
============
Runs on master NIS servers. This daemon is part of secure RPC. It provides a secure mechanism to update NIS source files on the
master NIS server.

ypxfrd
======
Runs on master and slave NIS servers. Its function is to transfer maps between master and slave servers.

keyserv
========
Runs on both machines. This is also a part of secure RPC and is used to keep encryption keys for all logged in users.
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: NIS update error.

Hi Steven,

>>And what are these "map files"? I know what files are, and I have at least a vague idea what NIS maps are, but I don't know what "map files" are<<

Do you think it is necessary to explain that the terms "NIS maps" and "map files" are same in NIS environment. After all maps are going to be files. It is understood. It is not compulsory that we should stick with one term. then from where the question comes?
Best wishes,

Ganesh.