Find the answer to your Linux question:
Results 1 to 3 of 3
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    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

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •