Skip to contentSkip to conversation

recursive exports && linux nfs

DISCUSSION Marc Lehmann 2 participants 4 messages Dec 12, 2000 – Dec 17, 2000

lore
Share & tools
lore
#0 lore raw

Hi ;)

I am trying to export the whole filesystem hierarchy on one of my servers (this includes /fs, which is an automounted directory using autofs).

Now I have two problems:

1) exporting: exportfs does not really exports filesystems that are not present when exportfs is being called (some of my filesystems are only available temporarily). Also, exportfs of course forces the mount of all filesystems that are mountable, which can take considerable time.

2) using: I can do cd /nfs/fs, but the directoy is always empty, and when I try to step into a subdirectory I always get "No such file or directory".

I am using linux-2.2.18, nfsv3 + nfs-utils-0.2.1.

Thanks a lot for any insights, even if this means "this is not supported" ;)

Signature · 11 lines
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [email protected] |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw

Hi!

Quoted 10 lines

I am trying to export the whole filesystem hierarchy on one of my servers (this includes /fs, which is an automounted directory using autofs).

Now I have two problems:

1) exporting: exportfs does not really exports filesystems that are not present when exportfs is being called (some of my filesystems are only available temporarily). Also, exportfs of course forces the mount of all filesystems that are mountable, which can take considerable time.

Quoted 7 lines

2) using: I can do cd /nfs/fs, but the directoy is always empty, and when I try to step into a subdirectory I always get "No such file or directory".

I am using linux-2.2.18, nfsv3 + nfs-utils-0.2.1.

Thanks a lot for any insights, even if this means "this is not supported" ;)

This can't be supported, afaict, because nfs handles have limited size.

Pavel

Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#2 lore raw
In reply to Marc Lehmann
Quoted 8 lines · Pavel Machek
Quoted 5 lines

2) using: I can do cd /nfs/fs, but the directoy is always empty, and when I try to step into a subdirectory I always get "No such file or directory".

Thanks a lot for any insights, even if this means "this is not supported" ;)

This can't be supported, afaict, because nfs handles have limited size.

Ehrm, did you really read my mail? Most people told me something like "recursive exports are not supported" (actually, they are and they work), and it seems nobody really read what I wrote :(

My problem is that autofs doesn't work. Example:

/ reiserfs
/fs autofs
/fs/big ext2

When I exportfs /, /fs AND /fs/big then I can mount /fs on another box, but it is always empty, even if something (e.g. /fs/big) is mounted and can be accessed fine the whole time. Automounting doesn't work, either, of course.

Another (less grave) problem is that exportfs (and/or rpc.nfsd) require network access and access to the volume, so they a) mount all automounted directories (VERY expensive) and require network access (making all clients NOT survive a reboot).

Signature · 11 lines
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [email protected] |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#3 lore raw
In reply to Marc Lehmann

Hi!

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

2) using: I can do cd /nfs/fs, but the directoy is always empty, and when I try to step into a subdirectory I always get "No such file or directory".

Thanks a lot for any insights, even if this means "this is not supported" ;)

Quoted 6 lines
Quoted 2 lines

This can't be supported, afaict, because nfs handles have limited size.

Ehrm, did you really read my mail? Most people told me something like "recursive exports are not supported" (actually, they are and they work), and it seems nobody really read what I wrote :(

They do not work too well. They break guarantee that handles are persistent across reboots. Recursive exports are huge kludge. They have to be.

[Sorry, I did not read your mail too carefully]

Quoted 16 lines

My problem is that autofs doesn't work. Example:

/ reiserfs
/fs autofs
/fs/big ext2

When I exportfs /, /fs AND /fs/big then I can mount /fs on another box, but it is always empty, even if something (e.g. /fs/big) is mounted and can be accessed fine the whole time. Automounting doesn't work, either, of course.

Another (less grave) problem is that exportfs (and/or rpc.nfsd) require network access and access to the volume, so they a) mount all automounted directories (VERY expensive) and require network access (making all clients NOT survive a reboot).

Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/