Is it possible to share a folder with cifs without adding a zfs volume? I also have not found out how to share a folder with zfs, is it possible? If it''s possible, how? I searched google and this forum but found no answers to my question. Greets Louis Hoefler PS.: I hope this was the right forum for my question. -- This message posted from opensolaris.org
On Sun, Jan 18, 2009 at 16:38, Louis Hoefler <louis.hoefler at struktum.com> wrote:> Is it possible to share a folder with cifs without adding a zfs volume?Try "zfs set sharesmb=on mypool".> I also have not found out how to share a folder with zfs, is it possible?I don''t think sharing an individual folder is possible (or, at least, simple) without it being a separate zfs dataset: # zfs create mypool/shared_folder # zfs set sharesmb=on mypool/shared_folder Note, however, that last time I checked one could mount a subfolder of a shared folder using the windows tools: net use Q: \\server\mypool\not_explicitly_shared_folder and get the contents of not_explicitly_shared_folder in Q:. HTH Will
But what is the recommended way to share a directory? -- This message posted from opensolaris.org
On Sun, Jan 18, 2009 at 1:57 PM, Louis Hoefler <louis.hoefler at struktum.com>wrote:> But what is the recommended way to share a directory? > -- >I don''t know that there currently is a good way to just share a directory with the built-in cifs server. I''d imagine your best bet would be to use SAMBA. --Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090118/d95ecd86/attachment.html>
Ok I found the share folder gnome gui. Its in coffecup->administration->shared folders. But, if I add a folder with this gui, it does not show up on windows. I tried svcadm restart smb/server but nothing happened. The gui created a /etc/sfw/smb.conf file, which holds the folder I added. I found another network/samba service. If I try to start it i get this error: [2009/01/18 21:25:05, 0] lib/util_sock.c:(822) bind failed on port 445 socket_addr = 0.0.0.0. Error = Address already in use Maybe the smb/server and network/samba services can not work together? What am I doing wrong? Greets Louis Hoefler. -- This message posted from opensolaris.org
Louis Hoefler wrote:> But what is the recommended way to share a directory?You should be able to use sharemgr directly to just share a directory and not an entire file system. If you do that you shouldn''t set the sharesmb property, though. Use either the sharesmb property or use sharemgr directly. The CIFS administration guide should have examples of using sharemgr. -Mark
On Sun, Jan 18, 2009 at 2:37 PM, Louis Hoefler <louis.hoefler at struktum.com>wrote:> Ok I found the share folder gnome gui. Its in > coffecup->administration->shared folders. But, if I add a folder with this > gui, it does not show up on windows. > > I tried > > svcadm restart smb/server > > but nothing happened. The gui created a /etc/sfw/smb.conf file, which holds > the folder I added. > I found another network/samba service. If I try to start it i get this > error: > > [2009/01/18 21:25:05, 0] lib/util_sock.c:(822) > bind failed on port 445 socket_addr = 0.0.0.0. > Error = Address already in use > > Maybe the smb/server and network/samba services can not work together? > What am I doing wrong? > > Greets Louis Hoefler. > -- >smb/server and network/samba would work on the same ports. If you want to enable network/samba, you''d have to disable smb/server. According to Mark below, you should be able to share just a folder leveraging sharemgr though, so maybe look into that first. Here''s a start: http://blogs.sun.com/dougm/entry/sharemgr_and_zfs --Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090118/ce876a74/attachment.html>
Ok I found a solution. Thanks for your help. svcadm enable samba wins swat modified /etc/sfw/smb.conf: [global] server string = Unix-Windows share security = SHARE wins server = 192.168.1.2, 192.168.1.1 [apache22] comment = Apache 2.2 share path = /var/apache2/2.2 read only = No guest ok = Yes svcadm restart samba Now i see my share. Another solution was written via email. The advice was to use sharemgr directly to setup shares. Right now I need to use swat or I need to edit the /etc/sfw/smb.conf -- This message posted from opensolaris.org
I switched to the CIFS filesharing system. All that I needed to do was to disable the samba wins swat services, then i started the smb/server service. I followed the CIFS administration guide. Almost everything worked without problems. The only problem I got was a ?wins? resolution error. So, if I tried to access \\"hostname" I got a error message that windows was not able to log on. I tried the ip insteal of the hostname, suffixed by the share (-r resource-name) I just created, what worked. I restarted the smb/server service again. No changes. I restarted the machine, now everything works without problems. Somehow there where problems with the windows name resolution without the restart. Maybe thats becouse I used the wins deamon before? Greets Louis Hoefler. -- This message posted from opensolaris.org