Fixing SMB/CIFS Share Disconnect Issue in Proxmox 8+

Fix frustrating SMB/CIFS share disconnections in Proxmox 8+. Discover a reliable workaround to stabilize shares and prevent disruptions in production environments. Follow a simple step-by-step guide to resolve the issue and ensure seamless connectivity.

XX
2 min read
TechnologyProxmoxHomelab

Resolving SMB/CIFS Share Disconnections in Proxmox 8+

If you're running Proxmox 8 or later, you may have encountered the frustrating issue of SMB/CIFS shares disconnecting at irregular intervals. This can be particularly problematic in production environments where stability is paramount. Despite extensive online searches, finding a straightforward solution can seem like a daunting task. However, after conducting thorough testing and experimentation, a reliable workaround has been identified.

To address this issue, you'll need to create an SMB/CIFS share via the Proxmox GUI, but with a crucial modification to the standard process. Instead of enabling the share immediately, you'll first create a corresponding fstab entry and then enable the share after a reboot. This approach has proven to stabilize the shares and prevent disconnections, providing a much-needed solution for Proxmox users.

Here's a step-by-step guide to implementing this workaround:

Step 1: Create an SMB/CIFS Share in Proxmox GUI

  1. Open the Proxmox GUI and create an SMB/CIFS share as you normally would, following the standard procedure.
  2. When you reach the point of saving the share, refrain from enabling it right away.
  3. Take note of the name of the share you created.
  4. Reboot your Proxmox server to ensure a clean start.

Step 2: Create an fstab Entry

  1. SSH into your Proxmox server or access the command line interface.
  2. Open the /etc/fstab file in a text editor (e.g., nano) using the following command: nano /etc/fstab
  3. Add the following line to the end of the file, replacing the placeholders with your specific information:
//192.168.1.XX/Share/Proxmox-Folder /mnt/pve/"Name of the share you created in GUI" cifs username=XXXXXX,password=XXXXXX,noserverino,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

Replace:

  • //192.168.1.xx/Share/Proxmox-Folder with the actual SMB/CIFS share path.
  • Name of the share you created in GUI with the name of the share from the Proxmox GUI.
  • XXXXXX with your username and password for the SMB/CIFS share.
  1. Save the changes by pressing Ctrl+O and then exit the text editor by pressing Ctrl+X.
  2. Reboot your Proxmox server to apply the changes.

By following this workaround, you can effectively address the issue of SMB/CIFS shares disconnecting in Proxmox 8+. Creating an fstab entry after a reboot appears to stabilize the shares and prevent disconnections. While this solution has been successful for some users, it's essential to note that individual configurations may vary. Nonetheless, this method is a promising step toward resolving this common issue and maintaining a stable Proxmox environment.