Samba share

kazi

Member
Jan 18, 2024
67
1
8
Hi,
I have Samba Server in my environment, when I try to add SMB/CIFS from DataCenter-->Storage--Add SMB/CIFS, I am getting error message "create storage failed: storage 'samba-backup' is not online (500)".
But if i add from console like this

sudo apt install cifs-utils

Create a folder that you will mount the remote SMB share into:
mkdir /mnt/somefolder

Create a credentials file to store the credentials to access the remote machine:
nano /etc/samba/.smbcreds

... and set the username and password:
username=smb_usernamepassword=smb_password

Save your file and make it readable by root only:
chmod 400 /etc/samba/.smbcreds

Finally, mount your SMB share in PBS:
sudo mount -t cifs -o rw,vers=3.0,credentials=/etc/samba/.smbcreds //1.2.3.4/sharename /mnt/somefolder

Then it works. My question is - how to add my samba share from the Datacenter?


Screenshot_2024-02-21_12-25-47.png
 
Finally, mount your SMB share in PBS:
sudo mount -t cifs -o rw,vers=3.0,credentials=/etc/samba/.smbcreds //1.2.3.4/sharename /mnt/somefolder
Is the non-masked line the same as what is in your screenshot? A bit silly to hide things here when they are in clear text in your posted screenshot.

Open a terminal to PVE via ssh, run "journalctl -f", then try to add the storage and see what additional information, if any, you can learn from it.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox