Skip to main content

Re: ZFS sharing options have changed in Solaris 11

  • From: Cindy Swearingen < >
  • To:
  • Cc: Andrew Brooks < >
  • Subject: Re: ZFS sharing options have changed in Solaris 11
  • Date: Tue, 28 May 2013 08:27:27 -0600

Hi Andrew,

The sharing model changed in Solaris 11 and then again in Solaris 11.1
so please follow the directions in this doc:

http://docs.oracle.com/cd/E26502_01/html/E29007/gayne.html#scrolltoc

Also, see the troubleshooting section at the end of this section.

Let me know if this doesn't help.

Some shared filed systems that were transitioned to S11.1 had some
issues with the auto share property so I can provide more specific
direction, but start with the above link first.

Thanks, Cindy

On 05/27/13 10:17, Andrew Brooks wrote:
Hello

Here's some information about sharing ZFS file systems over NFS and also
a request for clarification (please correct me if I'm wrong):

To share a ZFS filesystem (persistent across reboots) over NFS in
Solaris 10:

zfs set sharenfs='rw=netgroupname,root=othernetgroup' poolname

To achieve the same in Solaris 11.1:

zfs set share.nfs=on  poolname
zfs set share.nfs.sec.default.rw
<http://share.nfs.sec.default.rw>=netgroupname  poolname
zfs set share.nfs.sec.default.root=othernetgroup poolname

HOWEVER, there's a problem. The new sharing syntax was introduced in
zpool version 33.
If you have a pool with an older version but hosted on solaris 11.1 then
which share syntax do you use?
If you try the solaris 11.1 syntax it doesn't work (zpool version is too
old).
If you try the solaris 10 syntax then it complains because you can only
issue
zfs set sharenfs=on poolname

What you need to do is use a third syntax:

zfs set sharenfs=on poolname
zfs set
share=name=NAME,path=PATH,prot=nfs,sec=sys,rw=netgroupname,root=othernetgroup
poolname

BUT that doesn't seem persistent across reboots :-(



ZFS sharing options have changed in Solaris 11

Andrew Brooks 05/27/2013

Re: ZFS sharing options have changed in Solaris 11

Cindy Swearingen 05/28/2013

Re: ZFS sharing options have changed in Solaris 11

Andrew Brooks 05/29/2013

Re: ZFS sharing options have changed in Solaris 11

Cindy Swearingen 05/29/2013

Re: ZFS sharing options have changed in Solaris 11

Casper . Dik 05/29/2013

Re: ZFS sharing options have changed in Solaris 11

Robin P. Blanchard 05/29/2013

Re: ZFS sharing options have changed in Solaris 11

Robin P. Blanchard 05/30/2013

Re: ZFS sharing options have changed in Solaris 11

Casper . Dik 05/31/2013

Re: ZFS sharing options have changed in Solaris 11

Cindy Swearingen 05/29/2013

Re: ZFS sharing options have changed in Solaris 11

Casper . Dik 05/29/2013

Re: ZFS sharing options have changed in Solaris 11

Chris Ridd 05/30/2013
 
 
Close
loading
Please Confirm
Close