• 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

How to Disable the ‘lvm2-lvmetad.socket/service’ on CentOS/RHEL 7

by admin

Disabling lvm2-lvmetad.socket/service on CentOS/RHEL 7 system works while the system is running, but after a reboot, it comes up again. This post will show you how to prevent this from happening.

1. Modify the /etc/lvm/lvm.conf file with your favorite file editor, like vi or nano, and switch the value of “use_lvmetad = ” from 1 to 0.

# vi /etc/lvm/lvm.conf
use_lvmetad = 0

2. Stop, Disable, and Mask the lvm2-lvmetad service/socket.

# systemctl stop lvm2-lvmetad.service lvm2-lvmetad.socket
# systemctl disable lvm2-lvmetad.service lvm2-lvmetad.socket
# systemctl mask lvm2-lvmetad.service lvm2-lvmetad.socket

3. Verify if the changes are in effect. You can reboot the system and now the service/socket will not come back up. To revert your changes you need to unmask, start, and enable the service/socket.

# systemctl unmask lvm2-lvmetad.service lvm2-lvmetad.socket
# systemctl start lvm2-lvmetad.service lvm2-lvmetad.socket
# systemctl enable lvm2-lvmetad.service lvm2-lvmetad.socket

Filed Under: CentOS/RHEL 7, Linux, OEL 7

Some more articles you might also be interested in …

  1. localectl Command Examples in Linux
  2. nethogs Command Examples in Linux
  3. How to Disable Ctrl+c or Ctrl+z Using the “trap” Command in Linux
  4. How to Disable/Enable services in Zimbra Mail Server
  5. setenforce Command Examples in Linux
  6. CentOS / RHEL : How To Check FC Brocade HBA Firmware
  7. add-apt-repository: command not found
  8. mycli: command not found
  9. gzip: command not found
  10. “-bash: route: command not found” on CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright