I know, just try it ... but if I knew it worked, I'd try harder

josehill wrote:Unless I am misunderstanding the question, why wouldn't you be able to do that?
Code: Select all
zfs set sharenfs=on zfs/foo/bar
zfs set sharesmb=on zfs/foo/bar
kubatyszko wrote:Code: Select all
zfs set sharenfs=on zfs/foo/bar
zfs set sharesmb=on zfs/foo/bar
Those bits are independent and I see no reason why it wouldn't work simultaneously...
you may need to add some extra parameters to suit your needs to the commands above.
Code: Select all
zfs set sharenfs=rw pool/dataset
Code: Select all
zfs set sharenfs=rw=@xxx.xxx.xxx.xxx pool/dataset
Code: Select all
zfs set sharenfs='rw=10.0.0.1' pool/dataset
zfs set sharenfs='rw=10.0.0.0/16' pool/dataset
Since it gets lumped in under my solaris ten-foot-pole rule, I've never used zfs. So take the following with an appropriately sized grain of salt (especially if you've already btdt with this reference).hamei wrote:Anyone here know offhand if it's possible to share the same directory tree (e.g. zfs/files) twice, once with nfs and once with smb ? Solaris 10.
If they're right, the original reference can be found here: http://docs.oracle.com/cd/E23824_01/htm ... html#glixoOracle wrote:You can create a file system share with both NFS and SMB protocols by using the zfs set share command.If you want to create a file system share with both NFS and SMB protocols by using the legacy share command, you must specify the command twice. For example:Code: Select all
# zfs set share=name=ds,path=/ds,prot=nfs,prot=smb rpool/ds
name=ds,path=/ds,prot=nfs,prot=smbA share path or description that includes a comma (,) must be quoted with double quotes.Code: Select all
# share -F nfs /rpool/ds
# share -F smb /rpool/ds
# zfs get share rpool/df
name=rpool_ds,path=/rpool/ds,prot=nfs,prot=smb
josehill wrote:Unless I am misunderstanding the question, why wouldn't you be able to do that?
oracle wrote:Note that the Oracle Solaris SMB service is not supported in the Oracle Solaris 10 release.
kubatyszko wrote:How about making sure the share(1) gets what it wants ? ( man share ) :Code: Select all
zfs set sharenfs='rw=10.0.0.1' pool/dataset
recondas wrote:Since it gets lumped in under my solaris ten-foot-pole rule ...
zmttoxics wrote:The old ways are sometimes still the best. On S10, feel free to edit /etc/dfs/dfstab and add your share commands there.
SMB shares will still require you to setup smb users and settings etc using the smb* commands and editing the /etc/sfw/smb.conf fie.
zmttoxics wrote:This guide looks reasonable ...
hamei wrote:zmttoxics wrote:This guide looks reasonable ...
Thanks. Actually, that's for Samba, so I think I'll just give it a rest for now ....
zmttoxics wrote:Right... Didn't you want to setup both SMB and NFS?
zmttoxics wrote:Ok, well, not sure what you were reading or attempting anymore
The newer stuff is on OSOL and Solaris 11.
Users browsing this forum: No registered users and 1 guest