- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS update error.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 09:55 AM
тАО08-12-2009 09:55 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 10:09 AM
тАО08-12-2009 10:09 AM
Solution>
> 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_?"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 06:23 PM
тАО08-12-2009 06:23 PM
Re: NIS update error.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 07:01 PM
тАО08-12-2009 07:01 PM
Re: NIS update error.
> 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 08:44 PM
тАО08-12-2009 08:44 PM
Re: NIS update error.
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 ?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 08:55 PM
тАО08-12-2009 08:55 PM
Re: NIS update error.
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.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 09:16 PM
тАО08-12-2009 09:16 PM
Re: NIS update error.
> daemon.
> [...] stop and restart the NIS master
> daemon.
Ok, I'll bite. What is the "NIS master
daemon"? And what are its magical powers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 09:19 PM
тАО08-12-2009 09:19 PM
Re: NIS update error.
> 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 09:54 PM
тАО08-12-2009 09:54 PM
Re: NIS update error.
>>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.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 10:01 PM
тАО08-12-2009 10:01 PM
Re: NIS update error.
>>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?
Ganesh.