Problem with qm remote-migrate, storage doesn't exist

fasttortoise

New Member
Feb 28, 2023
3
0
1
Hey,

I just set up my second node for Proxmox VE, so I'm trying to learn all this stuff. The nodes are part of a cluster. I've been trying to run qm remote-migrate, but I can't figure out what I'm doing wrong with the storage part.

Here is the command/script I'm trying to use:

Code:
token="sercret"
token_secret="secret"
fingerprint="secret"

qm remote-migrate 109 109 \
    'host=192.168.50.43,apitoken=PVEAPIToken='"$token"'='"$token_secret"',fingerprint='"$fingerprint" \
    --target-bridge=vmbr0 --target-storage local-lvm


I have two nodes, one is called srv01, and the other one is srv02.

Storage configuration of srv01:

Code:
root@srv01:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content backup,iso,vztmpl

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lvmthin: Storage
        thinpool Storage
        vgname Storage
        content rootdir,images
        nodes srv01

pbs: PBS
        datastore NAS
        server 192.168.50.39
        content backup
        fingerprint 
        prune-backups keep-all=1
        username root@pam

cifs: ISO-LIB
        path /mnt/pve/ISO-LIB
        server 192.168.50.15
        share Media
        content iso
        prune-backups keep-all=1
        username watcher


Storage configuration of srv02:

Code:
root@srv02:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content backup,iso,vztmpl

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lvmthin: Storage
        thinpool Storage
        vgname Storage
        content rootdir,images
        nodes srv01

pbs: PBS
        datastore NAS
        server 192.168.50.39
        content backup
        fingerprint 
        prune-backups keep-all=1
        username root@pam

cifs: ISO-LIB
        path /mnt/pve/ISO-LIB
        server 192.168.50.15
        share Media
        content iso
        prune-backups keep-all=1
        username watcher

This is the error I'm getting:
Code:
remote: storage 'local-lvm' does not exist!

Any idea what I messed up?
 
Last edited:
Hey,

I just set up my second node for Proxmox VE, so I'm trying to learn all this stuff. The nodes are part of a cluster. I've been trying to run qm remote-migrate, but I can't figure out what I'm doing wrong with the storage part.

Here is the command/script I'm trying to use:

Code:
token="sercret"
token_secret="secret"
fingerprint="secret"

qm remote-migrate 109 109 \
    'host=192.168.50.43,apitoken=PVEAPIToken='"$token"'='"$token_secret"',fingerprint='"$fingerprint" \
    --target-bridge=vmbr0 --target-storage local-lvm


I have two nodes, one is called srv01, and the other one is srv02.

Storage configuration of srv01:

Code:
root@srv01:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content backup,iso,vztmpl

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lvmthin: Storage
        thinpool Storage
        vgname Storage
        content rootdir,images
        nodes srv01

pbs: PBS
        datastore NAS
        server 192.168.50.39
        content backup
        fingerprint
        prune-backups keep-all=1
        username root@pam

cifs: ISO-LIB
        path /mnt/pve/ISO-LIB
        server 192.168.50.15
        share Media
        content iso
        prune-backups keep-all=1
        username watcher


Storage configuration of srv02:

Code:
root@srv02:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content backup,iso,vztmpl

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lvmthin: Storage
        thinpool Storage
        vgname Storage
        content rootdir,images
        nodes srv01

pbs: PBS
        datastore NAS
        server 192.168.50.39
        content backup
        fingerprint
        prune-backups keep-all=1
        username root@pam

cifs: ISO-LIB
        path /mnt/pve/ISO-LIB
        server 192.168.50.15
        share Media
        content iso
        prune-backups keep-all=1
        username watcher

This is the error I'm getting:
Code:
remote: storage 'local-lvm' does not exist!

Any idea what I messed up?

Figured it out with the help of Reddit.

The API key I made, didn't have any permissions.
 

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!