Mounting SMB share (pvesm add cifs vs fstab)

bonkas

Renowned Member
Mar 31, 2015
6
1
68
Hey guys,

I have a few VM's and CT's which share common SMB/CIFS shares.

I have these mapped through a fstab file on the individual VM/CT's but this is a pain if a remote device goes offline for a bit the shares are never re-mounted and manual intervention is required.

So I have a few questions on a better way to handle this.

1. Continue to use fstab but on the proxmox host and create a mountpoint on my VM/CT's to pass this mount through to the guest.
  • This is the mount method I have been using on the individual guests:
    Code:
    //192.168.XX.XX/media /mnt/media       cifs    noperm,iocharset=utf8,rw,credentials=/root/.storage_credentials,uid=root,gid=root,file_mode=0660,dir_mode=0770 0       0

2. Use "pvesm add cifs" methos to add the storage in the proxmox storage browser as from what I have read, this will handle remounting if required.
So which method is the best more efficient way to go here?
 
  • Like
Reactions: MasterMorgan

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!