• 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 delete a volume group in LVM

by admin

The post describes steps to delete a volume group. Make sure you have unmounted and the mount points and taken prior backup of the mount point if required.

1. Once you have umounted all the mount points, you can remove the LVs associated with them. To do so use the lvremove command :

# lvremove -f [vg_name]/[lv_name]

2. To remove the Volume group we have to deactivate it first with vgchange command :

# vgchange -an [vg_name]

3. You can remove the VG now.

# vgremove [vg_name]

4. To remove physical volumes in the VG use following command:

# pvremove [pv_name]

Filed Under: Linux

Some more articles you might also be interested in …

  1. logsave: command not found
  2. How to use perf tool for tracing similar to dtrace
  3. dsniff Command Examples in Linux
  4. namei Command Examples in Linux
  5. udevadm: command not found
  6. CentOS / RHEL 5,6 : How to Change the timezone
  7. How to Disable or set SELinux to Permissive mode
  8. What is the purpose of “mysql.sys@localhost” user
  9. Encrypted vSphere vMotion
  10. mount: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright