sudo vgs chroot@debian:~$ sudo vgs [sudo] password for chroot: WARNING: Device for PV m269Gt-0k3t-BlXc-Jlz0-HPOH-ljm5-BuDlEy not found or rejected by a filter. VG #PV #LV #SN Attr VSize VFree ubuntu-vg 3 0 0 wz-pn- 1.16t 1.16t
root@debian:~# vgremove ubuntu-vg WARNING: Device for PV m269Gt-0k3t-BlXc-Jlz0-HPOH-ljm5-BuDlEy not found or rejected by a filter. Volume group "ubuntu-vg" not found, is inconsistent or has PVs missing. Consider vgreduce --removemissing if metadata is inconsistent.
#
root@debian:~# pvscan WARNING: Device for PV m269Gt-0k3t-BlXc-Jlz0-HPOH-ljm5-BuDlEy not found or rejected by a filter. PV [unknown] VG ubuntu-vg lvm2 [232.14 GiB / 232.14 GiB free] PV /dev/sdb1 VG ubuntu-vg lvm2 [476.94 GiB / 476.94 GiB free] PV /dev/sdc1 VG ubuntu-vg lvm2 [476.94 GiB / 476.94 GiB free] Total: 3 [1.16 TiB] / in use: 3 [1.16 TiB] / in no VG: 0 [0 ]
#
root@debian:~# vgdisplay WARNING: Device for PV m269Gt-0k3t-BlXc-Jlz0-HPOH-ljm5-BuDlEy not found or rejected by a filter. --- Volume group --- VG Name ubuntu-vg System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 8 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 3 Act PV 2 VG Size 1.16 TiB PE Size 4.00 MiB Total PE 303620 Alloc PE / Size 0 / 0 Free PE / Size 303620 / 1.16 TiB VG UUID 2fqu5S-j5zd-Wnwf-bfkr-mupd-MyXk-DfbyCG
root@debian:~# vgremove --force ubuntu-vg WARNING: Device for PV m269Gt-0k3t-BlXc-Jlz0-HPOH-ljm5-BuDlEy not found or rejected by a filter. Volume group "ubuntu-vg" successfully removed
#
root@debian:~# mount /dev/sdb /media/ mount: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so.
#
root@debian:~# pvscan PV /dev/sdc1 lvm2 [476.94 GiB] PV /dev/sdb1 lvm2 [476.94 GiB] Total: 2 [953.88 GiB] / in use: 0 [0 ] / in no VG: 2 [953.88 GiB]
root@debian:~# pvs -a PV VG Fmt Attr PSize PFree /dev/sda1 --- 0 0 /dev/sda2 --- 0 0 /dev/sda3 --- 0 0 /dev/sdb1 lvm2 --- 476.94g 476.94g /dev/sdc1 lvm2 --- 476.94g 476.94g root@debian:~# pvs PV VG Fmt Attr PSize PFree /dev/sdb1 lvm2 --- 476.94g 476.94g /dev/sdc1 lvm2 --- 476.94g 476.94g
root@debian:~# service lvm2 start Failed to start lvm2.service: Unit lvm2.service is masked.
#