Unable to delete an unused VM disk sata lvm

devrimer

Member
Mar 19, 2022
25
8
8
Sofia
devrimer.co
Hello,

I have problem with one of my disk. and I cannot delete it from VM in proxmox.

I Detach that problematic SATA disk in the VM and it is in 'unused mode' at the moment.
and when I try to remove the disk and I am getting this error:
lvremove 'sea1tb-1/vm-888-disk-0' error: Failed to write VG sea1tb-1.

and I tired this command as well:
qm set 888 --delete unused0

and I get this output with error:
update VM 888: -delete unused0
Error writing device /dev/sdb at 12800 length 1024.
WARNING: bcache_invalidate: block (0, 0) still dirty.
Failed to write metadata to /dev/sdb.
WARNING: Failed to write an MDA of VG sea1tb-1.
lvremove 'sea1tb-1/vm-888-disk-0' error: Failed to write VG sea1tb-1.

I wont use this disk in my server anymore. therefore I need help to remove this disk from VM and form proxmox as well.
then I will remove the physical disk from my desktop pc. and it will go to trash :)

I need you help please :)