Re: [zfs-discuss] [nfs-discuss] Two pools, one flop-

2010-01-18 Thread Tom Haynes

CD wrote:

On 01/18/2010 06:36 PM, Tom Haynes wrote:

CD wrote:

Greetings.

I've go two pools, but can only access one of them from my 
linux-machine. Both pools got the same settings and acl.


Both pools has sharenfs=on. Also, every filesystem got 
aclinherit=passthrough

NAME  PROPERTY  VALUE SOURCE
tank  sharenfs  onlocal
bitbox  sharenfs  onlocal



Does 'zfs list' show bitbox to be at the root of the server's namespace?

# zfs list -o name,sharenfs,mountpoint

NAME SHARENFS  MOUNTPOINT
bitbox   on/bitbox
bitbox/fs0  on/bitbox/fs0
bitbox/fs1   on/bitbox/fs1
rpooloff   /rpool
rpool/ROOT   off   legacy
rpool/ROOT/opensolaris   off   /
rpool/ROOT/xvm   off   /mnt/xvm
rpool/ROOT/xvm-1 off   /mnt/xvm1
rpool/dump   - -
rpool/export off   /export
rpool/export/homeoff   /export/home
rpool/swap   - -
tank on/tank
tank/fs0   on/tank/fs0
tank/fs1   on/tank/fs2



Hmm, tank/fs1 is mounted on /tank/fs2. Do you also have
a /tank/fs1? I.e., the shares down below don't match
the paths.

This shouldn't be the problem you are seeing...



What does share show as the active shares?

# share

-...@tank  /tank   rw   ""
-...@tank  /tank/fs0   rw   ""
-...@tank  /tank/fs1   rw   ""
f...@tank/fs0 /tank/fs0   rw   ""
f...@tank/fs1   /tank/fs1   rw   ""



If you don't see bitbox here, it will be a problem.

Seems I've got a problem ^^
But what? Aren't the filesystem handling the sharing?




Yes, they should be. I'm adding zfs-discuss to see what further triaging 
will help.






I've got samba shares active for most of my filesystems - can this be 
a problem?



Same ACL:
/bitbox
drwxr--r--+ 25 root sa25 Dec 18 12:43 folder0
   group:sa:rwxpdDaARWcCos:---:allow
 owner@:rwxpdDaARWcCos:---:allow
  everyone@:r-a-R-c---:---:allow
drwxr--r--+  3 root sa 3 Jun  1  2009 folder1
   group:sa:rwxpdDaARWcCos:---:allow
 owner@:rwxpdDaARWcCos:---:allow
  everyone@:r-a-R-c---:---:allow

/tank
drwxr--r--+  4 root root   4 Sep  9 15:47 folder0
   group:sa:rwxpdDaARWcCos:---:allow
 owner@:rwxpdDaARWcCos:---:allow
  everyone@:r-a-R-c---:---:allow
drwxr--r--+  7 root sa 9 May 19  2009 folder1
   group:sa:rwxpdDaARWcCos:---:allow
 owner@:rwxpdDaARWcCos:---:allow
  everyone@:r-a-R-c---:---:allow

Yet, when I mount the nfs, only 'tank' is listed:
mount -t nfs4 srv:/ /mnt/server

If I try to mount the pools separately:
$ sudo mount -t nfs4 srv:/tank /mnt/tank/ --work perfectly
$ sudo mount -t nfs4 srv:/bitbox /mnt/bitbox --gives error:
mount.nfs4: mounting srv:/bitbox failed, reason given by server:
  No such file or directory


What if you try a v3 mount?

I assmume the prefix "-t nfs" equls v3? I get:
mount.nfs: access denied by server while mounting srv:/bitbox


You don't need "-t nfs", just dropping the -t option will work.

But the fact that we don't see a share means we do not
expect to get access here.





I don't get it!
Also, where are the config files, such as the /etc/export?



If this were non-zfs, you'd want to look in /etc/dfs. But since this 
is zfs, the share

(i.e., export) is in the sharenfs property of the filesystem.





Thanks!





Thanks for replying.


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Re: Re: ZFS with raidz

2007-03-20 Thread Tom Haynes
We've got some work going on in the NFS group to alleviate this problem. Doug 
McCallum has introduced the sharemgr (see http://blogs.sun.com/dougm) and I'm 
about to putback the In-Kernel Sharetab bits (look in http://blogs.sun.com/tdh 
- especially http://blogs.sun.com/tdh/entry/in_kernel_sharetab_have_a).

Doug has been doing some performance optimization to the sharemgr to allow 
faster boot up in loading, specifically for ZFS - see for example 
http://bugs.opensolaris.org/view_bug.do?bug_id=6491973.

It is funny, he just told me a couple of hours ago that he was doing 15k 
entries. I know he has significantly reduced the times for 3k and 5k 
filesystems. We are still working on the 15k entries.

We are wanting to combine his changes with my changes to see if we can get the 
15k time down. With my changes, we remove going to disk for the sharetab and 
locking the file.

As you can see, this is a very hot spot for us right now. We really want these 
times down.

Also, for the interested, I gave a presentation at Connectathon last year which 
highlights some of the issues here: Scaling NFS Services 
(http://www.connectathon.org/talks06/haynes.pdf). I also presented an overview 
of Doug's and my projects at the latest Connectathon:   The Management of 
Shares (http://www.connectathon.org/talks07/ScaleShares.pdf).
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Re: Re: ZFS with raidz

2007-05-09 Thread Tom Haynes
> 
> Doug has been doing some performance optimization to
> the sharemgr to allow faster boot up in loading
> 

Doug has blogged about his performance numbers here: 
http://blogs.sun.com/dougm/entry/recent_performance_improvement_in_zfs
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Article on impact of NFS share management to ZFS boot times

2007-07-09 Thread Tom Haynes
We just had an article published on SDN about how different changes to the ways 
shares are handled has an impact to the boot up time for large numbers of ZFS 
filesystems.

For me, one of the neat things about it was it being a topic at several points 
on OpenSolaris discussion boards.

You can view the article on 'The Management of NFS Performance With Solaris 
ZFS' over at http://developers.sun.com/solaris/articles/nfs_zfs.html.
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] [nfs-discuss] NFS4-sharing-ZFS issues

2008-05-21 Thread Tom Haynes
Spencer Shepler wrote:
> On May 21, 2008, at 1:43 PM, Will Murnane wrote:
>
>   
>> Okay, all is well.  Try the same thing on a Solaris client, though,
>> and it doesn't work:
>> # mount -o vers=4 ds3:/export/local-space/test /mnt/
>> # cd mnt
>> # ls
>> foo
>> # ls foo
>> 
>> 
>
> This behavior was a recent addition to the Solaris client and therefore
> are seeing this lack of functionality.  Any recent Solaris Express or
> OpenSolaris install will have the functionality you desire.
>
> Spencer
>
>   

And for an overview:

http://www.connectathon.org/talks08/mirrormounts.pdf
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss