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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. “Failed to start test.mount: Unit is not loaded properly: Invalid argument.” – While mounting a fileystem using systemd
  2. Linux Interview Questions – Basic File and Directory Permissions
  3. How to enable IPv6 on CentOS / RHEL 7
  4. How to change the default permissions on /var/log/audit/audit.log file in CentOS/RHEL
  5. How to Convert Ext File Systems to Btrfs
  6. Manual Changes Made To /etc/hosts Or /etc/sysconfig/network-scripts/ifcfg-* Are Lost
  7. How to check change log of RPM packages on CentOS/RHEL
  8. Beginners guide to Apache HTTP Server – Installation and Configuration
  9. Linux OS Service ‘squid’
  10. “-bash: firewall: command not found” – How to resolve in CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • What Is Oracle Key Vault
  • Auditing with Oracle Database Vault Reports
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary