Create ZFS Pool, Linux LXC Container for Samba/SMB in Proxmox - Home Server Network & File Sharing
ฝัง
- เผยแพร่เมื่อ 20 ต.ค. 2024
- Created a ZFS pool in Raid1/Mirror on Proxmox
Created a Debian LXC Container for Samba/SMB network share and file sharing.
Creating this for home/NAS server
Steps outlined below**************************************
Set up ZFS pool in raid1 slash/mirror
Set up samba container using Debian
Add ZFS pool resource to container
Debian steps**********************************************
apt-get update
apt-get install samba
adduser home
smbpasswd -a home
chown -R home:home /mypool
nano /etc/samba/smb.conf
[share]
comment = home samba share
path = /mypool
read only = no
writable = yes
browsable = yes
guest ok = no
valid users = home
[home]
browsable = no
[nobody]
browsable = no
systemctl restart smbd
Just wanted to thank you. Really great video without any nonsense. I prefer this style and wish you had more.
@@r.cooper5505 Thank you! I’m working on trying to produce more videos. Is there anything particular you’re interested in?
The amount of time saved in trying to DO this by watching this is measured in hours!!! +1
Following this guide I was able to setup my Samba share, but I am having a hard time adding it on another of my ProxMox servers on the same network.
Datacenter -> Storage -> Add: SMB/CIFS -> Fill in settings and I get the error "Create storage failed: mkdir /mnt/pve/testSMB/images: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 1421. (500)"
What can I do to add the share?
First of all, thank you for your instructions. Please, if you can, show us how we can connect to the Samba server from outside using dyndns.
@@alielahi490 I will check into it. Thank you!
Best and easiest thing you can do is configure a VPN with a dynDNS and then, if you're not on the network, you can turn on that VPN and connect to your Samba share as if you were in the network. I don't know any other way (but I'm not an expert either).
@@Cuevista thank you very much 🙏
Did you not get R/W errors in the SMB? According to proxmox you should have also "change the container UID mapping" as the LXC is unprivileged.
I'm also looking to drop truenas for a simple samba/ftp LXC but kept getting R/W issues.
Hmmm?!? No, I did not get any read/write issues.
Can i use it for giving PLEX a directory for my movies?
Did not find any easy description like yours... So i mean does Plex find it too?
@@ReisalTrax Yes, you can. Just use the full path.
@@Cuevista Thank you a lot!
Благодарю, теперь стабильная скорость по SMB 110MB/S и загрузки CPU 4% и MEM 9Gb, в отличии от TrueNAS.
when i try to map this share to windows it say " Windows cannot access \\192.168.0.113" followed by check the spelling of the name. otherwise there might be a network problem" I tried to diagnose and it say no errors detected ,,,,and advice...?
Hmmm?!? Try adding the full path \\192.168.0.113\[share name]
Sorted it works great
Thanks for the video was really helpful. Could you please do one for *arr. services such as radar, sonar, and. prowler, where in you connecting the samba share to all the * are services along with a torrent client.
Also when I tried to restart the service goat this error -
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xeu smbd.service" for details.
Could you please help.
I have never worked with those; however, you should be able to map them inside the container you create as a shared folder.
As far as the error goes, double check your settings in the smb.conf. Make sure you are mapped to the pool. Sometimes you have to include additional folders to get to the pool path depending on your setup.