LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount problem (https://www.linuxquestions.org/questions/linux-newbie-8/mount-problem-791166/)

elainelaw 02-24-2010 12:09 AM

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

elainelaw 02-24-2010 06:26 AM

Quote:

Originally Posted by elainelaw (Post 3874671)
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

bathory 02-24-2010 06:47 AM

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.

elainelaw 02-24-2010 09:01 PM

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

elainelaw 02-26-2010 12:14 AM

I tried to update /etc/sysconfig/autofs to disable #DAEMONOPTIONS="--timeout=60" , but still not work , can advise what is wrong ? thx

bathory 02-26-2010 03:30 AM

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

elainelaw 03-02-2010 02:23 AM

Quote:

Originally Posted by bathory (Post 3877487)
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

bathory 03-02-2010 02:43 AM

You didn't answer about the output of:
Code:

ps -ef|grep automount
to see what is mounted and where it's mounted

elainelaw 03-02-2010 09:41 PM

Quote:

Originally Posted by bathory (Post 3882087)
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

bathory 03-03-2010 12:29 AM

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.


All times are GMT -5. The time now is 05:08 AM.