Samba need restart after each boot

Post Reply
odro-volti
Posts: 20
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Samba need restart after each boot

Unread post by odro-volti » Fri Jun 28, 2019 9:09 pm

Hi!

I've setup an XU4 with Debian Stretch, established a software RAID 0 (2x WD red 4 TB with USB-SATA adapters). Mount this on boot via fstab with

/dev/md0 /mnt/md0 ext4 defaults,nofail 0 0

and setup a SAMBA server. All works fine.

Until I need to reboot. Then the samba server starts and looks OK (systemctl status smbd shows "Active (running)" and the start time point is shown after the reboot time. But the share is not reachable on the network.

When I do at this point

systemctl restart smbd

the share is available at the same second. In dmesg I have no warning, errors or something related to smbd etc.

nmbd and smbd logs show no errors.

Is it possible that the md0 is not ready when the samba starts? But why doesn't samba simply serve the /mnt/md0 directory?

What can I do to make the samba share come up on reboot automatically? Was never an issue on other samba server (opensuse, raspbian stretch).
kind regards

volti

odro-volti
Posts: 20
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Samba need restart after each boot

Unread post by odro-volti » Fri Jun 28, 2019 9:39 pm

OK, I did a little more research and although it makes absolutely no sense to me, the solution described here

https://bugs.debian.org/cgi-bin/bugrepo ... bug=855918

...helps (no binding to interface). Works fine in Raspbian Stretch though...
These users thanked the author odro-volti for the post:
meveric (Fri Jun 28, 2019 11:10 pm)
kind regards

volti

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 4 guests