Unable to delete an unused VM disk sata lvm

devrimer

Member
Mar 19, 2022
16
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 :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!