• 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. How to allow or deny telnet login to specific users only in CentOS/RHEL
  2. How to Use iptables instead of firewalld on CentOS/RHEL 7 and 8
  3. CentOS / RHEL : How to install Open Virtual Machine Tools for Virtual machines Hosted on VMWare
  4. How to gzip all or specific files in Linux
  5. Reducing/Limiting the CPUs in CentOS/RHEL 5,6
  6. How to Schedule Tasks Using at in Linux
  7. How to Disable/Enable Numa for Virtual Machine (XEN based)
  8. Monitor HDD and SSD with smartd and smartctl
  9. The System Continuously Displayed the Error Message from the “avahi-demon” in /var/log/messages
  10. Understanding /etc/hosts file in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright