Jump to content

Export User Shares to SMB failed


Borealin
Go to solution Solved by Borealin,

Recommended Posts

Posted

My UNRAID version is 7.0.0-beta.2, I just import my pool from TrueNAS, and I want to enable SMB for my dataset.

UNRAID seems recognize folder in the disk root as user shares, so I try to exprort user shares from WebGUI

Most of them could be found in SMB by set SMB export to Yes, but one of them failed.

When I set it's export to Yes, after loading animation finished, export were set to No again, here are my logs

Sep 18 08:19:57 BorNAS emhttpd: update_pool: 30 data 0
Sep 18 08:19:58 BorNAS emhttpd: Starting services...
Sep 18 08:19:58 BorNAS emhttpd: shcmd (281): /etc/rc.d/rc.samba restart
Sep 18 08:19:58 BorNAS rc.samba: Restarting Samba server daemon...
Sep 18 08:19:58 BorNAS rc.samba: Stopping Samba server daemon...
Sep 18 08:19:58 BorNAS rc.samba: killall smbd nmbd wsdd2 winbindd
Sep 18 08:19:58 BorNAS wsdd2[329069]: 'Terminated' signal received.
Sep 18 08:19:58 BorNAS winbindd[329073]: [2024/09/18 08:19:58.290345,  0] ../../source3/winbindd/winbindd_dual.c:1980(winbindd_sig_term_handler)
Sep 18 08:19:58 BorNAS winbindd[329073]:   Got sig[15] terminate (is_parent=1)
Sep 18 08:19:58 BorNAS wsdd2[329069]: terminating.
Sep 18 08:19:58 BorNAS rc.samba: Samba server daemon...  Stopped.
Sep 18 08:19:58 BorNAS rc.samba: Starting Samba server daemon...
Sep 18 08:19:58 BorNAS rc.samba: /usr/sbin/smbd -D
Sep 18 08:19:58 BorNAS rc.samba: /usr/sbin/wsdd2 -d -4
Sep 18 08:19:58 BorNAS wsdd2[329329]: starting.
Sep 18 08:19:58 BorNAS rc.samba: /usr/sbin/winbindd -D
Sep 18 08:19:58 BorNAS rc.samba: Samba server daemon...  Started.
Sep 18 08:19:59 BorNAS emhttpd: shcmd (285): /etc/rc.d/rc.avahidaemon reload
Sep 18 08:19:59 BorNAS avahi-daemon[1962]: Got SIGHUP, reloading.
Sep 18 08:19:59 BorNAS emhttpd: shcmd (290): smbcontrol smbd close-share 'data'

Is it due to my folder size? My folder size is around 6~7TB

Posted
15 minutes ago, JorgeB said:

That should not matter, reboot to clear the logs, try to export that share again, and post new diags.

Logs still looks like this, where could I found more related info?

Sep 19 00:00:05 BorNAS emhttpd: update_pool: 30 data 0
Sep 19 00:00:05 BorNAS emhttpd: Starting services...
Sep 19 00:00:05 BorNAS emhttpd: shcmd (66): /etc/rc.d/rc.samba restart
Sep 19 00:00:05 BorNAS rc.samba: Restarting Samba server daemon...
Sep 19 00:00:05 BorNAS rc.samba: Stopping Samba server daemon...
Sep 19 00:00:06 BorNAS rc.samba: killall smbd nmbd wsdd2 winbindd
Sep 19 00:00:06 BorNAS wsdd2[6504]: 'Terminated' signal received.
Sep 19 00:00:06 BorNAS winbindd[6508]: [2024/09/19 00:00:06.039352,  0] ../../source3/winbindd/winbindd_dual.c:1980(winbindd_sig_term_handler)
Sep 19 00:00:06 BorNAS winbindd[6508]:   Got sig[15] terminate (is_parent=1)
Sep 19 00:00:06 BorNAS wsdd2[6504]: terminating.
Sep 19 00:00:06 BorNAS rc.samba: Samba server daemon...  Stopped.
Sep 19 00:00:06 BorNAS rc.samba: Starting Samba server daemon...
Sep 19 00:00:06 BorNAS rc.samba: /usr/sbin/smbd -D
Sep 19 00:00:06 BorNAS rc.samba: /usr/sbin/wsdd2 -d -4
Sep 19 00:00:06 BorNAS wsdd2[9526]: starting.
Sep 19 00:00:06 BorNAS rc.samba: /usr/sbin/winbindd -D
Sep 19 00:00:06 BorNAS rc.samba: Samba server daemon...  Started.
Sep 19 00:00:06 BorNAS emhttpd: shcmd (70): /etc/rc.d/rc.avahidaemon reload
Sep 19 00:00:06 BorNAS avahi-daemon[2112]: Got SIGHUP, reloading.
Sep 19 00:00:07 BorNAS emhttpd: shcmd (75): smbcontrol smbd close-share 'data'

unraid_smb.png

Posted

First check this setting that SMB is actually enabled:

 

image.png.c0767e45a0f044cd9fab09f6f109c7d9.png

 

Next check that you are actually exporting the share(s) that you want to have available:

image.thumb.png.2994f7ebfee0d7f5d5dc1b1ca77da1ce.png

Be sure that you setup the security that you want on your shared files.  (Public is not recommended for security reasons.  Windows clients often have difficulties connecting to servers using public credentials!)   If you need help setting things up see here:

 

       https://forums.unraid.net/topic/110580-security-is-not-a-dirty-word-unraid-windows-1011-smb-setup/

 

  • Solution
Posted
10 hours ago, JorgeB said:

That should not matter, reboot to clear the logs, try to export that share again, and post new diags.

 

9 hours ago, Frank1940 said:

First check this setting that SMB is actually enabled:

 

image.png.c0767e45a0f044cd9fab09f6f109c7d9.png

 

Next check that you are actually exporting the share(s) that you want to have available:

image.thumb.png.2994f7ebfee0d7f5d5dc1b1ca77da1ce.png

Be sure that you setup the security that you want on your shared files.  (Public is not recommended for security reasons.  Windows clients often have difficulties connecting to servers using public credentials!)   If you need help setting things up see here:

 

       https://forums.unraid.net/topic/110580-security-is-not-a-dirty-word-unraid-windows-1011-smb-setup/

 

I found the problem is due to share's name and pool's name conflicts, both are 'data', so I rename the pool and everything work well

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...