10

When I do sudo apt-get upgrade, I have the following message:

 WARNING: PV /dev/sda3 in VG ubuntu-vg is using an old PV header,
 modify the VG to update.

What can I do?

18

'VG' in the warning means volume group. This is applicable to systems using logical volume management. 'PV' stands for physical volume, that is the actual partitions on disk(s). Headers contains information about the volume group's layout which can be used for data recovery.

You can try to resolve this with the tool vgck which checks volume group metadata and can rewrite it to correct problems with the --updatemetadata command. You need to give the name of the volume group mentioned in your warning - in your case it says that the physical volume /dev/sda3 (that's a disk partition device file) which is in volume group ubuntu-vg is using an old header, so probably the metadata needs to be updated. To do that you can use this command:

sudo vgck --updatemetadata ubuntu-vg
8
  • 1
    It is. I had the same problem and have fixed it this way. – Azrael Jan 10 at 22:07
  • 2
    Ensure that you replace ubuntu-vg with the actual volume group name from your own specific error message, as it may vary. ;-) – Ben Johnson Jan 26 at 21:37
  • 1
    How will this solve the issue? PRovide some explanation for how this command solves the problem, please. – Thomas Ward Feb 16 at 0:25
  • 1
    This answer is still relevant as I had this issue today also useful ref: manpages.ubuntu.com/manpages/focal/man8/vgck.8.html – Antony Feb 24 at 14:14
  • 1
    @JarsOfJam-Scheduler It looks like @Zanna has improved the answer and incorporated my previous comment, but to answer your question, using a non-existent volume group name would yield two errors, Volume group "ubuntu-vg" not found and Cannot process volume group ubuntu-vg. – Ben Johnson Mar 22 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.