Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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 !
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.