Hi,
TL;DR: No VM with ID 171 present but raw devices in /dev/mapper still shown
There is no VM with VM ID 171 but the raw devices are still present in /dev/mapper. Strangely enough on two different Volumes. I stumpeld across this when trying to create a new VM and it automatically filled in 171 as VM ID. I'm able to create new VMs with another ID.
lvremove does not work:
root@pm-01:~# lvremove /dev/mapper/vg--cluster01--storage01-vm--171--disk--0
Failed to find logical volume "vg-cluster01-storage01/vm-171-disk-0"
Thanks & Cheers,
Daniel
TL;DR: No VM with ID 171 present but raw devices in /dev/mapper still shown
Code:
~$ ssh root@pm-01 qm config 171
Configuration file 'nodes/pm-01/qemu-server/171.conf' does not exist
~$ ssh root@pm-02 qm config 171
Configuration file 'nodes/pm-02/qemu-server/171.conf' does not exist
~$ ssh root@pm-03 qm config 171
Configuration file 'nodes/pm-03/qemu-server/171.conf' does not exist
~$ ssh root@pm-04 qm config 171
Configuration file 'nodes/pm-04/qemu-server/171.conf' does not exist
~$ ssh root@pm-05 qm config 171
Configuration file 'nodes/pm-05/qemu-server/171.conf' does not exist
~$ ssh root@pm-06 qm config 171
Configuration file 'nodes/pm-06/qemu-server/171.conf' does not exist
~$ ssh root@pm-01 lvs|grep 171
~$ ssh root@pm-02 lvs|grep 171
~$ ssh root@pm-03 lvs|grep 171
~$ ssh root@pm-04 lvs|grep 171
~$ ssh root@pm-05 lvs|grep 171
~$ ssh root@pm-06 lvs|grep 171
~$ ssh root@pm-06 ls /dev/mapper/*171*
/dev/mapper/vg--cluster01--s4h-vm--171--disk--0
/dev/mapper/vg--cluster01--s4h-vm--171--disk--1
~$ ssh root@pm-05 ls /dev/mapper/*171*
/dev/mapper/vg--cluster01--storage01-vm--171--disk--0
~$ ssh root@pm-04 ls /dev/mapper/*171*
ls: cannot access '/dev/mapper/*171*': No such file or directory
~$ ssh root@pm-03 ls /dev/mapper/*171*
/dev/mapper/vg--cluster01--storage01-vm--171--disk--0
~$ ssh root@pm-02 ls /dev/mapper/*171*
/dev/mapper/vg--cluster01--storage01-vm--171--disk--0
$ ssh root@pm-01 ls /dev/mapper/*171*
/dev/mapper/vg—cluster01--storage01-vm--171--disk--0
There is no VM with VM ID 171 but the raw devices are still present in /dev/mapper. Strangely enough on two different Volumes. I stumpeld across this when trying to create a new VM and it automatically filled in 171 as VM ID. I'm able to create new VMs with another ID.
lvremove does not work:
root@pm-01:~# lvremove /dev/mapper/vg--cluster01--storage01-vm--171--disk--0
Failed to find logical volume "vg-cluster01-storage01/vm-171-disk-0"
Thanks & Cheers,
Daniel
Last edited: