[SOLVED] pvesh set /storage issues

Jul 3, 2014
99
1
6
Toronto, Ontario, Canada
  • storageName = 'Backups'
    exportedMountPoint = '/Volumes/Storage/.../ProxmoxBackups'
    cmd = "pvesh set /storage/#{storageName} -server '#{ip}' -storage #{storageName} \ -export #{exportedMountPoint} \ -content 'images' -type 'nfs' -options 'vers=3'
    "

    This should work, according to http://pve.proxmox.com/pve2-api-doc/
    (See https://d2oawfjgoy88bd.cloudfront.n...ezOFCECRSQ__&Key-Pair-Id=APKAJHEJJBIZWFB73RSA)

    I tried tracing what the browser does to get this set, but they fail.

    Then I try various permutations...
    Code:
    [COLOR=#222222][FONT=Monaco]Running: ssh root@10.0.1.26 pvesh set /storage/Backups -server '10.0.1.26' -storage Backups                                   -export /Volumes/Storage/martincleaver/ProxmoxBackups                                   -content 'images' -type 'nfs' -options 'vers=3'[/FONT][/COLOR][FONT=Monaco]Unknown option: storage[/FONT]
    [FONT=Monaco]Unknown option: export[/FONT]
    [FONT=Monaco]Unknown option: type[/FONT]
    [FONT=Monaco]400 unable to parse option[/FONT]
    [FONT=Monaco]set storage/Backups  [OPTIONS][/FONT]
    [FONT=Monaco]mount-nfs command ran[/FONT]
    [FONT=Monaco]martincleaver@MartinCleaversMBP.local:~/SoftwareDevelopment/proxmox-setup 14:48:44 784$ bundle exec bin/proxmox-setup mountnfs --ip 10.0.1.26[/FONT]
    [FONT=Monaco]IP=10.0.1.26[/FONT]
    [FONT=Monaco]Running: ssh root@10.0.1.26 pvesh set /storage -server '10.0.1.26' -storage Backups                                   -export /Volumes/Storage/martincleaver/ProxmoxBackups                                   -content 'images' -type 'nfs' -options 'vers=3'[/FONT]
    [FONT=Monaco]no 'set' handler for 'storage'[/FONT]
    [FONT=Monaco]mount-nfs command ran[/FONT]
    [FONT=Monaco]martincleaver@MartinCleaversMBP.local:~/SoftwareDevelopment/proxmox-setup 14:50:08 785$ bundle exec bin/proxmox-setup mountnfs --ip 10.0.1.26[/FONT]
    [FONT=Monaco]IP=10.0.1.26[/FONT]
    [FONT=Monaco]Running: ssh root@10.0.1.26 pvesh create /storage -server '10.0.1.26' -storage Backups                                   -export /Volumes/Storage/martincleaver/ProxmoxBackups                                   -content 'images' -type 'nfs' -options 'vers=3'[/FONT]
    [FONT=Monaco]create storage failed: mount error: mount.nfs: requested NFS version or transport protocol is not supported[/FONT]
    [FONT=Monaco]mount-nfs command ran[/FONT]
    [FONT=Monaco]martincleaver@MartinCleaversMBP.local:~/SoftwareDevelopment/proxmox-setup 14:50:29 786$ bundle exec bin/proxmox-setup mountnfs --ip 10.0.1.26[/FONT]
    [FONT=Monaco]IP=10.0.1.26[/FONT]
    [FONT=Monaco]Running: ssh root@10.0.1.26 pvesh create /storage -server '10.0.1.26' -storage Backups                                   -export /Volumes/Storage/martincleaver/ProxmoxBackups                                   -content 'images' -type 'nfs'[/FONT]
    [FONT=Monaco]
    [/FONT]
    [FONT=Monaco]create storage failed: mount error: got lock timeout - aborting command[/FONT]
    [FONT=Monaco]mount-nfs command ran[/FONT]
    [FONT=Monaco]martincleaver@MartinCleaversMBP.local:~/SoftwareDevelopment/proxmox-setup 14:55:10 787$ [/FONT]
    [FONT=Monaco]martincleaver@MartinCleaversMBP.local:~/SoftwareDevelopment/proxmox-setup 14:55:10 787$ bundle exec bin/proxmox-setup mountnfs --ip 10.0.1.26[/FONT]
    [FONT=Monaco]IP=10.0.1.26[/FONT]
    [FONT=Monaco]Running: ssh root@10.0.1.26 pvesh create /storage -server '10.0.1.26' -storage Backups                                   -export /Volumes/Storage/martincleaver/ProxmoxBackups                                   -content 'images' -type 'nfs'[/FONT]
    [FONT=Monaco]create storage failed: mount error: got lock timeout - aborting command[/FONT]
    [COLOR=#222222][FONT=Monaco]mount-nfs command ran
    [/FONT][/COLOR]
    Hints please.
 
Last edited: