Skip to contentSkip to conversation

Best solution for following problem...

NFS Piotr Oniszczuk 2 participants 2 messages Oct 31, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

begin:vcard
fn:Piotr Oniszczuk
n:Oniszczuk;Piotr
adr:;;KEN 49 m241;Warszawa;;02-797;Polska email;internet:piotr.oniszczuk-upgw/[email protected] tel;work:+48 22 515 52 75
tel;home:+48 22 489 68 62
tel;cell:+48 508 047 160
version:2.1
end:vcard

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs

#2 lore raw
In reply to a message not in the archive
Quoted 18 lines · Piotr Oniszczuk

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

Quoted 7 lines

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 ?

<changed mailing list address to correct one for linux-nfs>

Doesn't 'exportfs -r' work for you?

Cheers
Trond