Can't mount CIFS share after upgrade

Discussion in 'Proxmox VE: Installation and configuration' started by Razva, Oct 10, 2018.

  1. Razva

    Razva Member

    Joined:
    Dec 3, 2013
    Messages:
    65
    Likes Received:
    2
    Hello,

    I have a CIFS share which worked great until tonight's upgrade and reboot.

    When using 'mount.cifs' the share works as expected. Example:
    Code:
    root@pmx3-lim:~# mount.cifs -o user=USERNAME,pass=PASSWORD //1.2.3.4 /mnt/pve/stbox
    root@pmx3-lim:/mnt/pve/stbox# ls
    dump  template
    
    So the share works properly.

    Now, when using 'cifsscan' I get:
    Code:
    root@pmx1-lim:/mnt/pve/stbox# pvesm cifsscan 1.2.3.4 --username USERNAME --password
    Enter Password: ****************
    root@pmx1-lim:/mnt/pve/stbox# echo $?
    0
    root@pmx1-lim:/mnt/pve/stbox# /usr/bin/smbclient //1.2.3.4 -d 0 -m smb3 -U USERNAME -c 'echo 1 0'
    Enter USERNAME's password:
    Domain=[PUBLICBACKUP158] OS=[] Server=[]
    On 'pvesm add cifs' I get:
    Code:
    create storage failed: error with cfs lock 'file-storage_cfg': storage 'test' is not online
    Same goes with the WebUI.

    Any hints on how to solve this?

    Thanks!
     
    #1 Razva, Oct 10, 2018
    Last edited: Oct 10, 2018
  2. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    3,862
    Likes Received:
    230
    Hi,
    You server does not answer to this call.
    Code:
    smbclient -m  smb3 -d 0 -L <serverip> -N
    [Code]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Razva

    Razva Member

    Joined:
    Dec 3, 2013
    Messages:
    65
    Likes Received:
    2
    Thanks for your reply.

    It does answer properly:

    Code:
    root@pmx1-lim:~# smbclient -m  smb3 -d 0 -L MY_CIFS_IP -U MY_USERNAME
    Enter USERNAME's password:
    Domain=[PUBLICBACKUP158] OS=[] Server=[]
    
           Sharename       Type      Comment
           ---------       ----      -------
           IPC$            IPC       IPC Service (Hetzner Samba Server)
    Domain=[PUBLICBACKUP158] OS=[] Server=[]
    
           Server               Comment
           ---------            -------
    
           Workgroup            Master
           ---------            -------
    Note that the IP I'm posting is just a dummy IP.

    Any other ideas/solutions?

    Thank you!
     
    #3 Razva, Oct 11, 2018
    Last edited: Oct 11, 2018
  4. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    3,862
    Likes Received:
    230
    You have to mount it manually and use it as dir storage.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Razva

    Razva Member

    Joined:
    Dec 3, 2013
    Messages:
    65
    Likes Received:
    2
    That's exactly what I did and it's fine.

    The main question is why did it worked until the last/latest upgrade and reboot? It worked just fine for more than 4 months.
     
  6. Razva

    Razva Member

    Joined:
    Dec 3, 2013
    Messages:
    65
    Likes Received:
    2
    Can you please let me know why did it initially worked, and it doesn't work right now? Thank you
     
  7. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    3,862
    Likes Received:
    230
    I can only tell you here it is working without a problem.
    I guess the configuration on the server side has changed because of the command
    "smbclient" has nothing to do with Proxmox.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice