LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2008, 08:57 AM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
nautilus or thunar freeze when nfs mount not available


Hey all,
I am having a problem with some of my file system mounts.
Here is what happens.
i have a main computer with a folder /mnt/shared

in my exports file i give everyone on the LAN permission to read, etc..
on the client computers, i have the line in fstab that looks like
Code:
192.168.1.2:/mnt/shared /mnt/shared nfs defaults 0 0
it all works fine, however, if the main computer is shut off, the client computers have thunar or nautilus (whichever they use) will hang untill either a restart or remount of the share.

What can i do to the client computers that will make them just go on with life if the 192.168.1.2 computer is not available?

thanks
 
Old 12-31-2008, 10:42 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by nephish View Post
What can i do to the client computers that will make them just go on with life if the 192.168.1.2 computer is not available?
Write a shell script that pings the 192.168.1.2 once per second. If it does not respond, unmount the NFS share. If it does respond, re-mount the share.
 
Old 12-31-2008, 11:42 AM   #3
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
sounds like a good plan, thanks
 
Old 12-31-2008, 12:07 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
David1357, that can cause some problems in unreliable connections. Note that unmounting an NFS volume can hang for a long time (minutes) if the volume is not reachable. In my experience, these problems arise even if you mount it with async,soft,intr.

nephish, this is a known problem with NFS. I would also be interested in an alternative. Seeing how linux has a network architecture tightly tied into its roots it's hard to believe that NFS is such an horrid thing. Personally I use it only when strictly necessary. Most times I preffer sshfs over it, but some times it's not suitable for the task.

ps. Everything I said here is applicable to v3. I never tried NFS v4.
 
Old 12-31-2008, 12:35 PM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by i92guboj View Post
David1357, that can cause some problems in unreliable connections.
If the connection is so unreliable that ICMP cannot get around, then it is unlikely that NFS is going to be working.
 
Old 12-31-2008, 03:25 PM   #6
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
well, i had wanted to use nfs and the prior suggestion, just not doing it every second, maybe 1/minute. And yeah, it is because of the somewhat flakyness.

I have been using samba, which i like bacause my mac can see it, but still would much rather use something that should be very ingrained into the linux world. I am wanting to write a pet project program that involves an almost virtual, psudo filesystem using existing technologies.

Thanks for the tips, and yes, if i find a better answer, i will post it here.
 
Old 12-31-2008, 04:13 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by nephish View Post
I have been using samba, which i like because my mac can see it, but still would much rather use something that should be very ingrained into the linux world.
If it is any consolation, I think most people end up using samba because it can be accessed by non-Linux operating systems. I have been using samba to share files on Linux machines since 2002 and I have never had any problems.
 
  


Reply



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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 03:45 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM
In Nautilus, they are all mountable, but not in Thunar and PCManFM. germanium Linux - Newbie 0 06-25-2008 08:53 AM
NFS hangs Nautilus TheCoffeeMug Linux - Networking 1 12-29-2002 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 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
Open Source Consulting | Domain Registration