cancel
Showing results for 
Search instead for 
Did you mean: 

NIS MIGRATION

 
Omprakash_2
Frequent Advisor

NIS MIGRATION

Hi,

1. How to check NIS master server is running properly in workstation.

2. How to check whether NIS client points to New or Old worksation (Master Server)

I have copied /var/yp/maps, /misc & edited the /etc/rc.config.d/namesvrs file frm Old server to New once and then i have stopped nis.maser service by sbin/init.d/nis.master stop. Finally started the NIS master service in the New workstation. Hope i should to lot of things over here, request to provide any suggesion.
Note: Version used is HP UX 11.11.
6 REPLIES
Steven Schweda
Honored Contributor

Re: NIS MIGRATION

> 1. How to check NIS master server is
> running properly in workstation.

ypwhich -m
ypcat some_map_or_other
("ypcat passwd", for example.)

> 2. How to check whether NIS client [...]

ypwhich -m (on the client system)


I did most of my NIS work on Suns, and it has
been a while since I cared, so I know
nothing, but I usually did something crude,
like re-running ypinit [-c|-m|-s] on all the
old and new servers, as appropriate. (After
moving the official map source files to the
new master, of course.)
Omprakash_2
Frequent Advisor

Re: NIS MIGRATION

Hi,

Thanks for your comments. I normally used to create user account in NIS master server by providing #adduser command. But now this command is not working in New NIS master server. So i created user through sam, it was created successfully, but the home directory is not created in another host. (home dir created successfully in local host) Kindly find the below mentioned for your convenience.
===========================================
ogin: oprakash
Password:
Unable to change directory to "/ford/vasi0001/u/oprakash"
Logging in with home = "/".
[1] %

============================================
Here /ford/vasi0001 is a another workstation.
So I have checked /ford/vasi0001/u dir oprakash not created and i found existing user home directory. its looks some thing like below mentioned

drwx--x--x 30 rnatraja rnatraja 2048 Mar 11 07:45 rnatraja

drwx--x--x 15 1110050 1110050 2048 Jul 21 2008 kthirush

Request you to suggest me for the same.
Steven Schweda
Honored Contributor

Re: NIS MIGRATION

> [...] So i created user through sam, it was
> created successfully, but the home
> directory is not created in another host.
> (home dir created successfully in local
> host) [...]

What is the home directory for the user in
the NIS data?

ypcat passwd | grep oprakash

Is it "/ford/vasi0001/u/oprakash"?

Where is "/ford/vasi0001/u"? Is it local to
one system? (Which one?) Or is it on an
NFS-remote file system? (Or both?)

> Here /ford/vasi0001 is a another
> workstation.

I don't understand this. "/ford/vasi0001" is
a directory name, not a workstation name.

> ogin: oprakash

I don't know which system this is.

> drwx--x--x 15 1110050 1110050 2048 Jul 21 2008 kthirush

If the "passwd" and "group" data are good,
then I would not expect to see numbers (like
"1110050 1110050" in an "ls -l" report.
V. Nyga
Honored Contributor

Re: NIS MIGRATION

Hi,

after creating a user with sam you have to push the NIS maps with '/var/yp/ypmake'.
I don't know how it is/was with the #adduser command ... also I can't believe that the user's home dir is created at every client when running this command at the server (but I don't know).

>drwx--x--x 15 1110050 1110050 2048 Jul 21 2008 kthirush means that the user/group is not known at this ws. Are these id's not known at the NIS server? Or only not pushed ...

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Steven E. Protter
Exalted Contributor

Re: NIS MIGRATION

Shalom,

1) ypwhich
2) You need the user entries from /etc/passwd and /etc/group old to new.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Omprakash_2
Frequent Advisor

Re: NIS MIGRATION

Hi,

Thanks for your support, problem fixed.