모든 Physical Volume이 손실된 경우 Volume Group 및 Logical Volume을 온라인으로 제거하는 방법
Issue
- PV, VG 및 LV를 제거할 수 없습니다.
- vgremove 또는 vgreduce
--removemissing 명령을 실행하면 다음 오류가 발생하고 작업이 실패합니다:
To remove them unconditionally use: vgreduce --removemissing --force.
WARNING: Proceeding to remove empty missing PVs.
Aborting vg_write: No metadata areas to write to!
Failed to write out a consistent VG for <XXXX>
- pvs 또는 기타 관련 명령을 실행하면 다음 오류 메시지가 표시되며, pvscan --cache 을 실행해도 모든 항목을 정리할 수 없습니다:
WARNING: Device for PV UsDm7C-b0zF-ltc8-9flW-ODNs-Aubf-gIAhh2 not found or rejected by a filter.
WARNING: Device for PV UsDm7C-b0zF-ltc8-9flW-ODNs-Aubf-gIAhh2 not found or rejected by a filter.
Error reading device /dev/vgmisstest3/lv9192 at 0 length 512.
Error reading device /dev/vgmisstest3/lv9192 at 0 length 4.
Error reading device /dev/vgmisstest3/lv9192 at 4096 length 4.
WARNING: Device for PV UsDm7C-b0zF-ltc8-9flW-ODNs-Aubf-gIAhh2 not found or rejected by a filter.
Couldn't find device with uuid UsDm7C-b0zF-ltc8-9flW-ODNs-Aubf-gIAhh2.
Environment
- LVM을 사용하는 Red Hat Enterprise Linux(RHEL)
- RHEL 기반의 기타 모든 제품
- 드라이버/LUN이 손상되었거나 다른 이유로 접근할 수 없습니다.
- VG(Volume Group)의 모든 PV(Physical Volume)가 누락된 경우
- 기존 VG 이름은 새 드라이버/LUN을 사용하여 다시 생성할 때 사용될 수 있습니다.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.