Networking Forums

Networking Forums > Computer Networking > Linux Networking > can't get NFS to work ;-(

Reply
Thread Tools Display Modes

can't get NFS to work ;-(

 
 
Petto Andersson
Guest
Posts: n/a

 
      11-11-2003, 03:28 PM
i'm desperately trying to get NFS to work but i do't get it
on the server i have this configuration:

Linux server:
kernelversion 2.4
Universal NFS Server 2.2beta47

/usr/sbin/rpc.mountd -n -d all
/usr/sbin/rpc.nfsd -n -d all

rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 964 mountd
100005 2 udp 964 mountd
100005 1 tcp 967 mountd
100005 2 tcp 967 mountd
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs


/etc/exports
/home/petto 192.168.0.3(rw,map_static=/etc/nfs/o2.map)

/etc/nfs/o2.map
# remote local
uid 37910 500
gid 20 100

/etc/hosts
192.168.0.3 o2 o2
192.168.0.3 o2.razorfish.de o2

/etc/hosts.allow
rpc.mountd : 192.168.0.3 : allow
rpc.mountd : o2.razorfish.de : allow
rpc.mountd : o2 : allow

rpc.nfsd : 192.168.0.3 : allow
rpc.nfsd : o2.razorfish.de : allow
rpc.nfsd : o2 : allow

/etc/hosts.deny
#http-rman : ALL EXCEPT LOCAL
#portmap: ALL

/etc/passwd
petto:x:500:100:Petto Andersson:/home/petto:/bin/bash

and on the client i get this:

Client:
IRIX Release 6.5

#mount backupetto
mount: access denied for backupetto

/etc/fstab
backupetto /usr/people/petto/backup nfs2 rw,petto,auto
0 0

/etc/passwd
petto:x:37910:20:Petto Andersson:/usr/people/petto:/bin/tcsh

# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs

on the server i get this in
/var/log/messages:

Nov 11 18:20:15 backup mountd[780]: auth_reverse_lookup(192.168.0.3) o2
Nov 11 18:20:15 backup mountd[780]: auth_reverse_lookup(192.168.0.3) o2
Nov 11 18:20:15 backup mountd[780]: clnt o2 exports:
Nov 11 18:20:15 backup mountd[780]: /home/petto
Nov 11 18:20:15 backup mountd[780]: options: rw noroot
portck

Nov 11 18:20:26 backup nfsd[782]: auth_reverse_lookup(192.168.0.3) o2
Nov 11 18:20:26 backup nfsd[782]: auth_reverse_lookup(192.168.0.3) o2
Nov 11 18:20:26 backup nfsd[782]: o2:/home/petto map uid rem 37910 <->
loc 500
Nov 11 18:20:26 backup nfsd[782]: ugid_get_entry(0x8066128, 37910)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x8067148 @ level 0 (id
0-16777215)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x8067550 @ level 1 (id
0-65535)
Nov 11 18:20:26 backup nfsd[782]: alloc id map 0x8068128 @ level 2 (id
37888-38143)
Nov 11 18:20:26 backup nfsd[782]: result = 0x8067550
Nov 11 18:20:26 backup nfsd[782]: ugid_get_entry(0x8066530, 500)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x8068930 @ level 0 (id
0-16777215)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x8068d38 @ level 1 (id
0-65535)
Nov 11 18:20:26 backup nfsd[782]: alloc id map 0x8069140 @ level 2 (id
256-511)
Nov 11 18:20:26 backup nfsd[782]: result = 0x8068d38
Nov 11 18:20:26 backup nfsd[782]: o2:/home/petto map gid rem 20 <-> loc
100
Nov 11 18:20:26 backup nfsd[782]: ugid_get_entry(0x8066938, 20)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x8069948 @ level 0 (id
0-16777215)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x8069d50 @ level 1 (id
0-65535)
Nov 11 18:20:26 backup nfsd[782]: alloc id map 0x806a158 @ level 2 (id
0-255)
Nov 11 18:20:26 backup nfsd[782]: result = 0x8069d50
Nov 11 18:20:26 backup nfsd[782]: ugid_get_entry(0x8066d40, 100)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x806a960 @ level 0 (id
0-16777215)
Nov 11 18:20:26 backup nfsd[782]: alloc ptr map 0x806ad68 @ level 1 (id
0-65535)
Nov 11 18:20:26 backup nfsd[782]: alloc id map 0x806b170 @ level 2 (id
0-255)
Nov 11 18:20:26 backup nfsd[782]: result = 0x806ad68
Nov 11 18:20:26 backup nfsd[782]: clnt o2 exports:
Nov 11 18:20:26 backup nfsd[782]: /home/petto
Nov 11 18:20:26 backup nfsd[782]: options: rw noroot
portck
Nov 11 18:21:39 backup mountd[780]: flushed host access cache

Nov 11 18:21:39 backup mountd[780]: mnt [1 103/11/11 17:12:58
o2.razorfish.de 0.0+0,1,2,3,4]
Nov 11 18:21:39 backup mountd[780]: petto
Nov 11 18:21:39 backup mountd[780]: NFS mount of petto attempted from
192.168.0.3
Nov 11 18:21:39 backup mountd[780]: NFS client o2 tried to access petto
Nov 11 18:21:39 backup mountd[780]: Blocked attempt of 192.168.0.3 to
mount petto
Nov 11 18:21:39 backup mountd[780]: mount res = 13


anyone who's got an idea of what's wrong?

best regards
petto andersson








 
Reply With Quote
 
 
 
 
Jacob Westenbach
Guest
Posts: n/a

 
      11-11-2003, 04:33 PM
"Petto Andersson" <(E-Mail Removed)> wrote in message
news:bor35o$1higc9$(E-Mail Removed)...
> i'm desperately trying to get NFS to work but i do't get it
> on the server i have this configuration:
>
> Linux server:
> kernelversion 2.4
> Universal NFS Server 2.2beta47
>
> /usr/sbin/rpc.mountd -n -d all
> /usr/sbin/rpc.nfsd -n -d all
>
> rpcinfo -p
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100005 1 udp 964 mountd
> 100005 2 udp 964 mountd
> 100005 1 tcp 967 mountd
> 100005 2 tcp 967 mountd
> 100003 2 udp 2049 nfs
> 100003 2 tcp 2049 nfs
>
>
> /etc/exports
> /home/petto 192.168.0.3(rw,map_static=/etc/nfs/o2.map)
>
> /etc/nfs/o2.map
> # remote local
> uid 37910 500
> gid 20 100
>
> /etc/hosts
> 192.168.0.3 o2 o2
> 192.168.0.3 o2.razorfish.de o2
>
> /etc/hosts.allow
> rpc.mountd : 192.168.0.3 : allow
> rpc.mountd : o2.razorfish.de : allow
> rpc.mountd : o2 : allow
>
> rpc.nfsd : 192.168.0.3 : allow
> rpc.nfsd : o2.razorfish.de : allow
> rpc.nfsd : o2 : allow
>
> /etc/hosts.deny
> #http-rman : ALL EXCEPT LOCAL
> #portmap: ALL
>
> /etc/passwd
> petto:x:500:100:Petto Andersson:/home/petto:/bin/bash
>
> and on the client i get this:
>
> Client:
> IRIX Release 6.5
>
> #mount backupetto
> mount: access denied for backupetto
>
> /etc/fstab
> backupetto /usr/people/petto/backup nfs2 rw,petto,auto
> 0 0
>
> /etc/passwd
> petto:x:37910:20:Petto Andersson:/usr/people/petto:/bin/tcsh
>



I think the problem may be the filesystem type declaration in the client
/etc/fstab entry. All of mine have just "nfs" as the filesystem type where
yours has "nfs2" instead.

JW


 
Reply With Quote
 
Petto Andersson
Guest
Posts: n/a

 
      11-11-2003, 05:43 PM
Jacob Westenbach wrote:

> > and on the client i get this:
> >
> > Client:
> > IRIX Release 6.5
> >
> > #mount backupetto
> > mount: access denied for backupetto
> >
> > /etc/fstab
> > backupetto /usr/people/petto/backup nfs2 rw,petto,auto
> > 0 0
> >
> > /etc/passwd
> > petto:x:37910:20:Petto Andersson:/usr/people/petto:/bin/tcsh
> >

>
> I think the problem may be the filesystem type declaration in the client
> /etc/fstab entry. All of mine have just "nfs" as the filesystem type where
> yours has "nfs2" instead.
>


the server only knows about NFS v2 if i put "nfs" in /etc/fstab
the only difference is on the client-side

# mount backupetto
mount: backupetto server not responding: Program/version mismatch; low
version = 1,
high version = 2
mount: NFS version 3 mount failed, trying NFS version 2
mount: access denied for backupetto
mount: giving up on:
/usr/people/petto/backup

the server-log is the same

best regards
petto andersson


 
Reply With Quote
 
Petto Andersson
Guest
Posts: n/a

 
      11-11-2003, 05:44 PM
Jacob Westenbach wrote:

> > and on the client i get this:
> >
> > Client:
> > IRIX Release 6.5
> >
> > #mount backupetto
> > mount: access denied for backupetto
> >
> > /etc/fstab
> > backupetto /usr/people/petto/backup nfs2 rw,petto,auto
> > 0 0
> >
> > /etc/passwd
> > petto:x:37910:20:Petto Andersson:/usr/people/petto:/bin/tcsh
> >

>
> I think the problem may be the filesystem type declaration in the client
> /etc/fstab entry. All of mine have just "nfs" as the filesystem type where
> yours has "nfs2" instead.
>


the server only knows about NFS v2 if i put "nfs" in /etc/fstab
the only difference is on the client-side

# mount backupetto
mount: backupetto server not responding: Program/version mismatch; low
version = 1,
high version = 2
mount: NFS version 3 mount failed, trying NFS version 2
mount: access denied for backupetto
mount: giving up on:
/usr/people/petto/backup

the server-log is the same

best regards
petto andersson


 
Reply With Quote
 
Petto Andersson
Guest
Posts: n/a

 
      11-11-2003, 05:45 PM
Jacob Westenbach wrote:

> > and on the client i get this:
> >
> > Client:
> > IRIX Release 6.5
> >
> > #mount backupetto
> > mount: access denied for backupetto
> >
> > /etc/fstab
> > backupetto /usr/people/petto/backup nfs2 rw,petto,auto
> > 0 0
> >
> > /etc/passwd
> > petto:x:37910:20:Petto Andersson:/usr/people/petto:/bin/tcsh
> >

>
> I think the problem may be the filesystem type declaration in the client
> /etc/fstab entry. All of mine have just "nfs" as the filesystem type where
> yours has "nfs2" instead.
>


the server only knows about NFS v2 if i put "nfs" in /etc/fstab
the only difference is on the client-side

# mount backupetto
mount: backupetto server not responding: Program/version mismatch; low
version = 1,
high version = 2
mount: NFS version 3 mount failed, trying NFS version 2
mount: access denied for backupetto
mount: giving up on:
/usr/people/petto/backup

the server-log is the same

best regards
petto andersson


 
Reply With Quote
 
Ian Northeast
Guest
Posts: n/a

 
      11-11-2003, 07:55 PM
Petto Andersson wrote:
> i'm desperately trying to get NFS to work but i do't get it
> on the server i have this configuration:


> /etc/exports
> /home/petto 192.168.0.3(rw,map_static=/etc/nfs/o2.map)


So you exported /home/petto

>
> Client:
> IRIX Release 6.5
>
> #mount backupetto
> mount: access denied for backupetto


And tried to mount just "petto".

>
> /etc/fstab
> backupetto /usr/people/petto/backup nfs2 rw,petto,auto
> 0 0


> on the server i get this in
> /var/log/messages:


> Nov 11 18:20:26 backup nfsd[782]: clnt o2 exports:
> Nov 11 18:20:26 backup nfsd[782]: /home/petto
> Nov 11 18:20:26 backup nfsd[782]: options: rw noroot
> portck


> Nov 11 18:21:39 backup mountd[780]: NFS mount of petto attempted from
> 192.168.0.3
> Nov 11 18:21:39 backup mountd[780]: NFS client o2 tried to access petto
> Nov 11 18:21:39 backup mountd[780]: Blocked attempt of 192.168.0.3 to
> mount petto


And the log backs this up. It's failing at the authorisation stage
before it's got round to discovering that there's no such object as "petto".

Change the fstab entry to "backup:/home/petto ..."

Regards, Ian


 
Reply With Quote
 
Petto Andersson
Guest
Posts: n/a

 
      11-11-2003, 08:04 PM

super now it all works thanks you all guys

2.5 days man-pages -> failure
2.5 hours usenet -> success

best regards
petto andersson

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this ever going to work? Dave Spencer Wireless Networks 4 12-25-2005 08:42 AM
Will it work? John Wireless Internet 1 08-02-2005 08:49 PM
my router power light wont work! after firmware upgrade! restore dont work! Chriz Mac Broadband Hardware 1 01-23-2005 02:42 AM
tar -N won't work over nfs =?iso-8859-1?Q?Martin_M=FCller?= Linux Networking 7 04-27-2004 09:14 AM
please tell me if this set up will work Linux Networking 3 04-22-2004 04:29 PM



1 2 3 4 5 6 7 8 9 10 11