Hi,
I'm trying to move a VM disk from one SMB share to another. But i have a problem with that, the disk in question is 10TB.
I did my research and tried to move it several times without success. Here is what i did:
Try preallocation off
Try moving it as qcow or raw
Try to shut down the machine then migrate
I have different logs each time
----------------------------------------------------------------
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=off compression_type=zlib size=10737418240000 lazy_refcounts=off refcount_bits=16
drive mirror is starting for drive-ide1
drive-ide1: Cancelling block job
interrupted by signal
TASK ERROR: storage migration failed: mirroring error: VM XXX qmp command 'drive-mirror' failed - got timeout
--------------------------------------------------------------------
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
command '/usr/bin/qemu-img info '--output=json' /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' failed: got timeout
could not parse qemu-img info command output for '/mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/PVE/Storage/Plugin.pm line 954.
Use of uninitialized value $size in division (/) at /usr/share/perl5/PVE/QemuServer.pm line 8148.
qemu-img: Could not open '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2': Could not open '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2': No such file or directory
could not parse qemu-img info command output for '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/PVE/Storage/Plugin.pm line 954.
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.raw', fmt=raw size=0 preallocation=off
drive mirror is starting for drive-ide1
drive-ide1: Cancelling block job
-------------------------------------------------------------------
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
command '/usr/bin/qemu-img info '--output=json' /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' failed: got timeout
could not parse qemu-img info command output for '/mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/PVE/Storage/Plugin.pm line 954.
Use of uninitialized value $size in division (/) at /usr/share/perl5/PVE/QemuServer.pm line 8148.
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-1.raw', fmt=raw size=0 preallocation=off
Use of uninitialized value $size in multiplication (*) at /usr/share/perl5/PVE/QemuServer.pm line 7812.
Use of uninitialized value $value in numeric gt (>) at /usr/share/perl5/PVE/Format.pm line 74.
Use of uninitialized value $value in sprintf at /usr/share/perl5/PVE/Format.pm line 79.
transferred 0.0 B of 0.0 B (0.00%)
qemu-img: output file is smaller than input file
TASK ERROR: storage migration failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f raw -O raw /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw zeroinit:/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-1.raw' failed: exit code 1
---------------------------------------------------------------------
The only one i got kinda close was this one
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=off compression_type=zlib size=10737418240000 lazy_refcounts=off refcount_bits=16
transferred 0.0 B of 9.8 TiB (0.00%)
TASK ERROR: storage migration failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f raw -O qcow2 /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw zeroinit:/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2' failed: interrupted by signal
But after 2 hours at 0% i canceled the job.
--------------------------------------------------------------------------
My idea since this doesn't work is to shut down the VM, migrate the file via FTP from the first server to the second one and then update the VM config file in /etc/pve/nodes/<node_name>/qemu-server/<vm_id> . conf
Can i do it that way ? Do you think that this is a good idea ?
Thank you for your help
I'm trying to move a VM disk from one SMB share to another. But i have a problem with that, the disk in question is 10TB.
I did my research and tried to move it several times without success. Here is what i did:
Try preallocation off
Try moving it as qcow or raw
Try to shut down the machine then migrate
I have different logs each time
----------------------------------------------------------------
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=off compression_type=zlib size=10737418240000 lazy_refcounts=off refcount_bits=16
drive mirror is starting for drive-ide1
drive-ide1: Cancelling block job
interrupted by signal
TASK ERROR: storage migration failed: mirroring error: VM XXX qmp command 'drive-mirror' failed - got timeout
--------------------------------------------------------------------
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
command '/usr/bin/qemu-img info '--output=json' /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' failed: got timeout
could not parse qemu-img info command output for '/mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/PVE/Storage/Plugin.pm line 954.
Use of uninitialized value $size in division (/) at /usr/share/perl5/PVE/QemuServer.pm line 8148.
qemu-img: Could not open '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2': Could not open '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2': No such file or directory
could not parse qemu-img info command output for '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/PVE/Storage/Plugin.pm line 954.
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.raw', fmt=raw size=0 preallocation=off
drive mirror is starting for drive-ide1
drive-ide1: Cancelling block job
-------------------------------------------------------------------
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
command '/usr/bin/qemu-img info '--output=json' /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' failed: got timeout
could not parse qemu-img info command output for '/mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/PVE/Storage/Plugin.pm line 954.
Use of uninitialized value $size in division (/) at /usr/share/perl5/PVE/QemuServer.pm line 8148.
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-1.raw', fmt=raw size=0 preallocation=off
Use of uninitialized value $size in multiplication (*) at /usr/share/perl5/PVE/QemuServer.pm line 7812.
Use of uninitialized value $value in numeric gt (>) at /usr/share/perl5/PVE/Format.pm line 74.
Use of uninitialized value $value in sprintf at /usr/share/perl5/PVE/Format.pm line 79.
transferred 0.0 B of 0.0 B (0.00%)
qemu-img: output file is smaller than input file
TASK ERROR: storage migration failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f raw -O raw /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw zeroinit:/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-1.raw' failed: exit code 1
---------------------------------------------------------------------
The only one i got kinda close was this one
create full clone of drive ide1 (FILERX-SMB:XXX/vm-XXX-disk-0.raw)
Formatting '/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=off compression_type=zlib size=10737418240000 lazy_refcounts=off refcount_bits=16
transferred 0.0 B of 9.8 TiB (0.00%)
TASK ERROR: storage migration failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f raw -O qcow2 /mnt/pve/FILERX-SMB/images/XXX/vm-XXX-disk-0.raw zeroinit:/mnt/pve/FILERY-SMB/images/XXX/vm-XXX-disk-0.qcow2' failed: interrupted by signal
But after 2 hours at 0% i canceled the job.
--------------------------------------------------------------------------
My idea since this doesn't work is to shut down the VM, migrate the file via FTP from the first server to the second one and then update the VM config file in /etc/pve/nodes/<node_name>/qemu-server/<vm_id> . conf
Can i do it that way ? Do you think that this is a good idea ?
Thank you for your help