Removal of LVM that is not listed in lvs

SecConIT

Active Member
Feb 23, 2020
13
2
43
www.conram.it
Got a spare drive for my Proxmox setup so I wanted to add that as additional (backup) storage in lvmthin, but added it to lvm instead by mistake. It has not been GPT initialized, but now I fail to remove it.

trying to delete a volume group in LVM called lvmroot on /dev/sdb/

root@homered-conram:~# lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-a-tz-- 59.66g 0.00 1.59
[data_tdata] pve Twi-ao---- 59.66g
[data_tmeta] pve ewi-ao---- 1.00g
[lvol0_pmspare] pve ewi------- 1.00g
root pve -wi-ao---- 27.75g
swap pve -wi-ao---- 8.00g


1582467162683.png

root@homered-conram:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- <111.29g 13.87g
/dev/sdb lvmroot lvm2 a-- <111.79g <111.79g
 
and now the disk view gives me:

Code:
command '/sbin/lvs -S 'lv_name=~^osd-' -o devices,lv_name,lv_tags --noheadings --readonly --separator ';'' failed: exit code 5 (500)

I don't get it, the system has been up an hour and I already broke it.