[SOLVED] Bulk migrate to another disk

Altremo

Member
May 16, 2021
6
1
8
28
Good day to whomever deem this thread worthy of guru knowledge!

I am trying to bulk migrate my VMs from one old node to another. However, I do see the issue is that drive names are different. It is trying to migrate from local-lvm to local-lvm, however, the name of new storage is "Main-VMs". Is it possible to change settings for migration somehow and tell ProxMox to migrate to this drive?

Code:
2023-08-04 21:29:27 ERROR: storage migration for 'local-lvm:vm-100-disk-0' to storage 'local-lvm' failed - command 'set -o pipefail && pvesm export local-lvm:vm-100-disk-0 raw+size - -with-snapshots 0 | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=ProxMox7' root@91.92.137.110 -- pvesm import local-lvm:vm-100-disk-0 raw+size - -with-snapshots 0 -allow-rename 1' failed: exit code 255
2023-08-04 21:29:27 aborting phase 1 - cleanup resources
2023-08-04 21:29:27 ERROR: migration aborted (duration 00:00:03): storage migration for 'local-lvm:vm-100-disk-0' to storage 'local-lvm' failed - command 'set -o pipefail && pvesm export local-lvm:vm-100-disk-0 raw+size - -with-snapshots 0 | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=ProxMox7' root@91.92.137.110 -- pvesm import local-lvm:vm-100-disk-0 raw+size - -with-snapshots 0 -allow-rename 1' failed: exit code 255
TASK ERROR: migration aborted
 

Attachments

  • MainVMs.png
    MainVMs.png
    12.3 KB · Views: 11
Hi,

Is it possible to change settings for migration somehow and tell ProxMox to migrate to this drive?
Yes, you can using `--target-storage` flag using PCT or QM CLI e.g:

Bash:
# For CTs
pct migrate <CTID> <Target-Node> --target-storage Main-VMs
# For VMs
qm migrate <VMID> <Target-Node> --targetstorage Main-VMs

for more info see man page for pct/qm
 
  • Like
Reactions: Altremo
Hi,


Yes, you can using `--target-storage` flag using PCT or QM CLI e.g:

Bash:
# For CTs
pct migrate <CTID> <Target-Node> --target-storage Main-VMs
# For VMs
qm migrate <VMID> <Target-Node> --targetstorage Main-VMs

for more info see man page for pct/qm
Thank you very much for your answer!
 
Last edited:
  • Like
Reactions: Moayad

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!