LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 05-26-2007, 01:49 PM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
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?
 
Old 05-26-2007, 04:10 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Is nis set for hostname resolution in /etc/nsswitch.conf ?
 
Old 05-27-2007, 08:50 AM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
-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.
 
Old 05-27-2007, 09:45 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
For /net, I think the entry to set in nsswitch.conf is automount, not hosts.
 
Old 05-27-2007, 10:02 AM   #5
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
-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.
 
Old 05-27-2007, 10:48 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Perhaps does the host name need to be fully qualified (nis domain appended) ?
 
Old 05-27-2007, 11:09 AM   #7
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
In test01/FC5

# ypwhich
test10

# domainname
home.org

In test10/Solari10
# domainname
home.org
 
Old 05-27-2007, 11:36 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
"/net/test01.home.org/" neither works ?
 
Old 05-27-2007, 11:48 AM   #9
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
-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

Last edited by UltraSoul; 05-27-2007 at 11:52 AM.
 
Old 05-27-2007, 03:00 PM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

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

What shows "showmount -e test01" ?
 
Old 05-28-2007, 03:08 AM   #11
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
# showmount -e test01
Export list for test01:
/share *
/project *
 
Old 05-28-2007, 08:23 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Can you mount the filesystem manually ?
Code:
mkdir /tmp/mnt
mount test01:/share /tmp/mnt
 
Old 05-28-2007, 09:27 AM   #13
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
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

Last edited by UltraSoul; 05-28-2007 at 09:54 AM.
 
Old 05-28-2007, 10:50 AM   #14
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
Can you post your /etc/dfs/dtstab and your auto_master and auto_direct maps for test01 ?
 
Old 05-28-2007, 11:04 AM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Is there another resolution for test01 in the DNS ?

What tells "nslookup test01" ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 01:43 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 08:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Solaris / OpenSolaris 1 03-31-2004 07:10 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 07:10 AM
NIS Solaris 8 (MASTER) ---> RH9 NIS (Slave) Help x86br Linux - Networking 4 05-12-2003 06:26 PM


All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration