We have done some work to make this bearable on boot by introction of
the undocumented SHARE_NOINUSE_CHECK environment variable.  This
disables an expensive check which verifies that the filesystem is not
already shared.  Since we're doing the initial shares on the system, we
can safely disable this check.  You may want to try your experiment with
this environment variable set, but keep in mind that manually
experimentation with this flag set coudl result in a subdirectory of a
filesystem being shared at the same time as its parent, for example.

To do much more we need to fundamentally rearchitect the was
/etc/dfs/dfstab and /etc/dfs/sharetab work.  Thankfully, there is
already a project to rewrite all of this under the guise of a new
'share manager' command.  The assumption is that, in addition to
simplifying the administration model, it will also provide much greater
scalability, as well as a programmatic method for sharing filesystems
from within zfs(1M).  You may want to ping nfs-discuss for any current
status.

- Eric

On Thu, Jul 06, 2006 at 02:38:03AM -0700, H.-J. Schnitzer wrote:
> Hi, 
> 
> does anybody successfully try the option sharenfs=on for an zfs filesystem
> with 10000 users? On my system (sol10u2), that is not only awfully slow but  
> does also not work smoothly. I did run the following commands:
> 
> zpool create -R /test test c2t600C0FF0000000000988193CD00CE701d0s0
> zfs create test/home
> zfs set sharenfs=on test/home
> for u in `range 0000 9999`; do zfs create test/home/$u; done
> zpool export test
> zpool import -R /test test
> 
> The zpool export command required about 30 minutes to finish.
> And the import command, after it did some silent work for 45 minutes, 
> just reported a lot of error messages:
> 
> ...
> cannot share 'test/home/4643': error reading /etc/dfs/sharetab
> cannot share 'test/home/8181': error reading /etc/dfs/sharetab
> cannot share 'test/home/1219': error reading /etc/dfs/sharetab
> cannot share 'test/home/3900': error reading /etc/dfs/sharetab
> cannot share 'test/home/7768': error reading /etc/dfs/sharetab
> cannot share 'test/home/1314': error reading /etc/dfs/sharetab
> cannot share 'test/home/3420': error reading /etc/dfs/sharetab
> cannot share 'test/home/7786': error reading /etc/dfs/sharetab
> cannot share 'test/home/9707': error reading /etc/dfs/sharetab                
>                                                     
> ...
> 
> Regards,
> Hans
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to