Recently I saw a
Running
And VGS does not show anything about this volume group.
Next, I tried to remove them by
And it gave following error
Here is the output of vgs
And the output of dmsetup ls
I tried using lsof to find the processes that are using these volumes which might be giving the
so
The VG that I am trying to remove has previously been assigned to vm101, now that VM is not running. but a different container is running with that id now
buffer io error on /dev/dm-xx
error on the terminal in the host.Running
dmsetup info /dev/dm-xx
shows that it corresponds to a previous VGAnd VGS does not show anything about this volume group.
Next, I tried to remove them by
dmsetup remove -f /dev/dm-0 /dev/dm-13
And it gave following error
Bash:
device-mapper: remove ioctl on raid0_lvmThinPool-raid0_lvmThinPool_tmeta failed: Device or resource busy
Command failed.
Here is the output of vgs
Bash:
root@proxmox:~# dmsetup info /dev/dm-0
Name: raid0_lvmThinPool-raid0_lvmThinPool_tmeta
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 253, 0
Number of targets: 1
UUID: LVM-ahnisMfKYiF98Mn0IbpE5nHa5PWsc2dIkeC31S5UmHbvBp13IDSG1nvdnB8xJA1y-tmeta
root@proxmox:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- <446.57g <16.00g
raid5_lvmThinPool 1 2 0 wz--n- 17.46t 512.00m
raid5_lvmThinPool2 1 2 0 wz--n- 17.46t 512.00m
And the output of dmsetup ls
Bash:
root@proxmox:~# dmsetup ls
pve-data (253:8)
pve-data_tdata (253:7)
pve-data_tmeta (253:6)
pve-root (253:5)
pve-swap (253:4)
raid0_lvmThinPool-raid0_lvmThinPool-tpool (253:13)
raid0_lvmThinPool-raid0_lvmThinPool_tdata (253:2)
raid0_lvmThinPool-raid0_lvmThinPool_tmeta (253:0)
raid5_lvmThinPool-raid5_lvmThinPool (253:10)
raid5_lvmThinPool-raid5_lvmThinPool-tpool (253:9)
raid5_lvmThinPool-raid5_lvmThinPool_tdata (253:3)
raid5_lvmThinPool-raid5_lvmThinPool_tmeta (253:1)
raid5_lvmThinPool-vm--101--disk--0 (253:12)
raid5_lvmThinPool2-raid5_lvmThinPool2 (253:18)
raid5_lvmThinPool2-raid5_lvmThinPool2-tpool (253:17)
raid5_lvmThinPool2-raid5_lvmThinPool2_tdata (253:15)
raid5_lvmThinPool2-raid5_lvmThinPool2_tmeta (253:11)
raid5_lvmThinPool2-vm--100--disk--0 (253:19)
I tried using lsof to find the processes that are using these volumes which might be giving the
Device or resource busy
error.so
lsof | grep 253,13
failed with following error
Bash:
lsof: no pwd entry for UID 101000
lsof: no pwd entry for UID 101000
lsof: no pwd entry for UID 101000
The VG that I am trying to remove has previously been assigned to vm101, now that VM is not running. but a different container is running with that id now