• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : How to convert volume group metadata between LVM1 and LVM2

by admin

The volume group metadata contains all the configuration information about the VG. It can be used to recover a deleted or corrupted VG. By default, the system will backup LVM2 automatically when LVM2 metadata has been changed by lvm utility such as lvcreate or vgchange etc. The metadata backup is stored in /etc/lvm/backup directory. To backup the metadata of current system, just copy the files contained in /etc/lvm/backup to another place.

Volume group metadata can be converted from LVM1 to LVM2 and vice versa using the vgconvert command.

Convert VG metadata from LVM1 to LVM2

If you want to convert volume group metadata from LVM1 to LVM2 format, use the -M2 option with the vgconvert command.

# vgconvert -M2 [vg_name]

Convert VG metadata from LVM2 to LVM1

If you want to convert volume group metadat from LVM2 to LVM1 format, use the -M1 option with the vgconvert command.

# vgconvert -M1 [vg_name]

To get more info on the vgconvert command check the man page.

# man vgconvert

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to install Swaks?
  2. apm – Atom editor Package Manager (Command Examples)
  3. exa: A modern replacement for ls (List directory contents)
  4. lxterminal: command not found
  5. “go get” Command Examples
  6. filefrag: command not found
  7. detox: Renames files to make them easier to work with
  8. import Command Examples
  9. fail2ban-client: command not found
  10. udevadm Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright