Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"sharesmb=on" and "zfs" share do not work #3964

Closed
SiliCAT opened this issue Oct 28, 2015 · 3 comments
Closed

"sharesmb=on" and "zfs" share do not work #3964

SiliCAT opened this issue Oct 28, 2015 · 3 comments

Comments

@SiliCAT
Copy link

SiliCAT commented Oct 28, 2015

I have tried many times in my vmware Debian box:

apt-get install debian-zfs samba
zpool create tank sdb
zfs create -o casesensitivity=mixed tank/srv
zfs set sharesmb=on tank/srv

zfs share tank/srv
cannot share 'tank/srv': filesystem already shared

But,
There is NOTHING shared by samba at localhost

I found there is no trace the "net" command being invoked: there is nothing under the path /var/lib/samba/usershares/

I am using Debian 8.0 Jessie amd64, Did I do something wrong or it is a bug?

@FransUrbo
Copy link
Contributor

I found there is no trace the "net" command being invoked: there is nothing under the path /var/lib/samba/usershares/

I am using Debian 8.0 Jessie amd64, Did I do something wrong or it is a bug?

If you're using the packages I provide at ZoL, then you're using the newer version of the sharesmb code (#1476) which uses REGISTRY shares instead.

Try

net conf listshares

A problem is that if zfs-share isn't run (to unshare everything) at shutdown, they will remain and seen by samba when it starts up again after a reboot.

@sofakng
Copy link

sofakng commented Dec 18, 2015

I'm also having a problem... what is the correct configuration for samba, zol, and the sharesmb setting?

I can get my share to work, but after a reboot ZFS complains that the share already exists and the zfs-share.service won't start.

@loli10K
Copy link
Contributor

loli10K commented Aug 18, 2017

Closing as stale: feel free to comment providing basic info about your setup (https://github.com/zfsonlinux/zfs/blob/master/.github/ISSUE_TEMPLATE.md) if this can still be reproduced.

@loli10K loli10K closed this as completed Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants