Has anyone experienced this issue with getting Samba running using a directory within a ZFS pool?
I am getting this error:
systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2023-11-30 14:16:35 CST; 9s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 97862 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 97862 (code=exited, status=1/FAILURE)
Nov 30 14:16:35 hl15 systemd[1]: Starting Samba SMB Daemon…
Nov 30 14:16:35 hl15 smbd[97862]: [2023/11/30 14:16:35.559191, 0] …/…/source3/smbd/server.c:1746(main)
Nov 30 14:16:35 hl15 smbd[97862]: smbd version 4.18.6 started.
Nov 30 14:16:35 hl15 smbd[97862]: Copyright Andrew Tridgell and the Samba Team 1992-2023
Nov 30 14:16:35 hl15 systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Nov 30 14:16:35 hl15 systemd[1]: smb.service: Failed with result ‘exit-code’.
Nov 30 14:16:35 hl15 systemd[1]: Failed to start Samba SMB Daemon.
Initially I started with creating a Samba share using the path /zfsPoolName/smbDirectory. The directory as a specific user (called prtsvc) to have access to this directory via user and group. I did set a password for the user via Identity and I created a samba password as well.
Initially the samba share seems to work this way, but I was never able to successful connect via username/password. I did check what the SAMBA workgroup name was. Initially it was SAMBA. I tried that but it did not work. I changed it to HL15 but that did not work either.
Therefore I went over to the ZFS section, navigated to the specific folder, and used the “Configure Samba” option (I click on browseable and restart samba service). I did see this type of change made larger changes to the smb.conf. The service was running but I was still not able to connect.
As a last effort I type systemctl restart smb.service which gave this error message.
And to just give extra info, the files on the ZFS pool are good. I did a checksum on random files and everything is working.
For the time being, I have paused the user of Samba (as I had only two directories shared).
I am configuring the NFS shares for my Proxmox cluster to reconnect (as the pool was moved from Truenas to this hl-15).
2023-11-30T22:45:00Z
I have successful configured NFS, connected my Proxmox cluster to the HL-15 NFS shares, and access the same NFS shares from my main laptop/desktop. I found a couple web links which I will post/update tomorrow.
2023-12-01T21:20:00Z
I have a list of item a new HL-15 prebuilt instance will need to be modify to successfully get Samba working. There are a number of changes needed. I will post a reply with those steps (after the weekend).