lvdisplay command with -m switch produces segfault for cached logical volumes and cached POOL LVs

Solution Verified - Updated -

Issue

  • lvdisplay command with -m switch produces segfault for cached logical volumes and cached POOL LVs.
[root@vm252-103 ~]# lvdisplay -vm /dev/example_vg/lv1 
  --- Logical volume ---
  LV Path                /dev/example_vg/lv1
  LV Name                lv1
  VG Name                example_vg
  LV UUID                LfgUSi-VQLP-Nueh-PYXp-ysCp-GFzL-92flsq
  LV Write Access        read/write
  LV Creation host, time vm252-103.gsslab.pnq2.redhat.com, 2018-01-10 18:41:45 +0530
  LV Cache pool name     lv_cache
  LV Cache origin name   lv1_corig
  LV Status              available
  # open                 1
  LV Size                4.00 GiB
  Cache used blocks      0.14%
  Cache metadata blocks  0.14%
  Cache dirty blocks     0.00%
  Cache read hits/misses 10 / 49
  Cache wrt hits/misses  18 / 37
  Cache demotions        0
  Cache promotions       18
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     8192
  Block device           253:2

  --- Segments ---
  Logical extents 0 to 1023:
    Type        cache
    Chunk size      64.00 KiB
    Metadata format 2
    Mode        writethrough
    Policy      smq
Segmentation fault (core dumped)   <-----------------

Environment

  • Red Hat Enterprise Linux 7
    • lvm2-2.02.171-8.el7

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