drlinux  
                
                  
                    November 12, 2021,  4:18pm
                   
                  1 
               
             
            
              Hi folks,
I just simply trying to create a zpool and share it via samba. You can see the steps that I follow and the error.
zpool create -f -m /mnt/data mypool /dev/sdb
zfs set sharesmb=on mypool
cannot share 'mypool: system error': SMB share creation failed
Samba service is up and running. I have created a share in my ubuntu server with the same commands successfully. Could you please give me any advice?
zfs-2.0.6-1
zfs-kmod-2.0.6-1
4.18.0-305.25.1.el8_4.x86_64
 
            
              
            
           
          
            
              
                iwalker  
              
                  
                    November 12, 2021,  5:26pm
                   
                  2 
               
             
            
              Most likely an selinux thing, you can check /var/log/audit/ log files.  Also you can do:
setenforce 0
to set selinux in permissive mode, and then redo the commands to see if it creates.  That would confirm an issue with selinux at least.
             
            
              
            
           
          
            
              
                drlinux  
              
                  
                    November 13, 2021,  3:59pm
                   
                  3 
               
             
            
              SELinux status is disabled but still having the same problem. SELinux completely disabled, server rebooted, zpool destroyed and created again.
             
            
              
            
           
          
            
            
              I realize this thread is over 2 years old, but as it comes up as a top search result for cannot share 'mypool: system error': SMB share creation failed, I’m going to put what worked for me:  you are missing the samba-usershares package.  This is required to use zfs Samba integration.
             
            
              3 Likes