How to online remove Volume Group and Logical Volumes when all the Physical Volumes are lost
Issue
- Can not remove the PV or VG and LVs.
- When executing the vgremove or vgreduce
--removemissing command, the following error occurs and fails:
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>
- The following error message will appear when executing the pvs or other releated commands, and executing pvscan --cache can not clear all:
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
- Red Hat Enterprise Linux (RHEL) with LVM
- All other product based on RHEL
- The driver/LUN is damaged or inaccessible for other reasons
- ALL PV(Physical Volume) are missing in the VG(Volume Group)
- The old VG name maybe will be used to create again with new driver/LUN .
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.