nfs export again

Moderators: jhartley, MSR734, nola

nfs export again

Post by mk01 » Thu Nov 22, 2012 4:47 am

I'm not able to export zfs filesystem from the directory as it's mount:

let's say zfs named TEST, is mounted under /Volumes/TEST, exporting /Volumes/TEST. On the client, I get empty directory always, no errors.

but, from any directory created under TEST (/Volumes/TEST/testdir), it is going well (export in that case is /Volumes/TEST/testdir).

is this caused by a bug, or incompatibility with stock nfsd, or ... ?

thanks,
mk
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: nfs export again

Post by mk01 » Fri Nov 23, 2012 4:05 am

update:

files copied to this "empty" destination (mounted via NFS) are actually copied to it. looks empty, but this works.
Last edited by mk01 on Fri Nov 23, 2012 6:16 pm, edited 1 time in total.
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: nfs export again

Post by grahamperrin » Fri Nov 23, 2012 1:12 pm

Thanks. In what context is the false appearance of emptiness?
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: nfs export again

Post by mk01 » Fri Nov 23, 2012 6:28 pm

It is related to the ZFS filesystem mounted over NFS in the specific case from first post, where exported directory which is at the same time mount point of the zfs, mounted on client looks empty. But you can copy files to it, still empty on the client, but the files are transferred to server and correctly saved at the server side.

If the mount point is exported with -alldirs parameter and on the client any other directory below the mount point is used during mount, everything is ok.

For example:
On the server, you have ZFS filesystem named TEST. It's mount point is /Volumes/TEST. In /etc/exports file you have "/Volumes/TEST -alldirs". You mount on client like "mount_nfs machine:/Volumes/TEST /local_mountpoint. On the client, the /local_mountpoint looks empty. Files copied to this "empty" dir are properly created on the server under /Volumes/TEST.

If you mount with other subdirectory (eg "mount_nfs machine:/Volumes/TEST/dir1 /local_mountpoint"), everything is all right.

mk
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: nfs export again

Post by grahamperrin » Sat Nov 24, 2012 1:14 am

mk01 wrote:… On the client, the /local_mountpoint looks empty. …


Sorry, I should have been clearer with the question.

Is the empty view with Finder?

If so, then do all other client view approaches (approaches other than Finder) have the same emptiness?
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: nfs export again

Post by mk01 » Sat Nov 24, 2012 12:50 pm

ah, sorry, i'm not a native english speaker.

it's not just Finder. it's on system level. ls -la shows the same. I tested even with linux client. the same result.

mk
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: nfs export again

Post by grahamperrin » Sat Nov 24, 2012 12:57 pm

Thanks.

How does the client system respond when you try to copy, to the server, a file with a (case insensitive) name that already exists?
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: nfs export again

Post by mk01 » Sat Nov 24, 2012 1:24 pm

it asks to overwrite the file.
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: nfs export again

Post by grahamperrin » Sun Nov 25, 2012 6:44 am

OK. So something on the client does see what's on the server – but apparently not in a way that's useful to human eyes (except in the case of potential overwrite).

Very thought-provoking …
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: nfs export again

Post by mk01 » Tue Nov 27, 2012 9:34 pm

I just found, that "rdirplus" mount option (readdirplus nfs v3 feature) is making this troubles.

without this options it looks fine (with no further testing).

mk
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Next

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 3 guests

cron