Operating System - HP-UX
1832919 Members
2848 Online
110048 Solutions
New Discussion

Re: NFS and NIS problems in b2000

 
Shyjith P K
Frequent Advisor

NFS and NIS problems in b2000

Dear friends,

i have hp B2000 system loaded with HP-ux 11.0.
all the patches were loaded while installation itself
with support Plus CD.

Prb. is it is not mounting the directories exported by the machine of same config. By SAM it gives error as

"error in line 5 in ;/etc/auto.direct"
" can't parse through /etc/auto_master."

if i try by manual entry in /etc/auto.direct it mouting the directory.

NFS server is not starting after NIS client service.

If we are disabling NIS client then NFS server will start and we can enable the NIS client later with out any problem.

please suggest,

thanks, i will summarise.

Shyjith




7 REPLIES 7
Shahul
Esteemed Contributor

Re: NFS and NIS problems in b2000


Hi Shyjith

Nice to here from U. Wait for expert's reply. Even I am..

Shahul

KapilRaj
Honored Contributor

Re: NFS and NIS problems in b2000

hi shyji,

The auto.direct error is a bug in 11.0 , i hv not seen any patches for that.

Now i do not understand why NFS Server will not start after NIS. This should be something to do with the name service. Is there any file called /etc/resolve.conf ?. If exsists what is the first service to resolve a hostname ?. Is it NIS ?.

You can try the other way by keeping a /etc/hosts file and giving a high priority to /etc/hosts file through resolv.conf

If nothing is working do the following
#mv /sbin/rc3.d/S100nfs.server /sbin/rc3.d/shyji.S100nfs.server

#cp /sbin/rc3.d/shyji.S100nfs.server /sbin/rc2.d/S415nfs.server

What did i do ?. I just made nis client to start after nfs.server

This should solve the issue

Best of luck guys

kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: NFS and NIS problems in b2000

hi shyji,

On the nfs server , do the following ,

sam---->Networking and Communications-->Name service switch-->The fourth line should be hosts ---->select it -->Actions -->change....First source from DNS /NIS to /etc/hosts & have a host database in /etc/hosts itself

Are you trying all these ????

Best of luck

kaps
Nothing is impossible
Shyjith P K
Frequent Advisor

Re: NFS and NIS problems in b2000

Dear Kapil

NFS server and NIS working fine if NFS starts first and then NIS client. But I don't think this as a permanent solution. Is there any extra patches, needs to be applied for this. The other option is also not wkg.

Thanks and regards
Shyjith

Shahul
Esteemed Contributor

Re: NFS and NIS problems in b2000

Hi Shyjith

Ur OS is 11.0.right? There are two CDs for 11.0, one is core OS and other is Os options CD. Did U loaded the bundles from second CD? If yes, I don't think some other extra patches are rqd.

Normally for NFS /etc/auto_master, /etc/auto.direct ( or one file which U mentioned in /etc/auto_master), and /etc/rc.config.d/nfsconf are the files which will come in to picture. Am I right? Apart from this rc scripts for starting the process. So what I am asking is, after starting the NIS, Is there any NFS related file configuration is getting changed? or its prmission is altering? Can U cross check this?

U told that after NIS starts NFS will disappear.

One more thing I suggest U that just go thru the man page of ypfiles. There U can see the files which are participating in NIS. Cross check all this files (some of them are for NFS too).

reply with updates

Best of luck

Shahul
Sachin Patel
Honored Contributor

Re: NFS and NIS problems in b2000

Hi Shyjith,
If I am not mistaken NFS starts first and then NIS. So why do you want to start NIS first?


Sachin
Is photography a hobby or another way to spend $
Shahul
Esteemed Contributor

Re: NFS and NIS problems in b2000

Hi Sachin

No..NIS starts first. NIS server and client starts in runlevel 2, NFS client also will start in runlevel 2 , but after NIS. NFS server will start in runlevel 3.


Shahul