Benjamin Staffin
2008-May-06 02:07 UTC
[zfs-discuss] sharesmb settings not working with some filesystems
This is really strange. Check out this error: [root at dot ~]# zfs get sharesmb tank/software tank/music NAME PROPERTY VALUE SOURCE tank/music sharesmb off default tank/software sharesmb off default (same begin state for both filesystems) [root at dot ~]# zfs set sharesmb=name=music tank/music (works fine, and clients can mount it) [root at dot ~]# zfs set sharesmb=name=software tank/software cannot share ''tank/software'': smb add share failed .... fails. WTF? NFS sharing tank/software also fails, but I don''t see any errors on the server side. You have to try mounting it before you see any failures there. My zpool and the various zfs filesystems were created with sxce b76. The problem seemed to crop up while running b82. At that point I did zpool upgrade -a and zfs upgrade -a to see if that helped (... since apparently cifs sharing isn''t actually supposed to work with zfs v2!). It did not. I''ve now upgraded to b87, and I''m seeing the exact same problem. I''m not manually configuring things with sharemgr. I did at one time, but I decided to remove those settings and try to use zfs sharesmb and sharenfs directly. Maybe this is where the problem started? What''s going on here? It smells to me like some unpleasant voodoo. :( - Ben
Rob at Logan.com
2008-May-06 02:23 UTC
[zfs-discuss] sharesmb settings not working with some filesystems
> cannot share ''tank/software'': smb add share failedyou meant to post this in storage-discuss but type: chmod 777 /tank/software zfs set sharesmb=name=software tank/software
Benjamin Staffin
2008-May-06 16:00 UTC
[zfs-discuss] sharesmb settings not working with some filesystems
On Mon, May 5, 2008 at 10:23 PM, <Rob at logan.com> wrote:>> cannot share ''tank/software'': smb add share failed > > you meant to post this in storage-discuss > but type: > > chmod 777 /tank/software > zfs set sharesmb=name=software tank/softwareWow. Sometimes the simplest solutions are the hardest to see. The directory had gotten set to mode 000,and I have absolutely no idea how. A simple chmod 755 made everything happy. *sigh* Thank you.