Mount problem with Linux


 
Thread Tools Search this Thread
Operating Systems HP-UX Mount problem with Linux
# 1  
Old 03-26-2013
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/

Code:
/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.

Code:
/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.

Last edited by radoulov; 03-26-2013 at 10:30 AM..
# 2  
Old 03-26-2013
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
# 3  
Old 03-26-2013
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:
Code:
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
Code:
 exportfs ; exportfs -a

It should complain if something was not OK...

Last edited by vbe; 03-26-2013 at 02:02 PM.. Reason: added " P.S. "
# 4  
Old 03-26-2013
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:
Code:
eciv:/etc $ uname -r
B.10.20
eciv:/etc $ exportfs
/datanfs -anon=65534,root=nfspc0X:ant,access=nfspc02:ant:n12:ronas

from ronas side:
Code:
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

# 5  
Old 03-26-2013
Problem with hostname resolution?
Give access to all shorthostname,fullhostname,hostip!
# 6  
Old 03-27-2013
Thanks trying solution.
Yes, I do
Code:
exportfs –a

for exporting and take both ways sam and manually.
I tried your options
Code:
mount -o vers=2,proto=udp bach:/tausch  /mnt/mnt_bach2

but I get the same Error code
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.
Code:
# exportfs
  /tausch       -anon=65534"

It doesn’t works.
Code:
# exportfs
  /tausch       -anon=65534,access=10.2.50.53

My content from /etc/exports HP_UX
Code:
# uname -r
  B.10.20
  # exportfs
  /tausch       -anon=65534,access=10.2.50.53

Centos_Client who shall mount the exportes
Code:
# uname -r
  2.6.18-348.1.1.el5


(mount without access control)
Code:
# df -k /mnt/mnt_bach2
  Filesystem           1K-blocks      Used Available Use% Mounted on
  bach:/tausch/              191456     35152    137168  21% /mnt/mnt_bach2


Last edited by nuts; 03-27-2013 at 11:42 AM..
# 7  
Old 03-27-2013
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...)

Last edited by vbe; 03-27-2013 at 12:32 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

problem in mount

every day i must type # mount -a in the workstation to mount the directory from the server . note 1- fstab is very good no problem in it 2- the network in this workstation is stable 3- i check every thing in this workstation but i dont see any problem 4- the O.S RedHat 3u9 every day the... (1 Reply)
Discussion started by: ayman
1 Replies

2. Solaris

How to mount linux to Solaris

Hi Friends, I am trying following command on my solaris box: mount abchostlinux12:/data1/mount_dir /data/mount_dir OUTPUT: nfs mount: abchostlinux12: : RPC: Rpcbind failure - RPC: Success nfs mount: retrying: /data/mount_dir After this there is no response on command line. I have... (6 Replies)
Discussion started by: SBatra
6 Replies

3. UNIX for Dummies Questions & Answers

mount directory on Linux problem

folks; I have 3 similar Linux SUSE 10 servers A, B & C I log as root and when i'm on B server & try to mount a directory on A server it works fine, but when i try to mount the same directory when i'm on C it doesn't and i get this error: Server C# mount 172.32.5.2:/var/local/export/... (4 Replies)
Discussion started by: Katkota
4 Replies

4. UNIX for Advanced & Expert Users

SuSe Linux Mount

Hi everyone, I am new to Linux and I hope to have some advise. Suppose I have 2 differnt users who require differnt mount drives. When user1 logs in, his required drives are mounted. When user2 logs in, user1's drives are unmounted and user2's drives are mounted. May I know how I can achieve... (2 Replies)
Discussion started by: viper81
2 Replies

5. Linux

Mount problem

well i have an NFS server setup on a pc "1st server" running Fedora Core 4 and i need to mount this from a non-root user. But when i try this i get this freaking error "mount: only root can do this". i do have the entry in fstab file and i tried following solution (no one are working) entry in... (1 Reply)
Discussion started by: sydney30
1 Replies

6. Linux

Mount ntfs in linux

How Can I mount Windows NTFS Partation in to Linux ? (4 Replies)
Discussion started by: Amit Deore
4 Replies

7. Solaris

Problem with mount remot..!!

hi all... when I try to mount filesystem on solaris appear me Permission denied this is do it: mount -F nfs <remote file system> <mount point> mount -f nfs remot_server:/share /share when i run this line: nfs mount: server_remoto:/share: Permission denied what i need to do? Regards.. (4 Replies)
Discussion started by: chanfle
4 Replies

8. UNIX for Dummies Questions & Answers

Mount :Files on Linux..

Hi, I am facing problem during mount sharing. I am using two machines Suse and Red Hat. Trying to share a data on suse machine from Red Hat by using mount command. The problem is that after rebooting mount won't work. How to solve this problem. What i did? 1. create a folder on Suse... (7 Replies)
Discussion started by: kjannu
7 Replies

9. Linux

Mount a harddrive in linux.

Hey people i'm very new to linux. I just put a extra 200 gig maxtor HD in my computer. Linux can tell it's there...but it says it cant mount it. How do i mount it manually? thanks, John (2 Replies)
Discussion started by: RKJV
2 Replies

10. Solaris

nfs mount problem

I have a NFS share on a Linux server. When I try to mount it on a Solaris 9 server, I get the following message: nfs mount: <nfs-server-name>: : RPC: Program not registered I have a few other Sun boxes and I can mount the share on them without any problems. (2 Replies)
Discussion started by: soliberus
2 Replies
Login or Register to Ask a Question