Operating System - Linux
1819734 Members
3033 Online
109606 Solutions
New Discussion юеВ

Re: auto mount issues in redhat linux 9

 
SOLVED
Go to solution
Binu_5
Regular Advisor

auto mount issues in redhat linux 9

Hi All

This is regading an auto mount problem that Iam facing here ..We have configured automount using amd service and all where working fine ...Now for a couple of system automount is not happening but for other system they are working

Can any one tell which are the config files I have to check ....


Thanks
Binu

8 REPLIES 8
Stuart Browne
Honored Contributor

Re: auto mount issues in redhat linux 9

How about starting with some details.

First, what are you auto-mounting?

What errors are you getting?

What do your logs say for the time you are attempting the mount?

What's the configuration of the automount path you are using?

You're not really given us much information wo work on here.

Also, what version of the auto-mouter are you using? The distribution version or the latest eratta version?
One long-haired git at your service...
Binu_5
Regular Advisor

Re: auto mount issues in redhat linux 9

Hi Staurt

All these systems coming with preloaded configuratiom from our client ...
So I dont have much Idea about it .
Can you tell which are the files I should check


Thanks
Binu
Ivan Ferreira
Honored Contributor

Re: auto mount issues in redhat linux 9

You should check the /etc/auto.master, this file holds references to other files, like /etc/auto.misc.

You should ensure that the automount service is configured to start on boot with the chkconfig command.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Stuart Browne
Honored Contributor

Re: auto mount issues in redhat linux 9

Ivan, unfortunately, that's the wrong auto-mounter ;)

Binu, do these:

rpm -q am-utils
cat /etc/amd.conf
chkconfig --list amd
chkconfig --list autofs
mount

And copy all output back into here. This will give us a decent over-view of how your system is configured to behave.
One long-haired git at your service...
Binu_5
Regular Advisor

Re: auto mount issues in redhat linux 9

Hi Stuart

Please find the following information

rpm -q am-utils
am-utils-6.0.9-2
cat /etc/amd.conf


#
# amd default config file
#
# check amd.conf(5) man page for details about options in this file
#

# GLOBAL OPTIONS SECTION
[ global ]
normalize_hostnames = no
print_pid = yes
pid_file = /var/run/amd.pid
restart_mounts = yes
auto_dir = /.automount
log_file = /var/log/amd.log
log_options = all
plock = yes
unmount_on_exit = yes
selectors_in_defaults = yes
local_domain = wipro.com
nis_domain = niswind
map_type = nis
search_path = /etc
browsable_dirs = no
show_statfs_entries = no
fully_qualified_hosts = no
cache_duration = 3600
nfs_proto = udp

# DEFINE AN AMD MOUNT POINT
[ /net ]
map_name = amd.hosts
map_options = opts:=rsize=8192,wsize=8192;cache:=none;dumbtimr;softlookup


#root@wiplx13 etc]# chkconfig --list amd
amd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

#chkconfig --list autofs
error reading information on service autofs: No such file or directory
#mount
dev/sda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw,gid=20)
/dev/sdb1 on /local type ext3 (rw)
wiplx13:(pid3440) on /home type nfs (intr,rw,port=1023,timeo=8,retrans=110,indirect,map=amd.home)
wiplx13:(pid3440) on /net type nfs (intr,rw,port=1023,timeo=8,retrans=110,indirect,map=amd.hosts)
/dev/mvfs on /view type mvfs (rw,viewroot)



Thanks
Binu
Stuart Browne
Honored Contributor

Re: auto mount issues in redhat linux 9

And just for completion sake, the contents of 'amd.hosts' (should be '/etc/amd.hosts').
One long-haired git at your service...
Binu_5
Regular Advisor

Re: auto mount issues in redhat linux 9

Hi Stuart

I have checked the amd.conf file of working and non working systems ...Both are identical ...


Thanks
Binu
Stuart Browne
Honored Contributor
Solution

Re: auto mount issues in redhat linux 9

Well I want to verify what's in the '/etc/amd.hosts' file to besure of some options, but..

I'd like you to check the permissions and contents of '/home' and '/net' when the auto-mounter isn't started (i.e. stop 'amd' and then check).

I'd also like for you to find out what '/var/log/amd.log' says at the time of one of your failures occurs.

Do any error messages show up in the terminal session that is accessing information in the auto-mounted path? Also, were there any network failuers?

Also, cross-refence any errors to the server's log files for the same time, to see why the server thought the mount went away.

It is more than likely a network/NFS error in general rather than an auto-mounter failure, but.. There's always things to check ;)
One long-haired git at your service...