Situation
When running the pvs command the following warning is displayed:

WARNING: PV /dev/sda2 in VG localhost is using an old PV header, modify the VG to update.
WARNING: PV /dev/sda2 in VG localhost is using an old PV header, modify the VG to update.
WARNING: PV /dev/sda2 in VG localhost is using an old PV header, modify the VG to update.
Resolution
To fix the issue, kindly use vgck command to update the PV metadata header to version 2. For example:
[email protected]:~ # vgck –updatemetadata localhost

Cause
This warning is caused by lvm metadata with old extension header version.
The related pv was created by old lvm2, and newer lvm2 will output the warning.