you can't remove shares you've defined using ZFS sharesmb property
by issuing 'sharemgr remove-share. To remove such shares you need
to set the sharesmb property to off using ZFS CLI.

Afshin

On 07/20/10 12:06 PM, keegam wrote:
I've mucked up my cifs shares and I want to start over. According to the 
documentation, doing a 'sharemgr remove-share -s<share>' will do it, however 
that isn't working for me.

r...@dsshare01:/rzpool/.zfs/shares# sharemgr show -vp
default nfs=()
zfs
     zfs/rzpool smb=()
           /rzpool
                   rzpool=/rzpool         smb=(abe="false" guestok="false")
     zfs/rzpool/data smb=()
           data=/rzpool/data
smb smb=()
r...@dsshare01:/rzpool/.zfs/shares# sharemgr remove-share -s /rzpool/data
r...@dsshare01:/rzpool/.zfs/shares# sharemgr show -vp
default nfs=()
zfs
     zfs/rzpool smb=()
           rzpool=/rzpool
     zfs/rzpool/data smb=()
           /rzpool/data
                   data=/rzpool/data      smb=(abe="false" guestok="false")
smb smb=()
r...@dsshare01:/rzpool/.zfs/shares#


I've tried a few combinations:

sharemgr remove-share -r data -s /rzpool/data
sharemgr remove-share -s /rzpool/data
sharemgr remove-share -r data


but none of them seem to work.

It was created using this command:
zfs create -o casesensitivity=mixed -o nbmand=on rzpool/data
_______________________________________________
cifs-discuss mailing list
cifs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss

Reply via email to