• 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. ‘ulimit: max user processes: cannot modify limit:operation not permitted’ Shown When Login
  2. CentOS / RHEL : How to find the creation time of LVM volume
  3. How to configure kdump in Oracle Enterprise Linux (OEL 5,6)
  4. Creating and Removing Files and Directories Under Linux
  5. CentOS / RHEL : How to get the date and time of executed command in the history command output
  6. How to troubleshoot NFS transfer latency issues using “nfsiostat” in CentOS / RHEL
  7. How to Change the default kernel (boot from old kernel) in CentOS/RHEL 8
  8. CentOS / RHEL 7 : Configuring NTP using chrony
  9. How to Enable/Disable CPUs (Limiting CPU count) in CentOS / RHEL
  10. How to create and mount filesystems in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary