Mount problem with Linux

Hello,
I want to mount a directory with nfs (v3).
Server HP-UX 10.20
Client Centos

If I export the path "/tausch" with access control for hosts with the command mount -t nfs <SERVER_HP-UX_IP>:/tausch/ /mnt/mnt_bach2/

/etc/exports:
/tausch   -anon=65534,access=<hostip_centos>:<hostip_hp-ux_client1>:<hostip_hp-ux_client2>:<hostip_hp-ux_client3>

mount: bach:/tausch/ failed, reason given by server: Permission denied

with other HP-UX Clients it works

Then I tested without access control and I can mount the path.

/etc/exports:
/tausch -anon=65534

centos->mount:
bach:/joe/ on /mnt/mnt_bach type nfs (rw,addr=<SERVER_HP-UX_IP>)

I don't know where is the failure. Is that a special problem between HP-UX and Centos?
I would be grateful for any help.

I have plenty of issues at the moment so I may be very tired but your post to me is unclear...
Can you tell us who is who, then who is the server exporting

I just reread the post thanks to Radoulov who did some code tags arrangements...
and noticed one thing you mention NFS v3
Though not specifying the version, your OS will attempt to use the highest, if not supported by the server, should use a lower this was OK when the highest was 3...
I havent tried the case of new releases in 4 trying to mount an old 2...
Try something like:

mount -o vers=2,proto=udp bach:/tausch  /mnt/mnt_bach2 

or if line in /etc/fstab nfs rw,udp,2 0 0 appended to your mount line

I havent tested with IP only, when I cannot resolve using DNS I always added the hosts in /etc/hosts...

About /etc/exports :
When I got that sort of trouble I have been trying hard to solve by changing the concerned line in /etc/exports
And saw that sometimes yes it could be buggy.. from not letting you mount to you can mount but see nothing...
Tried configuring with sam to see if it changed anything, no really, but removing the line and creating it again solved the issue... (why????)

P.S.
Did you refresh your /etc/exports: As root

 exportfs ; exportfs -a 

It should complain if something was not OK...

Just tested on a RH5E..
I did not get you message but it did not mount... and I wasnt going to wait for timeout...
using my suggested syntax mount was immediate
/etc/exports from 10.20 conetent:

eciv:/etc $ uname -r
B.10.20
eciv:/etc $ exportfs
/datanfs -anon=65534,root=nfspc0X:ant,access=nfspc02:ant:n12:ronas

from ronas side:

ronas:/mnt# df -k /mnt/import
Filesystem           1K-blocks      Used Available Use% Mounted on
eciv:/datanfs          102400     11632     85120  13% /mnt/import
ronas:/mnt# uname -r
2.6.32.24

Problem with hostname resolution?
Give access to all shorthostname,fullhostname,hostip!

Thanks trying solution.
Yes, I do

exportfs �a

for exporting and take both ways sam and manually.
I tried your options

mount -o vers=2,proto=udp bach:/tausch  /mnt/mnt_bach2

but I get the same Error code

mount: bach:/tausch/ failed, reason given by server: Permission denied

Basically the mount works, but if I control the access it doesn�t works.
It works.

# exportfs
  /tausch       -anon=65534"

It doesn�t works.

# exportfs
  /tausch       -anon=65534,access=10.2.50.53

My content from /etc/exports HP_UX

# uname -r
  B.10.20
  # exportfs
  /tausch       -anon=65534,access=10.2.50.53

Centos_Client who shall mount the exportes

# uname -r
  2.6.18-348.1.1.el5

(mount without access control)

# df -k /mnt/mnt_bach2
  Filesystem           1K-blocks      Used Available Use% Mounted on
  bach:/tausch/              191456     35152    137168  21% /mnt/mnt_bach2

It could be as suggested by MadeIGermany a name resolution issue,
Try adding the box in /etc/hosts of your HP-UX and use its name in /etc/exports because I am not sure of what the syntax accepts for "access=" , I got in memory its option=HOSTNAME:HOSTNAME:...

What makes me think it may be your IP rather than giving name is that its works when not specified (so no syntax error...)

It isn't a name resolution problem. It works with hostname or ip-address if I mount without access. I suspect the problem is the different syntax for exporting. But don't know how I can fix it.

HP-UX

<export> <options>=<host1>:<hostN>

Centos

<export> <host1>(<options>) <hostN>(<options>)

I mean an unexpected hostname resolution of 10.2.50.53 - therefore add the hostname in exports!