Dave Koelmeyer
2008-May-31 13:02 UTC
[zfs-discuss] OpenSolaris 2008.05 CIFS - "cannot share...smb add share failed"
Hi All, After a LOT of tinkering I eventually determined exactly where I am going wrong. It''s to do with the ZFS ACLs I am applying. Why this is resulting in the behaviour I am seeing, I do not know - perhaps someone can spell it out to me. To cut a long story short, this is how I am creating my file systems: http://web.mac.com/davekoelmeyer/Dave_Koelmeyer/Dave_Koelmeyer_-_OpenSolaris_2008.05_ZFS_File_Systems_and_Snapshots_1.html Now, when I apply ACLS in the "Set ACLs on each filesystem" section in the above link, the filesystem will consistently fail to share on server reboot. In fact, it will consistently fail to share if the pool is exported, and then imported even in the same session. I tried every trick I could think of to get the sharing up and running again, including the tip Rob helpfully shared above, as well as; rebooting zfs set sharesmb=off tank/fs zfs set sharesmb=on tank/fs zpool export tank zpool import tank sharemgr start -P smb zfs svcadm disable smb/server svcadm enable -r smb/server In various combinations, all with zero success. After a lot of playing around, I discovered the ACE combination that would secure my filesystems in the way I want (nothing fancy), and, allow the file system to be shared automatically as one would expect. Check it out: http://web.mac.com/davekoelmeyer/Dave_Koelmeyer/Dave_Koelmeyer_-_OpenSolaris_2008.05_smb_add_share_failed_2.html ie. a single allow read_attribute ACE for everyone. Now, why would this be? This message posted from opensolaris.org
Maybe Matching Threads
- "Cannot copy...The operation completed successfully" / OpenSolaris 2008
- Weirdly inflated files sizes in Mac OS 10.5.2 Finder / Opensolaris 2008
- Confused about prerequisites for ZFS to work
- sharenfs=off, but still being shared?
- OpenSolaris Sparc Xen boot problem