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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. ego Command Examples in Funtoo Linux
  2. axel: Download accelerator (Command Examples)
  3. kdocker Command Examples in Linux
  4. Understanding rsyslog Templates
  5. blkdiscard: command not found
  6. flac: Encodes, decodes and tests FLAC files
  7. crictl: Command-line for CRI-compatible container runtimes
  8. diffoscope: Compare files, archives, and directories
  9. How to Install wine64-preloader software package in Ubuntu
  10. pacman-key: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright