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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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 disable auto completion (tab completion) in bash shell
  2. What are the Network Bonding Modes In CentOS / RHEL
  3. How to Calculate Memory Usage in Linux using sar, ps, and free
  4. How To Configure Timeout On SSH Client Putty
  5. How to Change the filesystem Labels in CentOS/RHEL
  6. UNIX / Linux : How crontab validates the access based on the cron.allow and cron.deny files
  7. printf: command not found
  8. “java” command does not run the JVM that has been installed
  9. SSH Authentication Files in Linux
  10. How to fix the error “host key verification failed”

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright