niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » *nix » Solaris
NFS root problems with Solaris 10 and Linux
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Martin Schöön
*nix forums Guru


Joined: 22 Feb 2005
Posts: 2122

PostPosted: Thu Apr 28, 2005 2:47 pm    Post subject: NFS root problems with Solaris 10 and Linux Reply with quote

Hi,

I have a Linux NFS server (for a particular directory only) that certain
machines on our network (netgroup unices) need to access. Since the
directory on Linux machine (zion) would contain backups, it is only
accessable by root and Linux /etc/exports contains no_root_squash option,
which is Linux equivalent for 'anon=0':

zion# cat /etc/exports
/data/offsite @unices(rw,no_root_squash,async,nohide)

Permissions of the directory are

zion# ls -la /data/offsite/
total 24
drwx--x--x 6 root root 4096 Apr 27 13:56 ./
drwxr-xr-x 5 root root 4096 Apr 27 10:28 ../
drwx------ 2 root root 4096 Apr 27 14:29 bin/
drwxr-xr-x 2 root root 4096 Apr 27 16:27 config/
drwx------ 2 root root 4096 Apr 27 14:28 dumps/
drwxr-xr-x 2 root root 4096 Apr 28 10:15 logs/

So far, so good. Now for the problem: all machines in unices netgroup are
able to access that directory except for (AFAIK) two: one of these is a
pretty much patched Solaris 10 SPARC machine, the other one is my Solaris
Express 04/05 x86 workstation. There are some more Solaris 10 machines in
our networks that _are_ able to access the said directory (using
/net/zion/data/offsite path), but these two can't and I don't know why.

First I thought the reason could be the patch 118375-01 for NFS client in
kernel, that was installed on that machine (sca) but is not elsewhere, but
even after backing that patch out and rebooting the machine, I still have
the same problem.

Here is what happens:

sca# id
uid=0(root) gid=0(root)
sca# cd /net/zion/data/offsite
bash: cd: /net/zion/data/offsite: Permission denied

and then, there is a fresh message in /var/adm/messages stating

Apr 28 12:41:47 sca nfs: [ID 435675 kern.warning] WARNING: NFS server initial call to zion failed: Not owner
Apr 28 12:41:47 sca automountd[329]: [ID 834250 daemon.error] Mount of zion:/data/offsite on /net/zion/data/offsite: Not owner
Apr 28 12:41:48 sca nfs: [ID 435675 kern.warning] WARNING: NFS server initial call to zion failed: Not owner
Apr 28 12:41:48 sca automountd[329]: [ID 834250 daemon.error] Mount of zion:/data/offsite on /net/zion/data/offsite: Not owner

Linux machine in question runs FC2 with kernel 2.6.10-1.771_FC2smp if that
matters, but I am pretty sure it doesn't as there are other Solaris 10
machines that can access that directory without problems.

Any ideas?

Thanks and bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Back to top
Oscar del Rio
*nix forums Guru


Joined: 24 Feb 2005
Posts: 385

PostPosted: Thu Apr 28, 2005 3:14 pm    Post subject: Re: NFS root problems with Solaris 10 and Linux Reply with quote

Dragan Cvetkovic wrote:

Quote:
I have a Linux NFS server (for a particular directory only) that certain
machines on our network (netgroup unices) need to access. Since the
directory on Linux machine (zion) would contain backups, it is only
accessable by root and Linux /etc/exports contains no_root_squash option,
which is Linux equivalent for 'anon=0':

bash: cd: /net/zion/data/offsite: Permission denied

Apr 28 12:41:47 sca nfs: [ID 435675 kern.warning] WARNING: NFS server initial call to zion failed: Not owner
Apr 28 12:41:47 sca automountd[329]: [ID 834250 daemon.error] Mount of zion:/data/offsite on /net/zion/data/offsite: Not owner

Try mounting using NFS version 3.
See "man mount_nfs"
Back to top
Mike Kupfer
*nix forums beginner


Joined: 28 Apr 2005
Posts: 1

PostPosted: Thu Apr 28, 2005 3:26 pm    Post subject: Re: NFS root problems with Solaris 10 and Linux Reply with quote

Dragan Cvetkovic <me@privacy.net> writes:

