NFS mount nested filesystems ?

Hello,

machine1:

mount /dev/lv1 /dir1
mount /dev/lv2 /dir1/subdir1
exportfs /dir1

machine2:
If I do NFS mount:

 mount machine1:/dir1 /foreign1

then /foreign1/subdir1 is empty.
Does NFS supports this kind of mounting ?

thanks
Vilius

even if it works don't do it! your just asking for problems.

If you did a "touch /dir1/file1", then I bet you would see it on the remote server. It probably doesn't work because the /dir1/subdir1 is a local mount point and the NFS daemon is just sharing the /dir1 mount point.

frank_rizzo is right, you're better off not mouting your filesystems like that.