NFS export

This is a discussion on NFS export within the Linux Networking forums, part of the Linux Forums category; Hi All I have a directory /nfs and few subdirectories a, b, c. i have the following mount on server. /...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-05-2005
Anil Kommareddy
 
Posts: n/a
Default NFS export

Hi All

I have a directory /nfs and few subdirectories a, b, c.
i have the following mount on server.
/dev/sdb1 /nfs/a
/dev/sdc1 /nfs/b
/dev/sdd1 /nfs/c

when i export /nfs i dont see data under a, b, c subdirectories on nfs
clients.
How do i achieve this without having to export each subdirectory.

Thanks
Anil



Reply With Quote
  #2 (permalink)  
Old 12-05-2005
Peter T. Breuer
 
Posts: n/a
Default Re: NFS export

In comp.os.linux.setup Anil Kommareddy <anil_kommareddy@hotmail.com> wrote:
> Hi All


> I have a directory /nfs and few subdirectories a, b, c.
> i have the following mount on server.
> /dev/sdb1 /nfs/a
> /dev/sdc1 /nfs/b
> /dev/sdd1 /nfs/c


> when i export /nfs i dont see data under a, b, c subdirectories on nfs
> clients.
> How do i achieve this without having to export each subdirectory.


This is what nfs does anyway (of course). It may be that you are using
the botched nfs kernel server implementation (knfs?) instead of the classic
user space nfs server, in which case the effects culd be either this or
green spots on your underwear in the morning.

But I would suspect that you are carefully witholding from us some
truths that you think would make our lives too easy, like the fact that
you have imported nfs mounts on a/ b/ and c/, and you are trying to
re-export them without having tld your server (whatever it is) to do that.

Or maybe those are links to somewhere else.

Come clean.

Peter
Reply With Quote
  #3 (permalink)  
Old 12-06-2005
Nico Kadel-Garcia
 
Posts: n/a
Default Re: NFS export


"Anil Kommareddy" <anil_kommareddy@hotmail.com> wrote in message
news:gpWkf.381632$084.51508@attbi_s22...
> Hi All
>
> I have a directory /nfs and few subdirectories a, b, c.
> i have the following mount on server.
> /dev/sdb1 /nfs/a
> /dev/sdc1 /nfs/b
> /dev/sdd1 /nfs/c
>
> when i export /nfs i dont see data under a, b, c subdirectories on nfs
> clients.
> How do i achieve this without having to export each subdirectory.


That won't work because /nfs/a is another moutpoint on the *SERVER*.

What exactly are you trying to do?


Reply With Quote
  #4 (permalink)  
Old 12-07-2005
gary
 
Posts: n/a
Default Re: NFS export

Hi,

What does your /etc/exports file contain?

Reply With Quote
  #5 (permalink)  
Old 12-09-2005
Anil Kommareddy
 
Posts: n/a
Default Re: NFS export

Hi Gary

/nfs *(rw,sync,insecure)

it works fine when i export individual subdirectories

/nfs/a *(rw,sync,insecure)
/nfs/b *(rw,sync,insecure)
/nfs/c *(rw,sync,insecure)

i am just looking for a solution which would reduce no. of exports i have to
keep track.

thanks

Anil


"gary" <gws@mtco.com> wrote in message
news:1133975508.747998.113960@z14g2000cwz.googlegr oups.com...
> Hi,
>
> What does your /etc/exports file contain?
>



Reply With Quote
  #6 (permalink)  
Old 12-09-2005
gary
 
Posts: n/a
Default Re: NFS export

Hi,

I think you are trying to make the mount point /nfs as a general mount
point. It is a distinct mount point. You are assuming that the /nfs/a,
/nfs/b and /nfs/c will appear when /nfs is mounted.

This is a filesystem! Your mounts are distinct. If you want to have
the auto mounts then you could use your /etc/fstab to auto mount. Note
that the clients must have the mount points.

I would suggest a google at this point. Lot of examples and solutions
to this.

HTH!

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0