• 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

lvmconf Command Examples in Linux

by admin

When using the various LVM utilities, each utility uses a central configuration file to govern its behavior. This configuration file is the /etc/lvm/lvm.conf file. The file has wonderful internal documentation and additional assistance is provided when you type man lvm.conf at the command line.

On earlier distributions, the lvmconf command was used to display lvm.conf settings instead of the ‘lvm dumpconfig’ command. There is a lot of information displayed by the lvmconf commands. It is worth piping the output into a pager utility for easy viewing.

lvmconf Command Examples

1. To set locking_type to the default non-clustered type:

# lvmconf --disable-cluster 

2. To set locking_type to the default clustered type on this system:

# lvmconf --enable-cluster 

3. To apply the changes to configfile instead of the default /etc/lvm/lvm.conf:

# lvmconf --file <configfile> 

4. To set external locking_library locking library to load if an external locking type is used:

# lvmconf --lockinglib <lib>

Filed Under: Linux

Some more articles you might also be interested in …

  1. jq: command not found (JSON CLI Parser)
  2. ttyrec – Record Terminal Session in Linux
  3. CentOS / RHEL : How to disable root login or root access on a system
  4. Rsyslog : How to Send log files to remote server in CentOS/RHEL 6,7
  5. How to Create An LVM Snapshot Of The Root Filesystem And Restore To An Earlier State
  6. CentOS / RHEL 6 : How to disable Transparent Huge pages (THP)
  7. How to disable or enable an HBA without reboot under CentOS/RHEL
  8. How to disable IPv6 on CentOS / RHEL 5
  9. namcap Command Examples in Linux
  10. CentOS / RHEL : How to add, delete and display LVM tags

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