LVM commands issue warning "WARNING: locking_type (0) is deprecated, using --nolocking." on RHEL 8

Solution Verified - Updated -

Issue

  • A pvscan, vgscan, pvs, vgs, or lvs command was run with --config 'global {locking_type = 0}' on RHEL 8, and it produced the following warning:
[root@fastvm-rhel-8-0-23 ~]# pvs --config 'global {locking_type = 0}' 2>&1 | head -1
  WARNING: locking_type (0) is deprecated, using --nolocking.
  • An sosreport run on a RHEL 8 system contains the warning shown above in its lvm2 command outputs.

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content