• 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

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. “shutdown” Command Examples in Linux
  2. How to Map Static IP to your Domain (with GoDaddy example)
  3. killall Command Examples in Linux
  4. gnome-software Command Examples in Linux
  5. aws-shell: command not found
  6. Issue Opening a Firewalld Port in CentOS/RHEL 8
  7. How to Remove a Dead Mulitpath Device without Reboot in CentOS/RHEL
  8. How to grep with color output
  9. Basic NFS Security – NFS, no_root_squash and SUID
  10. archivemount Command in Linux

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