Need help with automount.. is not working!!

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Need help with automount.. is not working!!
# 1  
Old 03-05-2015
Need help with automount.. is not working!!

When i export the directory where the data really is, i can specify which hosts can mount it. On the remote server i create a mount point directory and then mount it to the source servers directory (that has the data).
I need to run my script on Server X , i would login there and type in the following command to get to the directory, where my script resides (Server Y)…

Code:
  # cd /net/Server_Y/opt/EHS/scripts
  -bash: cd: /net/Server_Y/opt/EHS/scripts: No such file or directory



As you can see the auto mount isn’t working correctly.


Any help is appreciated!!

Last edited by Scrutinizer; 03-06-2015 at 05:40 AM.. Reason: code tags
# 2  
Old 03-05-2015
Automounter on RedHat is autofs.
How is its status?
Code:
service autofs status

This User Gave Thanks to MadeInGermany For This Post:
# 3  
Old 03-05-2015
Hello - It says the Automount is running...
# 4  
Old 03-06-2015
Ensure that /etc/auto.master has
Code:
/net -hosts

and /etc/nsswitch.conf has
Code:
automount:  files

(Something else can follow after the files)
Restart automounter with
Code:
service autofs restart

Still not working?
Can you ping Server_Y?
Can you list its NFS exports with
Code:
showmount -e Server_Y

?

Last edited by MadeInGermany; 03-06-2015 at 05:40 AM..
# 5  
Old 03-06-2015
Hello - So ensured
/net -hosts
and /etc/nsswitch.conf has

Code:
automount: files
So this is what i see in the my current system.

[root@ussdp137 etc]# showmount -e ussdp137
Export list for ussdp137:
/opt/EHS/ks uss*
/opt/EHS/etc uss*
/opt/EHS/scripts uss*
[root@ussdp137 etc]#

Thanks
# 6  
Old 03-06-2015
Does
Code:
cd /net/ussdp137/

work?
If yes, check the NFS server's /etc/exports.
Your Server_X must be granted.
Further, as root you can try a manual NFS mount:
Code:
mount ussdp137:/opt/EHS /mnt

If you get "permission denied by server" then it's clear.
(And if it works, do not forget to umount /mnt.)
# 7  
Old 03-06-2015
Okey i ran the mount process.

[root@ussedb55 /]# mount ussdp137:/opt/EHS/scripts /tmp/mnt/
mount: can't get address for ussdp137

This is the error iam getting...So guess the first thing was the Auto mounter (autofs) is not working...now the Manual is a dud! Smilie

anything i can try, next?

---------- Post updated at 03:04 PM ---------- Previous update was at 02:45 PM ----------

Okey got it...i mounted manually with fully hostname.

mount ussdp137.xxxx.com:/opt/EHS/scripts /tmp/mnt/

So all the servers are okey, but just why this one, where i have to give a fully qualified name? - something is wrong with this server....

So when i mounted manually, i gave fully qualified server name(ex. ussdp137.xxxx.com) instead before without the .com.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Automount through Autofs

I am trying to automount one of my NFS share to my client machine but it is not mounting here is the scenario : My server machine ip : 192.168.1.100 My client machine ip is : 192.168.1.102 on client machine i have configured the /etc/auto.master file : /share(My mount point) ... (0 Replies)
Discussion started by: Vaibhav.T
0 Replies

2. AIX

AutoMount in AIX

Hi Admins, I am new to AIX, pls help me on my below doubts 1) I have received below alerts Orange : PORTAL detected Filesystem (/nfs/sources) is 92.07% Utilized Here Orange is server name. When i did df -k in orange i do not see /nfs/sources filesystem in output. Doubts 1) how to... (2 Replies)
Discussion started by: saurabh84g
2 Replies

3. Linux

Automount problem

Hi, Please give step by step how to do automount in linux Thanks, Mani (9 Replies)
Discussion started by: Mani_apr08
9 Replies

4. AIX

Help on Unconfiguring Automount

Hi All, Please help. I need an advise on how to Unconfigure automount please. Many Thanks. (2 Replies)
Discussion started by: EngnrRG
2 Replies

5. Solaris

Automount in Solaris 10

Hi friends I'm a newbie trying to automount a nfs shared directory. Below is the configuration I'm using FreeBSD machine as NFS server. IP Address - 192.168.1.60 # cat /etc/exports /shared 192.168.1.50 Solaris 10 as NFS client. IP Address - 192.168.1.50 # cat... (1 Reply)
Discussion started by: pankajj
1 Replies

6. Shell Programming and Scripting

automount script

I'm attempting to take an fstab that looks something like this: /proc /proc proc rw,nosuid,nodev,noexec 0 0 /sys /sys sysfs rw,nosuid,nodev,noexec 0 0 /dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 /dev/pts /dev/pts devpts mode=0622 0 0... (6 Replies)
Discussion started by: unclecameron
6 Replies

7. Solaris

CD automount does not work

Hello, I have a SUN Solaris 9 machine (Sun-Fire-V490). I put a DVD in the reader to install a software. The automount procedure did not work (vold is running) : I have nothing under /cdrom When I try "eject" command I have the answer "No default media available" When I try to mount manually the... (3 Replies)
Discussion started by: aribault
3 Replies

8. UNIX for Advanced & Expert Users

AutoMount

Hi All How do I do a auto mount to a directory in a different unix server. I am using Solaris. Please advise!! TIA Jana (7 Replies)
Discussion started by: janavenki
7 Replies

9. UNIX for Advanced & Expert Users

Automount

My site has a few sun solaris server including out NIS server and NFS server on solaris machines. we also have few suse linux and redhat linux machine. All our home directory is on our NFS server(sun Solaris) and this is automounted through /etc/auto_master and /etc/auto_home this worked fine... (1 Reply)
Discussion started by: hassan2
1 Replies

10. UNIX for Advanced & Expert Users

automount

I install an external disk on my sun solaris 8 this went fine and I was able to access all filesystem on the disk. the new disk is mounted on /local then 6 hours later files under /local/files was 1 byte in size at the same time I received the following error message in... (4 Replies)
Discussion started by: hassan2
4 Replies
Login or Register to Ask a Question