Skip to content

Instantly share code, notes, and snippets.

@Postrediori
Created January 25, 2024 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Postrediori/81c68dfd586a25faa215fd6e09c0bf8b to your computer and use it in GitHub Desktop.
Save Postrediori/81c68dfd586a25faa215fd6e09c0bf8b to your computer and use it in GitHub Desktop.
LVM tips&tricks

LVM HowTos

Fix 'PV header' LVM Warning

Sometimes the following warning may appear during usage of pvs, 'vgs, lvs utils:

WARNING: PV /dev/vdb in VG vg_test is using an old PV header, modify the VG to update.

To fix it update volume metadata:

vgck --updatemetadata vg_test

Extend LVM

Check free sectors

vgdisplay

For example, the result os 4607.

Extend volume using free sectors number:

lvextend -l +4607 /dev/vg_tech/LogVol01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment