• 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

CentOS/RHEL – vgs command reports error: “global/global_filter” unknown

By admin

The Problem

The user has set a new value for the parameter global_filter in the /etc/lvm/lvm.conf file. After setting the parameter value ‘vgs’ command gives below error:

# vgs
Configuration setting "global/global_filter" unknown.
...

The Solution

User has put the “global_filter” parameter under the ‘global {}‘ section in /etc/lvm/lvm.conf configuration file.

global {
	...
	global_filter = [ "r/.*/" ]
    ...
}

Perform the following steps to solve the LVM filter issue:

1. Take a backup of the existing /etc/lvm/cache/.cache file and remove the original file.

# mv /etc/lvm/cache/.cache /tmp

Here we are taking backup as well as removing the file in a single step and you can choose any other directory as well for backup.

2. Rearrange the “global_filter” parameter in /etc/lvm/lvm.conf file. Comment output the existing global_filter = [ “r/.*/” ]” line which is active in the global {} section of lvm.conf file. Add the same global_ filter parameter in the ‘devices {}‘ section of /eyc/lvm/lvm.conf file.

devices {
	...
	global_filter = [ "r/.*/" ]
    ...
}

3. Take a backup of the existing initramfs and rebuild it, so that the changed /etc/lvm/lvm.conf file will be used for subsequent reboots.

CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image
CentOS / RHEL 5 : How to rebuild Initial Ramdisk Image

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. How the BASH Shell load its configuration files in Linux
  2. How to Configure Logical Volume Manager for Cluster File System
  3. CentOS / RHEL 6 : How to disable IPv6
  4. Understanding DM-multipath deamon (multipathd)
  5. UNIX / Linux : How to change the niceness (priority) of a process
  6. Linux / UNIX : How to send mails with attachments using mailx command
  7. CentOS / RHEL 7 : unable to start vsftpd service
  8. How to Change Default Permission of /var/log/messages in CentOS/RHEL
  9. How to list all modules and check if they are enabled or disabled in CentOS/RHEL 8
  10. How to Schedule Tasks Using at in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary