pvesm

pemadiot

Member
Feb 16, 2021
5
0
6
53
Hello,

I'm trying to mount an CIFS shared space onto PROXMOX cluster storage.

  • scanning works fine :
    pvesm scan cifs '<servername>' --username '<DOMAIN>\<USERNAME>' --password
    Enter Password: *******************
    ...
    Lisf_of_share$
  • pvesm add cifs <ID> --domain <DOMAIN> --server '<servername>' --share '<sharename>$' --username '<DOMAIN\USERNAME>' --password
    Enter Password: *******************
    create storage failed: error during cfs-locked 'file-storage_cfg' operation: storage '<ID>' is not online
I tried variations on the username to include or not the domain.
I tried from the PROXMOX VE 6.3 cluster storage admin web interface to do similar.
The share in this later case is created and enabled and is listed with a question mark as not being functional
I configure so as there is no backup policy, and bound the CIFS space to be visible only on one node of the cluster where it'll be used from a local VM.

I added various permission to all, and since i selected all types of contents, trying to navigate to each one in the Admin GUI shows invariably the error :
mkdir /mnt/pve/<ID>/<type>: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 1170. (500)

Since the user in question is allowed only read access on the share, it makes sense, but then, when i try to list content under it shows the content
ls /mnt/pve/<ID>

this is great, but i'm a bit unconfortable as to why do we have to choose at least one storage type?
feature seems to be working, but in weird way.

Now i'm trying to figure out how to mount this to local node Debian Linux not sure what kind of /etc/fstab entry should look like.

Compared to the /etc/systemd/system/mnt-id.mount systemd CIFS mount mechanism alternative.
Anyone has experience in choosing best alternative, and elaborate on PROs and CONs of options.

looking forward your experience

best regards
 

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!