Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

NFS export

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2005, 12:30 PM
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





Anil Kommareddy
Reply With Quote
  #2  
Old 12-05-2005, 01:37 PM
Peter T. Breuer
Guest
 
Posts: n/a
Default Re: NFS export

In comp.os.linux.setup Anil Kommareddy <(E-Mail Removed)> 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  
Old 12-06-2005, 02:34 AM
Nico Kadel-Garcia
Guest
 
Posts: n/a
Default Re: NFS export


"Anil Kommareddy" <(E-Mail Removed)> 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  
Old 12-07-2005, 05:11 PM
gary
Guest
 
Posts: n/a
Default Re: NFS export

Hi,

What does your /etc/exports file contain?

Reply With Quote
  #5  
Old 12-09-2005, 12:59 PM
Anil Kommareddy
Guest
 
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi,
>
> What does your /etc/exports file contain?
>



Reply With Quote
  #6  
Old 12-09-2005, 05:14 PM
gary
Guest
 
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

Tags
export, nfs

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
Forum Jump


All times are GMT. The time now is 06:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.