So I recently invested in a new storage server and set it up as a NFS server so I could set up HA to prevent downtime with my VM’s when I had maintenance to do on my Proxmox Hosts. The problem is that if I use iSCSI it sends the drive as a block device that a single VM can use and the problem with NFS for me is that it was extremely slow (need to do more research on this) but when the server was setup with samba, I was able to get 113MB/s both ways to the box from my desktop (8x 300GB SATA drives in raid 10). So why not just use samba with proxmox?
First off, if you decide to use samba with Proxmox you need to know you will be unable to run openvz containers from this storage. This is because samba does not understand the Linux file and group permission system. This type of storage can be used for all other features though.
So to get started, we need to have a samba share somewhere. Lets pretend ours has the following information:
- Server: //10.0.0.10/SambaShare
- Username: share
- Password: share$4
The first thing we do is we create the folder this will be mounted to. If there is no folder to mount to when the system starts up, it will fail to mount and you will be in a world of hurt.
[code]
mkdir /mnt/SambaShare
[/code]
Now you need to setup the mount in fstab so it will auto mount every boot, so open up /etc/fstab and add the following:
[code]
//10.0.0.10/SambaShare /mnt/SambaShare cifs username=share,password=share$4 0 0
[/code]
This will make it so every start, the samba share will mount to the folder you created. Now because I need this share across a few servers, I just do the same thing to every server. This way the mount is in the same location per system.
To have the samba system mount to the server without restarting it, just run sudo mount and it will mount the share.
Now you just need to login to Proxmox, and add the storage to the nodes so it can be used for VM’s. go to Datacenter > Storage > add and fill in the information, then just press add.
After that verify the mount works, and then you are good to go!
!!WARNING!!
Make sure that your Samba server DOES NOT GO OFFLINE while VM’s are running on it. If this happens, your VM’s will freeze, and the IO Wait on your server will skyrocket until the system locks up. So make sure your samba share is 100% configured, and ready to go BEFORE you deploy it. I personally am working on a boot time script that will pause the boot process if the share does not mount, and it will stay paused until it successfully mounts. This way I can prevent the system from writing to non-shared storage, and VM’s thinking there vhd images vanished off the face of the earth.

No me funciono el comando //10.0.0.10/SambaShare /mnt/SambaShare cifs username=share,password=share$4 0 0
Me da el siguiente error: No such sile or directory
Hello. That is not a command you run, but the mount point you put into your /etc/fstab file to setup the mount.
hi,
I’d like to add, please run the sambe in a VZ container and mount the directory of your samba to the container and add there the samba share.
do not put samba on your host.
just my 2 cents
A question, samba is the “system in the Proxmox VM or external extra system”? Samba system sharing out the resource in its system, then Proxmox mount it ? so it would be the IP address to mount.
Can proxmox use its host resource to “add storage for share” I am kinda confuse.
Example”
mkdir /tmp/testfolder Directory “/tmp/testfolder”
and then how can I share this Directory?
thanks
Pingback: Proxmox and using Samba for shared storage – Server Network Tech – 2nd chapter! (at) atmaja
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Need more clicks and conversions for Snt Sh? Watch this short video about our AI-powered traffic service: https://www.youtube.com/shorts/rTwcDCntnYg
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.info/register?ref=QCGZMHR6
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/register/person?ref=IHJUI7TF
Need more clicks and conversions for snt.sh? Watch this short video about our AI-powered traffic service: https://www.youtube.com/shorts/rTwcDCntnYg
Grow your website traffic with our AI-powered service, delivering targeted visitors at a fraction of the cost of paid ads. Contact us to start growing your audience.
https://cutt.ly/ctX1GC2h
Attract precise, keyword-driven traffic to your website with our AI-optimized service, costing much less than paid ad platforms. Start growing now.
https://marketingaged.com/
Boost your Snt Sh website’s traffic with AI! Watch this to learn more: https://www.youtube.com/shorts/rTwcDCntnYg
Tired of low website traffic? This video shows how our AI can help: https://www.youtube.com/shorts/rTwcDCntnYg
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Want more targeted traffic to your Snt Sh website? See how our AI-powered solution can help in this quick video: https://www.youtube.com/shorts/rTwcDCntnYg
Struggling with low website leads for snt.sh? This short video shows how our AI can boost your traffic: https://www.youtube.com/shorts/rTwcDCntnYg
Watch this if you are struggling to get targeted leads to your Snt Sh website: https://www.youtube.com/shorts/rTwcDCntnYg
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/register/person?ref=L4EUT9FG
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.com/hu/register-person?ref=IQY5TET4
Why pay high costs for paid ads? Our AI-powered traffic service delivers engaged visitors to your site at a much lower price.
https://cutt.ly/pt2q785R
Save big with our AI-optimized service, driving location-specific visitors to your website for less than paid ad campaigns. Start now to see the impact.
https://marketingaged.com/
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.