Quote:
So far, so good. Now for the problem: all machines in unices netgroup are
able to access that directory except for (AFAIK) two: one of these is a
pretty much patched Solaris 10 SPARC machine, the other one is my Solaris
Express 04/05 x86 workstation. There are some more Solaris 10 machines in
our networks that _are_ able to access the said directory (using
/net/zion/data/offsite path), but these two can't and I don't know why.

Are you using NFSv4, and (if yes) are all the machines using the same
NFSv4 domain identifier?

mike
--
Mike Kupfer mike.kupfer@sun.com
Solaris Kernel Development Speaking for myself, not for Sun.
Back to top
Martin Schöön
*nix forums Guru


Joined: 22 Feb 2005
Posts: 2122

PostPosted: Thu Apr 28, 2005 3:35 pm    Post subject: Re: NFS root problems with Solaris 10 and Linux Reply with quote

Oscar del Rio <delrio@mie.utoronto.ca> writes:

Quote:
Dragan Cvetkovic wrote:

I have a Linux NFS server (for a particular directory only) that certain
machines on our network (netgroup unices) need to access. Since the
directory on Linux machine (zion) would contain backups, it is only
accessable by root and Linux /etc/exports contains no_root_squash option,
which is Linux equivalent for 'anon=0':

bash: cd: /net/zion/data/offsite: Permission denied

Apr 28 12:41:47 sca nfs: [ID 435675 kern.warning] WARNING: NFS server initial call to zion failed: Not owner
Apr 28 12:41:47 sca automountd[329]: [ID 834250 daemon.error] Mount of zion:/data/offsite on /net/zion/data/offsite: Not owner

Try mounting using NFS version 3.
See "man mount_nfs"

Yep, that was the problem. I just figured it out myself. The working
machine had NFS_CLIENT_VERSMAX=3, whereas the one with the problem had
NFS_CLIENT_VERSMAX=4. Once I changed that and restarted nfs, it worked fine.

Thanks Oscar.

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Back to top
Martin Schöön
*nix forums Guru


Joined: 22 Feb 2005
Posts: 2122

PostPosted: Thu Apr 28, 2005 3:48 pm    Post subject: Re: NFS root problems with Solaris 10 and Linux Reply with quote

Mike Kupfer <mike.kupfer@sun.com> writes:

Quote:
Dragan Cvetkovic <me@privacy.net> writes:

So far, so good. Now for the problem: all machines in unices netgroup are
able to access that directory except for (AFAIK) two: one of these is a
pretty much patched Solaris 10 SPARC machine, the other one is my Solaris
Express 04/05 x86 workstation. There are some more Solaris 10 machines in
our networks that _are_ able to access the said directory (using
/net/zion/data/offsite path), but these two can't and I don't know why.

Are you using NFSv4, and (if yes) are all the machines using the same
NFSv4 domain identifier?

Hi Mike, our network here is a mix of various NFS versions (Solaris 7, 8,
9, 10, Linux 2.4.x, Linux 2.6.y, AIX 4.3.3 and AIX 5.2), so no, not
everybody is using NFSv4.

I am not even sure how NFSv4 domain identifiers work (even though I have
RTFM) and if that is an options with Linux (which was a NFS server in this
case). We leave NFSMAPID_DOMAIN as it is in /etc/default/nfs file.

The problem was fixed when we changed the maximal NFS client version to 3
in /etc/default/nfs.

Since this is already the second time we were burned by Linux-Solaris NFSv4
(previous time it was a Linux machine that would panic occasionally as a
NFS client which is rather bad if that machine is your SMTP, POP3 and IMAP
server), it looks as if Linux NFSv4 implementation is not completely baked
up.

Thanks for your help.

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2014 9:49 pm | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts dovecot pop3 log in problems digibandit Postfix 0 Tue May 25, 2010 5:16 pm
No new posts Postfix - delivery problems bahadirtonguc Postfix 1 Wed Oct 28, 2009 9:57 pm
No new posts Email & Collaboration software based on Linux & O... fundig Linux 0 Tue Jul 21, 2009 1:37 pm
No new posts Problems with Postfix / Round-Robin pablos Postfix 0 Mon Feb 02, 2009 3:34 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Privacy Policy
[ Time: 0.0491s ][ Queries: 16 (0.0163s) ][ GZIP on - Debug on ]