VM qcow2 disk crash

Hi
I am using OpenNebula 5.8 and today got a serious issue with qcow2 disk. One of my running VM with qcow2 disk show crashed. I found the vm disk was full and tried to resize the disk but no luck.
Mon Feb 1 00:04:01 2021 [Z0][VM][I]: New state is ACTIVE
Mon Feb 1 00:04:01 2021 [Z0][VM][I]: New LCM state is HOTPLUG_EPILOG_POWEROFF
Mon Feb 1 00:04:02 2021 [Z0][LCM][I]: VM Disk successfully detached.
Mon Feb 1 00:04:02 2021 [Z0][VM][I]: New state is POWEROFF
Mon Feb 1 00:04:02 2021 [Z0][VM][I]: New LCM state is LCM_INIT
Mon Feb 1 00:04:27 2021 [Z0][VM][I]: New state is ACTIVE
Mon Feb 1 00:04:27 2021 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Mon Feb 1 00:04:27 2021 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/159/deployment.37
Mon Feb 1 00:04:28 2021 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Mon Feb 1 00:04:29 2021 [Z0][VMM][I]: ExitCode: 0
Mon Feb 1 00:04:29 2021 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Feb 1 00:04:32 2021 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/100/159/deployment.37’ ‘node4’ 159 node4
Mon Feb 1 00:04:32 2021 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/100/159/deployment.37
Mon Feb 1 00:04:32 2021 [Z0][VMM][I]: error: internal error: early end of file from monitor, possible problem: 2021-01-31T18:04:31.722116Z qemu-system-x86_64: -drive file=/var/lib/one//datastores/100/159/disk.1,format=qcow2,if=none,id=drive-ide0-1-0,cache=none: qcow2: Image is corrupt; cannot be opened read/write
Mon Feb 1 00:04:32 2021 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/100/159/deployment.37
Mon Feb 1 00:04:32 2021 [Z0][VMM][I]: ExitCode: 255
Mon Feb 1 00:04:33 2021 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon Feb 1 00:04:33 2021 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/100/159/deployment.37
Mon Feb 1 00:04:33 2021 [Z0][VM][I]: New state is POWEROFF
Mon Feb 1 00:04:33 2021 [Z0][VM][I]: New LCM state is LCM_INIT

Have you made a copy of the disk?
what is datastore type your are using?

I am using the default shared datastore and tried to copy the disk but the output is the same.

if you use “system” file usually transferred via ssh. and this is slow and unstable.
I had similar issue.
Now I’m using only qcow2_shard