LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2010, 01:09 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Mount problem


I have newly installed a RHEL 4 server , this server use NFS mount to connect another RHEL server , but it is strange that the mount will be disconnected in a certain period of time ( between 15 mins and 30 mins ) , I guess the mount is disconnected by the cron job but I can't find it and the old server do not have such problem , can advise what is wrong in my server ? thx
 
Old 02-24-2010, 07:26 AM   #2
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by elainelaw View Post
I have newly installed a RHEL 4 server , this server use NFS mount to connect another RHEL server , but it is strange that the mount will be disconnected in a certain period of time ( between 15 mins and 30 mins ) , I guess the mount is disconnected by the cron job but I can't find it and the old server do not have such problem , can advise what is wrong in my server ? thx
The below messages pops in /var/log/messages , is it related to my problem ? thx


SMB connection re-established (-5)
SMB connection re-established (-5)
SELinux: initialized (dev 0:11, type nfs), uses genfs_contexts
SELinux: initialized (dev 0:16, type nfs), uses genfs_contexts
SELinux: initialized (dev 0:11, type nfs), uses genfs_contexts



I updated the /etc/selinux/config

From
=================
#SELINUX=enforcing


To
=================
SELINUX=disabled

but still not work , can advise what is wrong ? thx
 
Old 02-24-2010, 07:47 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Are you sure it's not the automount that times out?
Code:
ps -ef|grep automount
It that's the case, check /etc/auto.master and/or /etc/init.d/autofs to find out here the timeout is defined.
 
Old 02-24-2010, 10:01 PM   #4
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
thx reply ,

I found that only mount to a specific local path have this problem , that mean if I mount the remote path to another local path , then it will NOT disconnect , can advise what is wrong in my system ? thx
 
Old 02-26-2010, 01:14 AM   #5
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
I tried to update /etc/sysconfig/autofs to disable #DAEMONOPTIONS="--timeout=60" , but still not work , can advise what is wrong ? thx
 
Old 02-26-2010, 04:30 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

Check /etc/auto.master. It's the file the aotomounter reads to create mount points and usually the timeout is defined there, like:
Quote:
/misc /etc/auto.misc --timeout 60
If you set it to zero, then timeout is disabled

Regards
 
Old 03-02-2010, 03:23 AM   #7
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bathory View Post
Hi,

Check /etc/auto.master. It's the file the aotomounter reads to create mount points and usually the timeout is defined there, like:
If you set it to zero, then timeout is disabled

Regards

the entry is available but disabled , can advise what can i do ? thx

#vi /etc/auto.master

#/misc /etc/auto.misc --timeout=60
#/misc /etc/auto.misc
#/net /etc/auto.net
 
Old 03-02-2010, 03:43 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
You didn't answer about the output of:
Code:
ps -ef|grep automount
to see what is mounted and where it's mounted
 
Old 03-02-2010, 10:41 PM   #9
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bathory View Post
You didn't answer about the output of:
Code:
ps -ef|grep automount
to see what is mounted and where it's mounted


ps -ef|grep automount
root 1877 1875 0 09:40 pts/81 00:00:00 grep automount
 
Old 03-03-2010, 01:29 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
So you're not using automount to mount the nfs share.
You should take a look at /etc/fstab to see how it is mounted.
Also looking at the log files could give you some hints why the share gets disconnected.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mount nfs problem: mount(2) Input/Output error, virtual box involved gjatute Linux - Newbie 6 10-23-2012 02:57 PM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 06:02 PM
Mount Problem: evice already mounted or mount point busy paldebojyoti Linux - Distributions 5 08-27-2009 03:46 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
DVD (auto)mount problem, gnome-mount, hal, Fedora C 5 lazarion Linux - Hardware 5 01-10-2007 05:45 AM


All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration