• 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 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. clang++: Compiles C++ source files
  2. How to uninstall lammps package from Ubuntu
  3. How to Limit some User Memory Resources on CentOS/RHEL using cgroup
  4. How to uninstall rbenv from Ubuntu
  5. “git bugreport” Command Examples
  6. aa-disable: command not found
  7. Understanding /etc/xinetd.conf file in Linux
  8. git bug: A distributed bug tracker that uses git’s internal storage, so no files are added in your project
  9. Linux OS Service ‘named’
  10. adig: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • gml2gv Command Examples
  • glow Command Examples
  • glib-compile-resources Command Examples
  • glances Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright