LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-13-2013, 02:00 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,200

Rep: Reputation: 96
Should suspend dismount nfs mounts?


My desktop PC is running CentOS 6 and my server is running Ubuntu server 12.04. Yes that might be backwards but an issue with video limitations in Ubuntu 12.04 caused the migration to CentOS. That said... the server is used simply as a LARGE (6.5 TB) dumping ground for backup files etc. I connect to it with nfs as 1) nfs provides a much faster transfer than ssh and 2) the machines are on a private network and the server is only powered on occasionally so I am not too worried about the (in)security issues of nfs.

Recently I have been running some jobs on the server which cause it to be left up for more time than usual. I have noticed that when I suspend the desktop and then resume it the nfs mounts are no longer mounted. Is this to be expected?

When I was running Ubuntu server 10.04 I do not remember this happening although I may or may not have suspended the desktop while I had nfs mounts set. 10.04 was running an older version of the nfs server. The problem I had then was that if I shut down the server before unmounting the nfs mounts I had all sorts of issues with gnome-commander and Nautilus on the desktop. It was just about impossible to kill an nfs mount unless I brought the server back up and did a umount.

I would appreciate any insight and education which you folks might provide me.

TIA,

Ken
 
Old 10-13-2013, 08:32 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,565

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
how do you have NFS shares mounted? also are you hardwired or wifi on your connections.
 
Old 10-13-2013, 08:57 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,200

Original Poster
Rep: Reputation: 96
The connections are hard wired. Mounting is done with a script thusly:
Quote:
sudo mount taylor10:/data0 /t10/data0
sudo mount taylor10:/data1 /t10/data1
sudo mount taylor10:/data2 /t10/data2
sudo mount taylor10:/data3 /t10/data3
sudo mount taylor10:/data4 /t10/data4
Ken
 
Old 10-14-2013, 11:20 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,565

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
drop that script and setup autofs, your problems will go away. the biggest advantage of autofs is that your mounts will only be mounted upon user access. so if they get disconnected when your system goes to sleep/suspend, when you access them again after waking the system up they will automatically reconnect without hanging the system or the server.
 
1 members found this post helpful.
Old 10-14-2013, 11:37 AM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,200

Original Poster
Rep: Reputation: 96
Thanks lleb.

I will look into autofs. As long as there is not a problem when the server is not on-line (most of the time) it sounds like a great solution.

Thanks again!

Ken
 
Old 10-15-2013, 09:00 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,565

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
thats the best part about autofs. if the server is not online just have a bg option (back ground) and the client will quietly try to mount, if it can not it will not hang the system.
 
Old 10-18-2013, 10:15 AM   #7
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,200

Original Poster
Rep: Reputation: 96
Thanks again lleb,

I determined that autofs was installed and with a little research I setup my configuration files. With the server running I can access my nfs mounts as if by magic. No need to run my script first If the server is off line and I attempt to access the parent directory of the mounts in Nautilus I get a blank display as if the mount names are not there. I can navigate to somewhere else as Nautilus is still responsive. On the other hand with gnome-commander if I click on the parent folder gnome-commander goes off into la la land and I eventually need to force quit. Well two out of three ain't bad !

Again my sincere thanks.

Ken
 
Old 10-18-2013, 04:57 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,565

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
glad its working for you. im looking forward to learning its replacement tool. sadly ive forgotten what its called as ive not messed with it enough. it will be more important with RHEL 7 specifically when paired with Fedora 19 and newer.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mounts llinuxxnew Linux - Server 9 04-25-2013 04:30 AM
NFS Mounts before network up bocochoco Fedora 12 07-23-2012 03:18 PM
[SOLVED] is there a way to monitor NFS mounts? recomboDNA Linux - Server 2 07-30-2010 11:55 AM
Backgrounding NFS mounts kaplan71 Linux - Networking 1 05-18-2005 05:50 PM
cannot get nfs mounts to work iggymac Linux - Networking 0 08-10-2001 02:58 PM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration