Help on NFS exports on RedHat 7.1

Help on NFS exports on RedHat 7.1

Post by Low Han Mi » Tue, 25 Dec 2001 09:22:50



Hi,

I'm having problem mounting a exported directory of a RedHat 7.1 nfs
server (slacker100) from a RedHat 6.2 client (slacker99)

RH7.1
ps -ef | grep nfs
show
root      1553     1  0 06:35 pts/0    00:00:00 [nfsd]

rpcinfo -p
100000    2   udp    111  portmapper
100003    2   udp   2049  nfs

and I've nothing in my hosts.allow or hosts.deny

in my exports
/sw slacker99(rw)

And, I've set my firewall of RH7.1 to accept everything.

However, when I try to mount to slacker100 (RH 7.1) from slacker99 (RH
6.2)
mount: slacker100:/sw failed, reason given by server: Permission
denied

I've tried a /usr/sbin/exportfs -ra
slacker99:/sw: Invalid argument

However, I do notice that in the /var/log/messages
slacker100 rpc.mountd: refused mount request from slacker99 for  /sw
(/): no export entry

Additionally, I can do a reverse nfs mount which is slacker100 is
mounting a nfs directory fo slacker99

Can anyone advice what's wrong over here?
It seem to be my exports, but I thought this will be the simpliest it
can get. And, it is generated by linuxconf, so it should not be wrong,
isn't it?

Thanks for any advice.

Han Ming

 
 
 

Help on NFS exports on RedHat 7.1

Post by Chi Yeun » Tue, 25 Dec 2001 10:20:14


I guess your export failed:

 > I've tried a /usr/sbin/exportfs -ra
 > slacker99:/sw: Invalid argument

so you can't mount from the other machine.  Try
restarting the nfs
check that the directory exists
maybe use ip address instead of hostname


> Hi,

> I'm having problem mounting a exported directory of a RedHat 7.1 nfs
> server (slacker100) from a RedHat 6.2 client (slacker99)

> RH7.1
> ps -ef | grep nfs
> show
> root      1553     1  0 06:35 pts/0    00:00:00 [nfsd]

> rpcinfo -p
> 100000    2   udp    111  portmapper
> 100003    2   udp   2049  nfs

> and I've nothing in my hosts.allow or hosts.deny

> in my exports
> /sw slacker99(rw)

> And, I've set my firewall of RH7.1 to accept everything.

> However, when I try to mount to slacker100 (RH 7.1) from slacker99 (RH
> 6.2)
> mount: slacker100:/sw failed, reason given by server: Permission
> denied

> I've tried a /usr/sbin/exportfs -ra
> slacker99:/sw: Invalid argument

> However, I do notice that in the /var/log/messages
> slacker100 rpc.mountd: refused mount request from slacker99 for  /sw
> (/): no export entry

> Additionally, I can do a reverse nfs mount which is slacker100 is
> mounting a nfs directory fo slacker99

> Can anyone advice what's wrong over here?
> It seem to be my exports, but I thought this will be the simpliest it
> can get. And, it is generated by linuxconf, so it should not be wrong,
> isn't it?

> Thanks for any advice.

> Han Ming


 
 
 

Help on NFS exports on RedHat 7.1

Post by Bill Unr » Tue, 25 Dec 2001 10:24:09



]Hi,

]I'm having problem mounting a exported directory of a RedHat 7.1 nfs
]server (slacker100) from a RedHat 6.2 client (slacker99)

]RH7.1
]ps -ef | grep nfs
]show
]root      1553     1  0 06:35 pts/0    00:00:00 [nfsd]

]rpcinfo -p
]100000    2   udp    111  portmapper
]100003    2   udp   2049  nfs

]and I've nothing in my hosts.allow or hosts.deny

]in my exports
]/sw slacker99(rw)

]And, I've set my firewall of RH7.1 to accept everything.

]However, when I try to mount to slacker100 (RH 7.1) from slacker99 (RH
]6.2)
]mount: slacker100:/sw failed, reason given by server: Permission
]denied

]I've tried a /usr/sbin/exportfs -ra
]slacker99:/sw: Invalid argument

]However, I do notice that in the /var/log/messages
]slacker100 rpc.mountd: refused mount request from slacker99 for  /sw
](/): no export entry

Well, it says. "no export entry" which would suggest that you do not have an entry
in /etc/exports for the machine to which youare trying to export it.
Also try using
exportfs -a
instead.

]Additionally, I can do a reverse nfs mount which is slacker100 is
]mounting a nfs directory fo slacker99

]Can anyone advice what's wrong over here?
]It seem to be my exports, but I thought this will be the simpliest it
]can get. And, it is generated by linuxconf, so it should not be wrong,
]isn't it?

]Thanks for any advice.

]Han Ming

 
 
 

Help on NFS exports on RedHat 7.1

Post by Dean Thompso » Tue, 25 Dec 2001 22:51:41


Hi!,

Quote:> I'm having problem mounting a exported directory of a RedHat 7.1 nfs
> server (slacker100) from a RedHat 6.2 client (slacker99)

> RH7.1
> ps -ef | grep nfs
> show
> root      1553     1  0 06:35 pts/0    00:00:00 [nfsd]

> rpcinfo -p
> 100000    2   udp    111  portmapper
> 100003    2   udp   2049  nfs

> and I've nothing in my hosts.allow or hosts.deny

> in my exports
> /sw slacker99(rw)

> And, I've set my firewall of RH7.1 to accept everything.

> However, when I try to mount to slacker100 (RH 7.1) from slacker99 (RH
> 6.2) mount: slacker100:/sw failed, reason given by server: Permission
> denied

> I've tried a /usr/sbin/exportfs -ra
> slacker99:/sw: Invalid argument

Personally, I would take a look in the log files that Linux keeps which can
tell you where the problem is and hence give you an idea of where to go to fix
the problem.  It looks like some of the configuration options are slightly
mangled, specifically the server doesn't think it is exporting the /sw
directory.

Additionally, take a read of the NFS-HOWTO which is located at
http://www.linuxdoc.org.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+