Operating System - HP-UX
1837960 Members
2486 Online
110124 Solutions
New Discussion

NIS problem : no such map in server's NIS domain

 
FOREST Michel
Frequent Advisor

NIS problem : no such map in server's NIS domain

Hi,
When i would like to put a new server as slave's server on my new NIS domain, i have some errors.
When i put the command : ypinit -s
i have the error :
Transferring services.byname for domain from miahp004...
Transferring vhe_list for domain from miahp004...
ypxfr: can't get order number for map vhe_list from ypserv at miahp004
reason: no such map in server's NIS domain
and the same problem appears whith ethers.byaddr ethers.byname netmasks.byaddr bootparams

After i start the nis.client , it's take a long time to obtain prompt. Then when i shut the nis.client, there is no problem to obtain the prompt immedialtly.

Could anyone help me ?
Thanks for alo
A rookie in the HP Forum :)
8 REPLIES 8
Shannon Petry
Honored Contributor

Re: NIS problem : no such map in server's NIS domain

Looks like 2 problems, so lets address 1 at a time.

First, we'll tackle your ypinit -s issues.

ypinit -s is a generic start up script, expecting default maps from MOST NIS installations.

On the NIS master, type.
cd /var/yp/`domainname`
Most people dont use /etc/ethers any more, but it should still be there as a default. If not, touch the file and repeat for other missing files. I.E., /etc/netmasks

Now lets manually build the maps it looks for.
makedbm /etc/netmasks netmasks
makedbm /etc/ethers ethers
makedbm /etc/vhe_list vhe_list

Repeat this for the missing maps. Then on the slave re-run ypinit -s.

Remember too that ypinit -s will start the initial daemons, but not at reboot. You need to modify the /etc/rc.config.d/namesvrs file and change the NIS_DOMAIN, client, and slave entries.

Now to your client timing issues with ypbind... Are these systems on the same subnet? if the server is not found via broadcast, it will usually hang. Also if there is switching or network issues, you may need to force a server.

I.E.
for PID in `ps -ef|grep ypbind|grep -v grep|awk '{print $2}'` ; do
kill $PID
done
ypbind -ypset
ypset

See if this works. If it does, again to keep changes made you need to modify /etc/rc.config.d/namesvrs and specify ypbind options of "-ypset" and make sure the YPSET_ADDR is set.

I'd still investigate network etc.. issues and use the force ypset as a work around.

Regards,
Shannon
Microsoft. When do you want a virus today?
FOREST Michel
Frequent Advisor

Re: NIS problem : no such map in server's NIS domain

Sorry, but there is no progess in my problem. Have you some idee to help me ?
A rookie in the HP Forum :)
Shannon Petry
Honored Contributor

Re: NIS problem : no such map in server's NIS domain

Did you try any of the things I suggested?
Microsoft. When do you want a virus today?
FOREST Michel
Frequent Advisor

Re: NIS problem : no such map in server's NIS domain

I have try all you said , but there is no progress . But i haven't the repons's time so longer on the slave . So it's ai little better .
A rookie in the HP Forum :)
Shannon Petry
Honored Contributor

Re: NIS problem : no such map in server's NIS domain

After you made the maps manually that the NIS slave complained about, did you try to ypcat these maps on the master to ensure that they were built and empty?

Shannon
Microsoft. When do you want a virus today?
FOREST Michel
Frequent Advisor

Re: NIS problem : no such map in server's NIS domain

when i use the ypcat , the answer of ypcat ypservers is empty .
I think, i trie to open a call into the HP Call center .
Thanks for your help, if i find a good solution, i complete this text to help other person.

Thanks a lot !
A rookie in the HP Forum :)
Kevin Wright
Honored Contributor

Re: NIS problem : no such map in server's NIS domain

what is vhe_list? the error states you are trying to pull this map, but it doesn't exist on the master.
I think I would basically remove the maps you pulled, make sure the hostname is in /etc/hosts, and re-run ypinit -s . when it can't pull a map, create it with touch mapname, or makemap, and re-run ypinit.
Suresh Patoria
Super Advisor

Re: NIS problem : no such map in server's NIS domain

Hi,

I want to suggenst you, you create the map again using ypmake command in /var/yp directory than you try the above command

And also check the services is running or not


Thanx