[Gllug] Mapping from disk block to LVM partitions

Nix nix at esperi.org.uk
Wed Dec 16 21:19:29 UTC 2009


On 6 Dec 2009, Richard Jones stated:

> The metadata itself is in plain text as I said, in a simple C-like
> recursive format.
>
> # pvs
>   PV         VG       Fmt  Attr PSize   PFree  
>   /dev/dm-0  vg_trick lvm2 a-   931.31G 575.38G
>
> # strings /dev/dm-0

If you get tired of using strings(1), the vgcfgbackup(8) tool will give you the
metadata, and vgcfgrestore(8) will let you replace it (obviously dangerous).
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list