LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-12-2006, 12:28 AM   #1
alexisb
LQ Newbie
 
Registered: Jun 2003
Location: Lima, Peru
Distribution: Fedora Core 3
Posts: 17

Rep: Reputation: 0
Automatic NFS Sharing When Starting My Server


Hello, I just finished reading http://www.tldp.org/HOWTO/NFS-HOWTO/

I have some NFS related questions and I hope you can help me a little:

I got two machines, one is called "woodcarver" and the other is called "ventanazul"

I have setup /etc/fstab in both machines to mount my NFS shares and it works ok, I can mount manually, as root, too, so I have one directory shared by woodcarver and accesses (mounted) from ventanazul and one directory shared in ventanazul and mounted from ventanazul, pretty simple.

So, NFS is working and I can share files.

My problem is when one of the machines is not powered on while the other one is started /etc/fstab can't find and mount the NFS share.

The only solution is to manually mount (as root) later.

Is there a way for woodcarver to ignore ventanazul being powered off and just have the NFS share mounted when ventanazul is up?

Regards!
 
Old 01-12-2006, 11:30 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
yea, just ignore it... lol
 
Old 01-13-2006, 12:25 AM   #3
alexisb
LQ Newbie
 
Registered: Jun 2003
Location: Lima, Peru
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
Hi, that's what I did , and then I found in my desktop, Fedora Core 3, icons to the NFS shares, the user clicks and the share is mounted, even if the NFS server was down at boot time, I guess this is just calling "mount /path/to/mount" using settings from /etc/fstab.

I prefer the shell but my main concern was getting regular users (used to GUI's) mounting the shares

Regards!
 
Old 01-13-2006, 01:48 AM   #4
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
change your desktop settings to only show 'mounted' disks.

i know you can do this in kde.

good luck.
 
Old 01-13-2006, 02:00 AM   #5
alexisb
LQ Newbie
 
Registered: Jun 2003
Location: Lima, Peru
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
Hi, yep, in KDE is done from: Control Center > Desktop > Behavior > Device Icons

But I'm ok with showing "umounted" disks, so users can mount shares that weren't available before.

By the way, how reliable is NFS?, yesterday I opened an OpenOffice file from one of my shares and saved, got an error when saving and later saw the file size was 0, so I lost the data.

After rereading the NFS HowTo I put "hard" and "intr" options in my /etc/fstab and it seems to be working without problems now, I can save from other boxes with no problem.

I also was having permission problems when using symlinks, for example:

woodcarver has /home/share as an NFS share, I have other directories in /home/alexis , for example /home/alexis/pics and I just "ln -s /home/alexis/pics /home/share/pics", my idea is that I only have to create an NFS for /home/share, however I can't access some files and permissions are not being honoured.

However, if I directly create the NFS share for /home/share/pics things work ok.

I verified UID and GID are the same in my two boxes, I guess NFS doens't interpret symlinks as it should be, or am I missing something?

Thanks!
 
Old 01-13-2006, 07:51 AM   #6
goestin
Member
 
Registered: Nov 2004
Location: Netherlands (east)
Distribution: debian, suse, novell linux desktop
Posts: 81

Rep: Reputation: 15
Maybe you can write a small shellscript which checkes if NFS is mounted and if not, mount it. put that script in CRON for let's say... 5 minutes....


cheers
 
  


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
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
Starting NFS server vijaykhemka Linux - Software 2 11-07-2005 07:43 PM
Automatic log in and starting programs at boot Spy47 Linux - Newbie 3 11-18-2004 05:17 PM
starting nfs server mindcry Solaris / OpenSolaris 7 09-26-2003 03:13 AM
desktop sharing automatic accept junpit Linux - General 1 09-07-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:25 PM.

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