I think I find the question. I need enable smb/client:default and smb/server:default befor import tank. # svcs -a |grep smb disabled 10:38:35 svc:/network/smb/client:default disabled 10:38:36 svc:/network/smb/server:default online 10:38:56 svc:/network/shares/group:smb # svcadm enable svc:/network/smb/client:default # svcadm enable svc:/network/smb/server:default # zpool import tank nothing report. so, I think befor enalbe smb/client and smb/server, import tank may success, and not report error.
At 2014-04-01 15:53:07,"Dang Zhiqiang" <[email protected]> wrote: >OS information: ># cat /etc/release > OpenIndiana Development oi_151.1.9 X86 (powered by illumos) > Copyright 2011 Oracle and/or its affiliates. All rights reserved. > Use is subject to license terms. > Assembled 17 January 2014 > >At 2014-04-01 15:49:21,"Dang Zhiqiang" <[email protected]> wrote: > >Hi, >When I set sharesmb=on, I obtain the following message, very strangem, how to >fix it? > > ># zfs create tank/test ># zfs set sharesmb=on tank/test ># zfs set sharesmb=guestok=true tank/test > > >win 7 visit test is ok. > > ># zpool export tank ># restart > > ># zpool import tank >cannot share 'tank/test': smb add share failed ># dmesg |tail -n 1 >Apr 1 15:30:00 host2 smbd[991]: [ID 413393 daemon.error] dyndns: failed to >get domainname ># zfs list tank/test >NAME USED AVAIL REFER MOUNTPOINT >tank/test 36K 274G 36K /tank/test > > >win 7 visit test is ok. > > ># zpool export tank >cannot unmount '/tank/test': Device busy ># zpool export -f tank ># zpool import tank ># zpool export tank ># zpool import tank > > >_______________________________________________ >OpenIndiana-discuss mailing list >[email protected] >http://openindiana.org/mailman/listinfo/openindiana-discuss _______________________________________________ OpenIndiana-discuss mailing list [email protected] http://openindiana.org/mailman/listinfo/openindiana-discuss
