Thanks for getting back to me!

I am using Solaris 10 10/09 (update 8)

I have created multiple nested zfs directories in order to compress some but
not all sub directories in a directory.
I have ensured that they all have a sharenfs option, as I have done with
other shares.

This is a special case to me, since instead of just
#zfs create pool/mydir

and then just using mkdir to make everything thereafter, I have done:
 #zfs create mypool/mydir/
 #zfs create mypool/mydir/dir1
 #zfs create mypool/mydir/dir1/compressed1
#zfs create mypool/mydir/dir1/compressedir2
#zfs create mypool/mydir/dir1/uncompressedir


i had hoped that i would then export this, and mount it on the client and
see:
#ls  /mnt/mydir/*

dir:
compressedir1 compressedir2 uncompressedir

and the files thereafter.

however  what i see is :

#ls /mnt/mydir/*

dir:

My client is linux. I would assume we are using nfs v3.
I also notice that the permissions are not showing through correctly.
The mount options used are our "defaults" (hard,rw,nosuid,nodev,intr,noacl)


I am not sure what this mirror mounting is?  Would that help me?
Is there something else I could be doing to approach this better?

Thank you for your insight.

-

Cassandra
Unix Administrator


On Thu, May 27, 2010 at 5:25 PM, Cindy Swearingen <
cindy.swearin...@oracle.com> wrote:

> Cassandra,
>
> Which Solaris release is this?
>
> This is working for me between an Solaris 10 server and a OpenSolaris
> client.
>
> Nested mount points can be tricky and I'm not sure if you are looking
> for the mirror mount feature that is not available in the Solaris 10
> release, where new directory contents are accessible on the client.
>
> See the examples below.
>
>
> Thanks,
>
> Cindy
>
> On the server:
>
> # zpool create pool c1t3d0
> # zfs create pool/myfs1
> # cp /usr/dict/words /pool/myfs1/file.1
> # zfs create -o mountpoint=/pool/myfs1/myfs2 pool/myfs2
> # ls /pool/myfs1
> file.1  myfs2
> # cp /usr/dict/words /pool/myfs1/myfs2/file.2
> # ls /pool/myfs1/myfs2/
> file.2
> # zfs set sharenfs=on pool/myfs1
> # zfs set sharenfs=on pool/myfs2
> # share
> -               /pool/myfs1   rw   ""
> -               /pool/myfs1/myfs2   rw   "
>
> On the client:
>
> # ls /net/t2k-brm-03/pool/myfs1
> file.1  myfs2
> # ls /net/t2k-brm-03/pool/myfs1/myfs2
> file.2
> # mount -F nfs t2k-brm-03:/pool/myfs1 /mnt
> # ls /mnt
> file.1  myfs2
> # ls /mnt/myfs2
> file.2
>
> On the server:
>
> # touch /pool/myfs1/myfs2/file.3
>
> On the client:
>
> # ls /mnt/myfs2
> file.2  file.3
>
>
> On 05/27/10 14:02, Cassandra Pugh wrote:
>
>>     I was wondering if there is a special option to share out a set of
>> nested
>>   directories?  Currently if I share out a directory with
>> /pool/mydir1/mydir2
>>   on a system, mydir1 shows up, and I can see mydir2, but nothing in
>> mydir2.
>>   mydir1 and mydir2 are each a zfs filesystem, each shared with the proper
>>   sharenfs permissions.
>>   Did I miss a browse or traverse option somewhere?
>>   -
>>   Cassandra
>>     Unix Administrator
>>   "From a little spark may burst a mighty flame."
>>   -Dante Alighieri
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> zfs-discuss mailing list
>> zfs-discuss@opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>>
>
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to