디스크 2개와 VG 2개가 있는 VM이 있는데 디스크에 PV(파티션 없음)가 있습니다. OS는 CentOS 7입니다. 이제 디스크를 사용할 수 없습니다. PVS는 다음을 표시합니다.
# pvs
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
Couldn't find device with uuid L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL.
PV VG Fmt Attr PSize PFree
...
[unknown] vgbackup lvm2 a-m <800,00g <30,00g
--- Volume group ---
VG Name vgbackup
System ID
Format lvm2
Metadata Areas 0
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 0
VG Size <800,00 GiB
PE Size 4,00 MiB
Total PE 204799
Alloc PE / Size 197120 / 770,00 GiB
Free PE / Size 7679 / <30,00 GiB
VG UUID d2QWd0-eg28-RpRY-RX0h-JV7A-dpJH-jRF71x
VG는 이 디스크로만 구성되며 이 vg에는 다른 pv가 없습니다. PV를 제거하려고 시도했습니다.
vgremove --force vgbackup
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
Couldn't find device with uuid L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL.
Aborting vg_write: No metadata areas to write to!
메타데이터를 쓰기 위해 루프 장치를 추가하려고 했습니다.
# losetup -l
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
/dev/loop0 0 0 0 0 /tmp/tmp.raw
# vgextend vgbackup /dev/loop0
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
Couldn't find device with uuid L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL.
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
Segmentation fault
/dev/loop0 PV가 생성되었지만 vgbackup에 연결되지 않았습니다.
# pvs
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL not found or rejected by a filter.
Couldn't find device with uuid L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-OkupZL.
PV VG Fmt Attr PSize PFree
/dev/loop0 lvm2 --- 100,00m 100,00m
/dev/sda2 rootvg lvm2 a-- 58,80g 4,00m
[unknown] vgbackup lvm2 a-m <800,00g <30,00g
이제 무엇을 해야 할까요? lvm 구성에서 vgbackup을 어떻게 제거할 수 있습니까? 재부팅은 이제 옵션이 아닙니다.
도와주셔서 감사합니다!