1849974 Members
1721 Online
104049 Solutions
New Discussion

NIS Server

 
Pedro Sousa
Honored Contributor

NIS Server

Hi!
I did an upgrade to one system of a cluster from 10.20 to 11.
Now I'm trying to put this system as a NIS server, but I'm having problemns with this!
I've changed the following variables from the file /etc/rc.config.d/namesvrs:
NIS_MASTER_SERVER=1
NIS_CLIENT=1

but when I do /sbin/init.d/nis.server start it gives me the following errors:
starting NIS SERVER networking
starting up the rpcbind
rpcbind already started, using pid: 796
domainname wso
starting up the Network Information Service
WARNING: /usr/lib/netsvc/yp/ypserv not started: either
- the directory /var/yp/wso does not exist or
- some or all of the wso NIS domain's
maps are missing.
To initialize poru0011 as a NIS server, see ypinit(1M).
WARNING: /usr/sbin/ypxfrd not started: either
- the directory /var/yp/wso does not exist or
- some or all of the wso NIS domain's
maps are missing.
To initialize poru0011 as a NIS server, see ypinit(1M).
WARNING: /usr/lib/netsvc/yp/rpc.yppasswdd not started: refer to the
reasons listed in the WARNING above.
WARNING: /usr/lib/netsvc/yp/rpc.ypupdated not started: refer to the
reasons listed in the WARNING above.
starting up the keyserv daemon
keyserv already started, using pid: 10478



When I start these daemons myself, it works fine, but after I do a /sbin/init.d/nis.server stop, and again a /sbin/init.d/nis.server stop it doesn't work again!!

Can you help me on this?

thanks
3 REPLIES 3
Rick Garland
Honored Contributor

Re: NIS Server

Have you done the ypinit -m command? Looks as if the system does not have the NIS maps.
Pedro Sousa
Honored Contributor

Re: NIS Server

Yes!
I did it before.
Pedro Sousa
Honored Contributor

Re: NIS Server

following my last answer:

The output of ypinit -m was:
root@poru0011:/# ypinit -m
You will be required to answer a few questions to install the Network Information Service.
All questions will be asked at the beginning of this procedure.

Do you want this procedure to quit on non-fatal errors? [y/n: n]
OK, but please remember to correct anything which fails.
If you don't, some part of the system (perhaps the NIS itself) won't work.

Can the existing directory "/var/yp/wso"
and its contents be destroyed? [y/n: n] y

At this point, you must construct a list of the hosts which will be
NIS servers for the "wso" domain.
This machine, poru0011, is in the list of Network Information Service servers.
Please provide the hostnames of the slave servers, one per line.
When you have no more names to add, enter a or a blank line.

next host to add: poru0011
next host to add: poru0012
next host to add:

The current list of NIS servers looks like this:

poru0011
poru0012

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

There will be no further questions. The remainder of the procedure should take
5 to 10 minutes.

Building the ypservers database... ypservers build complete.

Running make in /var/yp:
updated passwd
problem storing users users::20:root,oper,komets,ag0108,fa0058,op9911,rd9911,sec,jc0031,wsprg,ca0069,hs0143,jf0144,sm0149,vm0151,eg0157,fc0158,jr0159,ja0160,lf0161,an0076,ia0077,js0078,lf0079,nc0080,nb0081,rc0082,vb0084,vb0085,vc0086,mq0087,pm0088,cr0035,cb0036,jf0038,jp0039,ab0041,lo0050,jr0046,lc0052,mc0053,mc0054,pa0055,pf0056,cc0141,ca0142,lg0145,ml0147,rs0148,st0150,cm0155,ca0156,pf0163,ps0164,ss0165,sl0166,tt0136,js0043,rh0074,vh0075,jn0135,mc0018,aj0110,cr0100,jm0102,as0104,pv0066,pv0019,ap0117,js0131,jm0116,ao0112,ab0012,if0107,ad0010,r1waveri,av9999,mp0333,bt0341,ec9904,ac9904,mb9904,aq0009,js0044,galli,ac0011,jc0067,jv0067,pg0133,pl0020,fb0023,r1bepo,r1wavepo,r1dbpo,fast,systema,ce0205,fl0222,jm0072,jm0226,nr0233,nc0234,rt0241,rf0242,sc0243,va0245,as0214,ar0215,bs0219,cc0220,ha0223,jf0224,ls0227,ld0228,mc0229,ms0230,kardex,mc0231,ns0235,or0236,tp0097,vo9001,jn9002,ft9003,eq9004,cc9005,rf9006,pm9007,mr9008,da9009,rm9010,jt9012,ml9013,ec9015,lv9016,rc9017,sa9018,at9019,cc9020,aa9021,sc9022,cc9023,pp9025,cd9026,pa9027
*** Error exit code 1
updated hosts
updated networks
updated rpc
updated services
updated protocols
updated netgroup
WARNING: Group writable directory /var/yp/wso
WARNING: Group writable directory /var/yp/wso
WARNING: Group writable directory /var/yp/wso
updated aliases
updated publickey
updated netid
Make: Don't know how to make /etc/auto_master. Stop.
*** Error exit code 1
`all' not remade because of errors

poru0011 has been set up as a master Network Information Service server without any errors.

If there are running slave NIS servers, run yppush(1M) now for any databases
which have been changed. If there are no running slaves, run ypinit on
those hosts which are to be slave servers.


As you can see this gives some errors, but it happens the same on other servers running NIS! So, I think it's normal...!