Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Best solution for following problem...

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 3 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 2
Best solution for following problem...

Hi *

I'm looking for advice for best solution for following problem:

I have file server sharing files to diskless clients via NFS

I want have setup, where pluging ext. USB HDD will be dynamically visible on clients as new <subdir> with HDD contents.
So if user plug USB HD on server, diskless clients should see plugged HDD contents in dynamically created <subdirectory> with name equal to HD label and HD contents inside it.

I already wrote udev script which auto creates subdir=<label> in NFS server shared dir, and automounts USB HD in this subdir.

Issue is that diskless clients don't see this subdir unless I issue on server

exportfs -ua
exportfs -a

Problem is that above unexporting/exporting sequence issued on server brokes existing NFS shares between clients and server.

What is most elegant solution for such functional requirement ?

thx in advance
warped is offline  


Reply With Quote
Old 3 Weeks Ago   #2 (permalink)
Just Joined!
 
chris81's Avatar
 
Join Date: Jan 2009
Posts: 62
Hi

Quote:
Originally Posted by warped View Post
Issue is that diskless clients don't see this subdir unless I issue on server

exportfs -ua
exportfs -a

Problem is that above unexporting/exporting sequence issued on server brokes existing NFS shares between clients and server.
The third synopsis shows how to unexported a currently exported directory. When using exportfs -ua, all entries listed in xtab are removed from the kernel export tables, and the file is cleared. This effectively shuts down all NFS activity.

(from exportfs( - Linux man page)

What about exportfs -r ?


chris81
chris81 is offline   Reply With Quote
Old 3 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 2
thx

Well,

Can explain why I overlook -r option.
It looks like thing which I'm looking for.
After some basic test all seems to be OK.
thx for Your replay.
So nice somebody trying to help.
All the best
warped is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:28 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2