LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   NIS issue for solaris 10 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/nis-issue-for-solaris-10-a-556881/)

UltraSoul 05-26-2007 12:49 PM

NIS issue for solaris 10
 
I have nis server ultra10 which manages another test10/solaris10 and test01/FC5.
I can cd into /net/test10 and see all its export resources.
But I can not cd into /net/test01 but via its IP of test01.

-bash-3.00# ypwhich
test10
-bash-3.00# ypcat hosts | grep test01
192.168.11.11 test01

-bash-3.00# cd /net/test01
-bash: cd: /net/test01: No such file or directory

-bash-3.00# cd /net/192.168.11.11
-bash-3.00# pwd
/net/192.168.11.11


Any idea?

jlliagre 05-26-2007 03:10 PM

Is nis set for hostname resolution in /etc/nsswitch.conf ?

UltraSoul 05-27-2007 07:50 AM

-bash-3.00# ypcat hosts
192.168.11.11 test1
127.0.0.1 localhost
192.168.11.7 ultra10 loghost
192.168.11.10 test10

-bash-3.00# cat /etc/nsswitch.conf | grep hosts
# "hosts:" and "services:" in this file are used only if the
hosts: dns nis [NOTFOUND=return] files
# before searching the hosts databases.

jlliagre 05-27-2007 08:45 AM

For /net, I think the entry to set in nsswitch.conf is automount, not hosts.

UltraSoul 05-27-2007 09:02 AM

-bash-3.00# cat /etc/nsswitch.conf | grep automount
automount: nis files

My OS is solaris 10. I tried to restart nis server and autofs service via svcadm. But problem persistent.

jlliagre 05-27-2007 09:48 AM

Perhaps does the host name need to be fully qualified (nis domain appended) ?

UltraSoul 05-27-2007 10:09 AM

In test01/FC5

# ypwhich
test10

# domainname
home.org

In test10/Solari10
# domainname
home.org

jlliagre 05-27-2007 10:36 AM

"/net/test01.home.org/" neither works ?

UltraSoul 05-27-2007 10:48 AM

-bash-3.00# more /etc/resolv.conf
search domain home.org
nameserver 192.168.11.1

I also tried cd /net/test01.home.org, problem persistent.

In my test10/Soalris OS.
-bash-3.00# ping test01
test01 is alive

jlliagre 05-27-2007 02:00 PM

Perhaps a typo somewhere (you once wrote test1 vs test01), or some protocol issue on the FC5 box.

What shows "showmount -e test01" ?

UltraSoul 05-28-2007 02:08 AM

# showmount -e test01
Export list for test01:
/share *
/project *

jlliagre 05-28-2007 07:23 AM

Can you mount the filesystem manually ?
Code:

mkdir /tmp/mnt
mount test01:/share /tmp/mnt


UltraSoul 05-28-2007 08:27 AM

Yeah, I think the RPC bind failure is the hell, But how should i fix the problem?


-bash-3.00# pwd
/tmp
-bash-3.00# mkdir mnt
-bash-3.00# mount test01:/share /tmp/mnt/
nfs mount: test01: : RPC: Rpcbind failure - RPC: Unable to receive
nfs mount: retrying: /tmp/mnt
nfs mount: test01: : RPC: Rpcbind failure - RPC: Unable to receive
nfs mount: test01: : RPC: Rpcbind failure - RPC: Unable to receive
^C

-bash-3.00# mount test01.homelinux.org:/share /tmp/mnt/
nfs mount: test01.homelinux.org: : RPC: Rpcbind failure - RPC: Unable to receive
nfs mount: retrying: /tmp/mnt
nfs mount: test01.homelinux.org: : RPC: Rpcbind failure - RPC: Unable to receive
nfs mount: test01.homelinux.org: : RPC: Rpcbind failure - RPC: Unable to receive

-bash-3.00# mount 192.168.11.11:/share /tmp/mnt/
==> use Ip and it works fine.


And rpcinfo for nfs is as follows.
-bash-3.00# rpcinfo -p | grep nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl

ADxD_7 05-28-2007 09:50 AM

Can you post your /etc/dfs/dtstab and your auto_master and auto_direct maps for test01 ?

jlliagre 05-28-2007 10:04 AM

Is there another resolution for test01 in the DNS ?

What tells "nslookup test01" ?


All times are GMT -5. The time now is 07:33 AM.