NFS issue with autofs in CentOS 6.3


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers NFS issue with autofs in CentOS 6.3
# 1  
Old 02-25-2013
NFS issue with autofs in CentOS 6.3

I am running CentOS 6.3 as a VM on a host which has the same installation. I configured my NFS server and I am guessing it works. I say guessing because I can mount the desired folder with mount command on my client machine. So, when I run:
Code:
mount -t nfs -o vers=3 vm2.domain.com:/nethome /neth

it mounts the folder at "/neth";however autofs doesn't do the same and I don't even get any error!
my auto.master:
Code:
/neth    /etc/auto.neth    --timeout=60

my auto.neth:
Code:
* -fstype=nfs,rw,soft,nosuid,nfsvers=3    vm2.domain.com:/nethome/&

I should mention that I have local DNS installed and it work with no problem.
any suggestions?
# 2  
Old 02-25-2013
Hello,
change this
Code:
/neth    /etc/auto.neth    --timeout=60

for this
Code:
/- auto.neth

and restart de service.
# 3  
Old 02-25-2013
Nope, still doesn't work!
is there any log for this damn thing?
I checked /var/log/messages and nothing useful is there!

---------- Post updated at 08:29 PM ---------- Previous update was at 06:46 PM ----------

any other idea??
# 4  
Old 02-26-2013
First please remove the --timeout=60; it's not a mount option nor a map option (it's a command line argument for the Linux automount process).
I am not sure if the option fstype=nfs is allowed, perhaps you should remove that, too.
Then restart automounter and check the mount point with
Code:
df /neth

it should say something with automount (autofs v4) or - (autofs v5).
The automounted directories will appear inside the /neth,
not browsable, unless you have a -browse map option in auto.master:
Code:
/neth    /etc/auto.neth  -browse

The previous post wrongly suggested a direct map with /abolute mount points, but your map is an indirect map.

Last edited by MadeInGermany; 02-26-2013 at 08:12 AM..
# 5  
Old 02-26-2013
it doesn't work!
I figured my mistake in the auto.master and auto.neth...
however, I can not see the folder as a mounted folder and when I check the listing, I can see it.
I am also, not able to write in the folder so when I try
Code:
touch /neth/tst.txt

, I get Permission denied!
# 6  
Old 02-27-2013
What do you get with
Code:
df /neth

?
Code:
showmount -e vm2.domain.com | grep "/nethome"

?
# 7  
Old 02-27-2013
Code:
#df /neth
Filesystem           1K-blocks      Used Available Use% Mounted on
-                            0         0         0   -  /neth

Code:
# showmount -e vm2.domain.com | grep "/nethome"
/nethome 192.168.20.0/24,192.168.20.3

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Build NFS Server on CentOS

Dear All, I'm using AWS EC2 instance for my application. My application is high disk I/O based and EFS could not be used in my case. So, i need to build my own NFS server on Ec2 instance. I'm looking for High availability solution for my disk which i shared for NFS. Looking for builtin... (5 Replies)
Discussion started by: Bala
5 Replies

2. Red Hat

RHEL 7.1 autofs permissions do not match NFS servers

RHEL 7.1 client using autofs to mount a NIS map of home directories being exported by a Solaris 10x86 nfs server. The owner and group are correct on the NFS server, but on the RHEL client, the owner and group end up being nobody nobody. The USERS and GROUPS are NIS maps as well. They are... (2 Replies)
Discussion started by: mrmurdock
2 Replies

3. Red Hat

NFS, AD, AutoFS

Here's my challenge. I have a RedHat7 machine running a statistical software package. It needs to NFS-mount directories from a Windows 2008R2 machine. The RH7 machine uses MSAD (Microsoft Active Directory) to handle authentication of people connecting via SSH. AD is on a separate 2008R2 machine.... (5 Replies)
Discussion started by: cjhilinski
5 Replies

4. Red Hat

Autofs issue

Hi I'm trying to use autofs to mount a directory structure. I have a directory with sub directories in it and all of them mounted on their respective filesystems /dbname /dev/mapper/vg_dbname-Home /dbname/oracle00 /dev/mapper/vg_dbname-Data00... (3 Replies)
Discussion started by: maverick_here
3 Replies

5. HP-UX

AUTOFS/NIS permission issue

This is unfortunately for a Tru64 5.1 PK4 system. I have Autofs running and it seems to read and mount the NIS maps, however, on a couple of maps, eventhough is says (rw), the user home directory of /home is (ro). See cut and paste Below. This prevents the automounting of Users home... (4 Replies)
Discussion started by: mrmurdock
4 Replies

6. Red Hat

How to mount NFS using automounter(autofs)?

I have an nfs at 192.168.1.10:/home/vm1/Desktop/nfs and will like to mount locally to /home/vm1/Desktop/nfs-mount using automounter...need help doing do What i did $cat /etc/auto.master /home/vm1/Desktop /etc/auto.nfs $cat /etc/auto.nfs nfs-bind -fstype=nfs ... (3 Replies)
Discussion started by: nokia3310
3 Replies

7. UNIX for Advanced & Expert Users

Freeipa issue on Centos 6.3

Hi, We are configuring Freeipa for our LDAP system. Things seem to work okay when we try and log in with our domain accounts on the LDAP server. But when we try to loggon to the slave it closes the connection. There is an option in authconfig-tui to configure IPA. However, the senior admin... (0 Replies)
Discussion started by: mojoman
0 Replies

8. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

9. Solaris

autofs vs nfs

I've a sun server, 3 sun workstations and plan to do backup on certain directory in each workstations monthly. As it's only require to mount as NFS on those workstations once a month. So I plan to configure such requirement using autofs. What are the considerations need to take care in such... (4 Replies)
Discussion started by: KhawHL
4 Replies

10. Solaris

disabling nfs and autofs in solaris 9

Hi, I want to permanently disable nfs and autofs in solaris 9, (2 Replies)
Discussion started by: manoj.solaris
2 Replies
Login or Register to Ask a Question