Missing VM's disk at ISCSI storage after migration

StormLXC

Member
Sep 23, 2020
7
1
6
37
I tried to migrate a vm with disk located at shared storage (lvm over iscsi). But migration ended with error
Снимок экрана 2021-09-27 в 13.46.52.png

And there was no logical volume vm-100-disk-0 in violin-dev VG.

My iscsi-storage is online and i can see available lun (which contains VM's disk)
Снимок экрана 2021-09-27 в 17.43.39.png

I tried removing violin-dev VG and created another LVM violin-am (pointing to ISCSI LUN containing missing vm's disk) via GUI

Снимок экрана 2021-09-27 в 17.45.33.png

For some reason violin-am storage content shown as empty 0Bytes but my storage array says that LUN is fiiled with 58G of data with is exactly the size of missing VM's disk.

Снимок экрана 2021-09-27 в 17.48.56.png

Any ideas?
 
Last edited:
So it seems that your only question is why the array says that space is used but the OS/PVE sees disk as empty?
Most likely in your cleanup process you deleted only the "metadata" of the volume but the actual blocks that were written to storage were not released/freed. The OS knows those blocks are "free" it will write to them as it needs to. If you want to release those blocks you, most likely, need to Trim the disk:

A trim command allows an operating system to inform a solid-state drive which blocks of data are no longer considered to be 'in use' and therefore can be erased internally. Trim was introduced soon after SSDs were introduced. Wikipedia

Review your vendor information regarding trim support and capabilities.


Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox