[PROXMOX] Migration problems between 2 nodes

Good evening,

I’m trying to migrate a vm between 2 nodes.
I removed all backups and snapshot of the vm from the system.
The vm is 60G in size. When i do the migration i get the following error

2018-09-06 21:53:40 starting migration of VM 103 to node ‘virtual’ (10.10.10.5)
2018-09-06 21:53:40 found local disk ‘storage:103/vm-103-disk-1.qcow2’ (in current VM config)
2018-09-06 21:53:40 copying disk images
Formatting ‘/mnt/storage/images/103/vm-103-disk-1.qcow2’, fmt=qcow2 size=64424509440 cluster_size=65536 preallocation=metadata lazy_refcounts=off refcount_bits=16
dd: error writing ‘/mnt/storage/images/103/vm-103-disk-1.qcow2’: No space left on device
159+69054 records in
159+69053 records out
2231918592 bytes (2.2 GB, 2.1 GiB) copied, 311.235 s, 7.2 MB/s
command ‘dd ‘of=/mnt/storage/images/103/vm-103-disk-1.qcow2’ ‘conv=sparse’ ‘bs=64k’’ failed: exit code 1
command ‘dd ‘if=/mnt/storage/images/103/vm-103-disk-1.qcow2’ ‘bs=4k’’ failed: got signal 13
send/receive failed, cleaning up snapshot(s)…
2018-09-06 21:58:56 ERROR: Failed to sync data - command ‘set -o pipefail && pvesm export storage:103/vm-103-disk-1.qcow2 qcow2+size - -with-snapshots 1 | /usr/bin/ssh -e none -o ‘BatchMode=yes’ -o ‘HostKeyAlias=virtual’ [email protected] – pvesm import storage:103/vm-103-disk-1.qcow2 qcow2+size - -with-snapshots 1’ failed: exit code 1
2018-09-06 21:58:56 aborting phase 1 - cleanup resources
2018-09-06 21:58:56 ERROR: found stale volume copy ‘storage:103/vm-103-disk-1.qcow2’ on node ‘virtual’
2018-09-06 21:58:56 ERROR: migration aborted (duration 00:05:17): Failed to sync data - command ‘set -o pipefail && pvesm export storage:103/vm-103-disk-1.qcow2 qcow2+size - -with-snapshots 1 | /usr/bin/ssh -e none -o ‘BatchMode=yes’ -o ‘HostKeyAlias=virtual’ [email protected] – pvesm import storage:103/vm-103-disk-1.qcow2 qcow2+size - -with-snapshots 1’ failed: exit code 1
TASK ERROR: migration aborted

I do have to note my second node “virtual” runs from a usb stick with a size of 32G.
But for storage i set up a ssd size 230G

How can i get my vm to the “virtual” node.
I tried to set the first node storage to shared, and it will migrate the container. But i need to move everything.
I want to take the first node out of service.

I test with a vm with 32G container and i move to the ssd without any problems.
So i don’t think my usb install is the issue…i hope it is.
Anyway i hope some one can help me to move this AD server.

thanks in advance…

Do u have storage for both nodes mounted to the same location?

what do u mean?

The cluster looks like this;
pve2 is not exciting.
storage has the disk images for pve1 and is located on pve1 and is not shared
virtual_ssd has the disk images for virtual and is located on virtual is shared

cluster

error says its trying to put copy of the disk in the storage location. If there is not enough free space in storage … then migration fails. Hence error about writing disk there.

run df -h on both nodes

This is the output

you have /mnt/storage on first node. and /mnt/ssd on second node.

Fix that and migration should work.

But i don’t know what i should fix.
I’m a linux/proxmox noob.

I tried to look online for solutions, but google is no help for me :cry:

need to reconfigure your host storage so both disks are mounted on each host at the same location… other VMs will have to shutdown/moved manually most likely.

U mean storage on pve1 has to be shared with virtual?

actually a hack solution might be this:
on virtual host node.

ln -s /mnt/ssd /mnt/storage

no.
each host has local storage only. That will just throw a different error when it tries to use the storage as if it was shared.

unless the actual storage is shared b/t both nodes… dont mark it as shared.

I marked all drives to be not shared and did ln -s /mnt/ssd /mnt/storage on the vitrual node

run on virtual node

ls -la /mnt/

okey what where looking at/for?
ls

dont think it worked… storage should be a link pointing to /mnt/ssd

the folder ssd, storage and vserver already excised in /mnt. that did not change

i re-did ln -s /mnt/ssd/mnt/storage
and got this response:
ls

is this what you expected?
ls2

no… remove that

should have been /mnt/ssd

not /mnt/ssd/mnt/storage

that is also not in the /mnt folder