70

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?

1 Answer 1

111

'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 correct it with the --updatemetadata option. 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 in volume group ubuntu-vg is using an old header, so you need to use that volume group as the argument:

sudo vgck --updatemetadata ubuntu-vg

This will issue the same warning; to prove that it fixed the issue, simply run

sudo vgck --updatemetadata ubuntu-vg

once more, and the warning should not appear.

15
  • 1
    It is. I had the same problem and have fixed it this way.
    – Azrael
    Commented Jan 10, 2021 at 22:07
  • 11
    Ensure that you replace ubuntu-vg with the actual volume group name from your own specific error message, as it may vary. ;-) Commented Jan 26, 2021 at 21:37
  • 3
    How will this solve the issue? PRovide some explanation for how this command solves the problem, please.
    – Thomas Ward
    Commented Feb 16, 2021 at 0:25
  • 3
    Could anyone write another answer ou complete this one? Even with the man provided by @Antony , we technically don't know the drawbacks of this command, nor what it does, nor when to use it, etc. Commented Mar 17, 2021 at 8:11
  • 2
    sudo vgscan triggers it as well.
    – rjt
    Commented Sep 17, 2022 at 8:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .