RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1888817 - attempting to partial activate a writecache pool and origin with a missing pool device segfaults
Summary: attempting to partial activate a writecache pool and origin with a missing po...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-15 19:17 UTC by Corey Marthaler
Modified: 2021-09-07 11:51 UTC (History)
7 users (show)

Fixed In Version: lvm2-2.03.11-0.2.20201103git8801a86.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:01:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2020-10-15 19:17:21 UTC
Description of problem:
Create origin (slow) volume
lvcreate --wipesignatures y  -L 4G -n cworigin writecache_sanity @slow

Create writecache cvol (fast) volumes
lvcreate  -L 1G -n corrupt_pool_meta writecache_sanity @fast

Deactivate *ONLY* fast pool before conversion to write cache (SEE bug 1185347)
Create writecached volume by combining the cache pool (fast) and origin (slow) volumes
lvconvert --yes --type writecache --cachesettings 'low_watermark=1 high_watermark=83 writeback_jobs=2313 autocommit_blocks=1773 autocommit_time=1671' --cachevol writecache_sanity/corrupt_pool_meta writecache_sanity/cworigin

Corrupting PV /dev/sdb1 (used in this cache pool)
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.000969532 s, 1.1 GB/s

Running vgck (bug 894136)
  WARNING: Couldn't find device with uuid vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N.
  WARNING: VG writecache_sanity is missing PV vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N (last written to /dev/sdb1).
  WARNING: Couldn't find all devices for LV writecache_sanity/corrupt_pool_meta_cvol while checking used and assumed devices.
  The volume group is missing 1 physical volumes.

[root@hayes-01 ~]# lvchange -an writecache_sanity
  WARNING: Couldn't find device with uuid vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N.
  WARNING: VG writecache_sanity is missing PV vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N (last written to /dev/sdb1).
  WARNING: Couldn't find all devices for LV writecache_sanity/corrupt_pool_meta_cvol while checking used and assumed devices.

[root@hayes-01 ~]# lvs -a -o +devices
  WARNING: Couldn't find device with uuid vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N.
  WARNING: VG writecache_sanity is missing PV vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N (last written to /dev/sdb1).
  LV                       VG                Attr       LSize Pool                     Origin            Data%  Meta%  Move Log Cpy%Sync Convert Devices           
  [corrupt_pool_meta_cvol] writecache_sanity Cwi---C-p- 1.00g                                                                                    [unknown](0)      
  cworigin                 writecache_sanity Cwi---C--- 4.00g [corrupt_pool_meta_cvol] [cworigin_wcorig]                                         cworigin_wcorig(0)
  [cworigin_wcorig]        writecache_sanity owi---C--- 4.00g                                                                                    /dev/sdc1(0)      

[root@hayes-01 ~]# vgchange -ay --partial  writecache_sanity
  PARTIAL MODE. Incomplete logical volumes will be processed.
  WARNING: Couldn't find device with uuid vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N.
  WARNING: VG writecache_sanity is missing PV vNO1CX-TX3H-yhyC-a1U4-vnT8-y31c-me4a0N (last written to /dev/sdb1).
Segmentation fault (core dumped)

Oct 15 13:54:51 hayes-01 kernel: vgchange[811430]: segfault at 10 ip 0000564e6efb8cc8 sp 00007ffe9745edb0 error 4 in lvm[564e6ef12000+22d000]
Oct 15 13:54:51 hayes-01 kernel: Code: 00 e8 5c bc 01 00 31 d2 5b 89 d0 c3 66 0f 1f 44 00 00 f3 0f 1e fa 41 54 55 53 48 81 ec 00 10 00 00 48 83 0c 24 00 48 83 ec 20 <48> 8b 5f 10 64 48 8b 04 25 28 00 00 00 48 89 84 24 18 10 00 00 31

Oct 15 13:54:51 hayes-01 systemd-coredump[811432]: Process 811430 (vgchange) of user 0 dumped core.#012#012Stack trace of thread 811430:#012#0  0x0000564e6efb8cc8 dev_is_pmem (lvm)#012#1  0x0000564e6f0015e0 lv_on_pmem (lvm)#012#2  0x0000564e6f04c7c2 _writecache_add_target_line (lvm)#012#3  0x0000564e6f039dcf _add_target_to_dtree (lvm)#012#4  0x0000564e6f03cd33 _add_new_lv_to_dtree (lvm)#012#5  0x0000564e6f03f837 _tree_action (lvm)#012#6  0x0000564e6f042311 dev_manager_activate (lvm)#012#7  0x0000564e6ef9c4c2 _lv_activate_lv (lvm)#012#8  0x0000564e6efa0b19 _lv_activate.isra.15.part.16 (lvm)#012#9  0x0000564e6efa1b16 lv_activate_with_filter (lvm)#012#10 0x0000564e6efdf3e4 lv_active_change (lvm)#012#11 0x0000564e6ef865c6 lv_change_activate (lvm)#012#12 0x0000564e6ef92c71 vgchange_activate (lvm)#012#13 0x0000564e6ef93192 _vgchange_single (lvm)#012#14 0x0000564e6ef8990a process_each_vg (lvm)#012#15 0x0000564e6ef93676 vgchange (lvm)#012#16 0x0000564e6ef6c1ad lvm_run_command (lvm)#012#17 0x0000564e6ef6d4d3 lvm2_main (lvm)#012#18 0x00007f1e0550a7b3 __libc_start_main (libc.so.6)#012#19 0x0000564e6ef4787e _start (lvm)



Core was generated by `vgchange -ay --partial writecache_sanity'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00005605d4129cc8 in dev_is_pmem (dev=0x0) at device/dev-type.c:42
42      {
(gdb) bt
#0  0x00005605d4129cc8 in dev_is_pmem (dev=0x0) at device/dev-type.c:42
#1  0x00005605d41725e0 in lv_on_pmem (lv=0x5605d6454240) at metadata/metadata.c:4449
#2  0x00005605d41bd7c2 in _writecache_add_target_line (dm=<optimized out>, mem=0x5605d641ea70, cmd=<optimized out>, target_state=<optimized out>, seg=0x5605d64544f8, laopts=<optimized out>, node=<optimized out>, 
    len=<optimized out>, pvmove_mirror_count=<optimized out>) at writecache/writecache.c:309
#3  0x00005605d41aadcf in _add_target_to_dtree (dm=<optimized out>, dnode=<optimized out>, seg=<optimized out>, laopts=<optimized out>) at activate/dev_manager.c:249
#4  0x00005605d41add33 in _add_segment_to_dtree (layer=0x0, laopts=0x7fffafc65d10, seg=<optimized out>, dnode=0x5605d64573f0, dtree=0x5605d6457210, dm=0x5605d644a770) at activate/dev_manager.c:3120
#5  _add_new_lv_to_dtree (dm=dm@entry=0x5605d644a770, dtree=dtree@entry=0x5605d6457210, lv=lv@entry=0x5605d64540d0, laopts=laopts@entry=0x7fffafc65d10, layer=0x0) at activate/dev_manager.c:3426
#6  0x00005605d41b0837 in _tree_action (dm=dm@entry=0x5605d644a770, lv=lv@entry=0x5605d64540d0, laopts=laopts@entry=0x7fffafc65d10, action=action@entry=ACTIVATE) at activate/dev_manager.c:3700
#7  0x00005605d41b3311 in dev_manager_activate (dm=dm@entry=0x5605d644a770, lv=lv@entry=0x5605d64540d0, laopts=laopts@entry=0x7fffafc65d10) at activate/dev_manager.c:3749
#8  0x00005605d410d4c2 in _lv_activate_lv (lv=0x5605d64540d0, laopts=0x7fffafc65d10) at activate/activate.c:1436
#9  0x00005605d4111b19 in _lv_activate (cmd=cmd@entry=0x5605d62eaa10, laopts=laopts@entry=0x7fffafc65d10, filter=filter@entry=1, lv=lv@entry=0x5605d64540d0, lvid_s=<optimized out>) at activate/activate.c:2609
#10 0x00005605d4112b16 in _lv_activate (lvid_s=<optimized out>, lv=0x5605d64540d0, filter=1, laopts=0x7fffafc65d10, cmd=0x5605d62eaa10) at activate/activate.c:2531
#11 lv_activate_with_filter (cmd=0x5605d62eaa10, lvid_s=<optimized out>, exclusive=<optimized out>, noscan=<optimized out>, temporary=<optimized out>, lv=0x5605d64540d0) at activate/activate.c:2641
#12 0x00005605d41503e4 in lv_active_change (cmd=cmd@entry=0x5605d62eaa10, lv=lv@entry=0x5605d64540d0, activate=activate@entry=CHANGE_AY) at metadata/lv.c:1553
#13 0x00005605d40f75c6 in lv_change_activate (cmd=cmd@entry=0x5605d62eaa10, lv=lv@entry=0x5605d64540d0, activate=activate@entry=CHANGE_AY) at toollib.c:816
#14 0x00005605d4103c71 in _activate_lvs_in_vg (activate=CHANGE_AY, vg=0x5605d6453200, cmd=0x5605d62eaa10) at vgchange.c:122
#15 vgchange_activate (cmd=cmd@entry=0x5605d62eaa10, vg=vg@entry=0x5605d6453200, activate=CHANGE_AY) at vgchange.c:255
#16 0x00005605d4104192 in _vgchange_single (cmd=cmd@entry=0x5605d62eaa10, vg_name=vg_name@entry=0x5605d63e4380 "writecache_sanity", vg=vg@entry=0x5605d6453200, handle=handle@entry=0x5605d63e25d0) at vgchange.c:666
#17 0x00005605d40fa90a in _process_vgnameid_list (process_single_vg=0x5605d4104040 <_vgchange_single>, handle=0x5605d63e25d0, arg_tags=0x7fffafc65f30, arg_vgnames=0x7fffafc65f40, vgnameids_to_process=0x7fffafc65f60, 
    read_flags=4194304, cmd=0x5605d62eaa10) at toollib.c:1947
#18 process_each_vg (cmd=cmd@entry=0x5605d62eaa10, argc=argc@entry=1, argv=argv@entry=0x7fffafc663e0, one_vgname=one_vgname@entry=0x0, use_vgnames=use_vgnames@entry=0x0, read_flags=read_flags@entry=4194304, 
    include_internal=<optimized out>, handle=0x5605d63e25d0, process_single_vg=<optimized out>) at toollib.c:2252
#19 0x00005605d4104676 in vgchange (cmd=0x5605d62eaa10, argc=1, argv=0x7fffafc663e0) at vgchange.c:800
#20 0x00005605d40dd1ad in lvm_run_command (cmd=cmd@entry=0x5605d62eaa10, argc=<optimized out>, argc@entry=4, argv=<optimized out>, argv@entry=0x7fffafc663c8) at lvmcmdline.c:3141
#21 0x00005605d40de4d3 in lvm2_main (argc=4, argv=0x7fffafc663c8) at lvmcmdline.c:3671
#22 0x00007f9f1ab3a7b3 in __libc_start_main (main=0x5605d40b87b0 <main>, argc=4, argv=0x7fffafc663c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffafc663b8) at ../csu/libc-start.c:308
#23 0x00005605d40b887e in _start () at lvm.c:22


Version-Release number of selected component (if applicable):
kernel-4.18.0-240.el8    BUILT: Wed Sep 23 04:46:11 CDT 2020
lvm2-2.03.09-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
lvm2-libs-2.03.09-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-libs-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-event-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-event-libs-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020


How reproducible:
Everytime

Comment 1 David Teigland 2020-10-26 20:49:50 UTC
pushed to master:
https://sourceware.org/git/?p=lvm2.git;a=commit;h=020d1edaa06e5e05b58e8d39530408f86a22d1b8


Missing a device in the fast LV:

[root@null-04 ~]# lvs -a foo -o+devices
  WARNING: Couldn't find device with uuid IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr.
  WARNING: VG foo is missing PV IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr (last written to /dev/loop2).
  LV            VG  Attr       LSize   Pool        Origin        Devices
  [fast_cvol]   foo Cwi---C-p- 100.00m                           [unknown](0)
  [fast_cvol]   foo Cwi---C-p- 100.00m                           /dev/loop3(0)
  main          foo Cwi---C--- 100.00m [fast_cvol] [main_wcorig] main_wcorig(0)
  [main_wcorig] foo owi---C--- 100.00m                           /dev/loop0(0)
  [main_wcorig] foo owi---C--- 100.00m                           /dev/loop1(0)

[root@null-04 ~]# lvchange -ay foo/main
  WARNING: Couldn't find device with uuid IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr.
  WARNING: VG foo is missing PV IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr (last written to /dev/loop2).
  Cannot use partial or degraded activation with writecache.

[root@null-04 ~]# lvchange -ay --partial foo/main
  PARTIAL MODE. Incomplete logical volumes will be processed.
  WARNING: Couldn't find device with uuid IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr.
  WARNING: VG foo is missing PV IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr (last written to /dev/loop2).
  Cannot use partial or degraded activation with writecache.

[root@null-04 ~]# lvchange -ay --activationmode degraded foo/main
  WARNING: Couldn't find device with uuid IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr.
  WARNING: VG foo is missing PV IA18ZC-kprI-tHKj-jatL-wyeX-ES2e-jVepAr (last written to /dev/loop2).
  Cannot use partial or degraded activation with writecache.


Missing a device in the main LV:

[root@null-04 ~]# lvs -a foo -o+devices
  WARNING: Couldn't find device with uuid tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd.
  WARNING: VG foo is missing PV tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd (last written to /dev/loop1).
  LV            VG  Attr       LSize   Pool        Origin        Devices       
  [fast_cvol]   foo Cwi---C--- 100.00m                           /dev/loop2(0) 
  [fast_cvol]   foo Cwi---C--- 100.00m                           /dev/loop3(0) 
  main          foo Cwi---C-p- 100.00m [fast_cvol] [main_wcorig] main_wcorig(0)
  [main_wcorig] foo owi---C-p- 100.00m                           /dev/loop0(0) 
  [main_wcorig] foo owi---C-p- 100.00m                           [unknown](0)  

[root@null-04 ~]# lvchange -ay foo/main
  WARNING: Couldn't find device with uuid tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd.
  WARNING: VG foo is missing PV tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd (last written to /dev/loop1).
  Refusing activation of partial LV foo/main.  Use '--activationmode partial' to override.

[root@null-04 ~]# lvchange -ay --partial foo/main
  PARTIAL MODE. Incomplete logical volumes will be processed.
  WARNING: Couldn't find device with uuid tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd.
  WARNING: VG foo is missing PV tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd (last written to /dev/loop1).
  Cannot use partial or degraded activation with writecache.

[root@null-04 ~]# lvchange -ay --activationmode degraded foo/main
  WARNING: Couldn't find device with uuid tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd.
  WARNING: VG foo is missing PV tRv3rn-2bs9-Znhq-zvD7-RaqS-Z3f9-xcS8wd (last written to /dev/loop1).
  Refusing activation of partial LV foo/main.  Use '--activationmode partial' to override.

Comment 3 Corey Marthaler 2020-11-12 16:31:36 UTC
Fix verified in the latest 8.4 .d build.

kernel-4.18.0-246.el8.dt2    BUILT: Mon Nov  9 07:22:41 CST 2020
lvm2-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
lvm2-libs-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
lvm2-lockd-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-libs-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-event-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-event-libs-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020


SCENARIO - [recover_corrupt_writecache_pool_pv_w_pvck_dump]
Create a writecache origin and pool, corrupt metadata on pool PV, and then restore the volume using pvck dump

*** Writecache info for this scenario ***
*  origin (slow):  /dev/sdh1
*  pool (fast):    /dev/sdf1
************************************

Adding "slow" and "fast" tags to corresponding pvs
Create origin (slow) volume
lvcreate --yes --wipesignatures y  -L 4G -n cworigin writecache_sanity @slow

Create writecache cvol (fast) volumes
lvcreate --yes  -L 1G -n corrupt_pool_meta writecache_sanity @fast

Deactivate *ONLY* fast pool before conversion to write cache (SEE bug 1185347)
Create writecached volume by combining the cache pool (fast) and origin (slow) volumes
lvconvert --yes --type writecache --cachesettings 'low_watermark=33 high_watermark=97 writeback_jobs=2860 autocommit_blocks=1250 autocommit_time=2668' --cachevol writecache_sanity/corrupt_pool_meta writecache_sanity/cworigin
Corrupting PV /dev/sdf1 (used in this cache pool)
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00101888 s, 1.0 GB/s
Running vgck (bug 894136)
  WARNING: Couldn't find device with uuid EWIPRJ-R3eh-Q45L-IPow-1B7H-h52q-wuAvEk.
  WARNING: VG writecache_sanity is missing PV EWIPRJ-R3eh-Q45L-IPow-1B7H-h52q-wuAvEk (last written to /dev/sdf1).
  WARNING: Couldn't find all devices for LV writecache_sanity/corrupt_pool_meta_cvol while checking used and assumed devices.
  The volume group is missing 1 physical volumes.
lvchange -an writecache_sanity
  WARNING: Couldn't find device with uuid EWIPRJ-R3eh-Q45L-IPow-1B7H-h52q-wuAvEk.
  WARNING: VG writecache_sanity is missing PV EWIPRJ-R3eh-Q45L-IPow-1B7H-h52q-wuAvEk (last written to /dev/sdf1).
  WARNING: Couldn't find all devices for LV writecache_sanity/corrupt_pool_meta_cvol while checking used and assumed devices.
vgchange -ay --partial writecache_sanity
  PARTIAL MODE. Incomplete logical volumes will be processed.
  WARNING: Couldn't find device with uuid EWIPRJ-R3eh-Q45L-IPow-1B7H-h52q-wuAvEk.
  WARNING: VG writecache_sanity is missing PV EWIPRJ-R3eh-Q45L-IPow-1B7H-h52q-wuAvEk (last written to /dev/sdf1).
  Cannot use partial or degraded activation with writecache.
Checking syslog to see if vgchange segfaulted

Comment 7 Corey Marthaler 2021-01-11 18:43:48 UTC
Fix verified in the latest rpms.

kernel-4.18.0-271.el8    BUILT: Fri Jan  8 03:32:43 CST 2021
lvm2-2.03.11-0.4.20201222gitb84a992.el8    BUILT: Tue Dec 22 06:33:49 CST 2020
lvm2-libs-2.03.11-0.4.20201222gitb84a992.el8    BUILT: Tue Dec 22 06:33:49 CST 2020


============================================================
Iteration 4 of 4 started at Mon Jan 11 12:40:20 CST 2021
============================================================
SCENARIO - [recover_corrupt_writecache_pool_pv_w_pvck_dump]
Create a writecache origin and pool, corrupt metadata on pool PV, and then restore the volume using pvck dump

*** Writecache info for this scenario ***
*  origin (slow):  /dev/sde1
*  pool (fast):    /dev/sdb1
************************************

ls: cannot access '/dev/writecache_sanity': No such file or directory
Adding "slow" and "fast" tags to corresponding pvs
Create origin (slow) volume
lvcreate --yes --wipesignatures y  -L 4G -n cworigin writecache_sanity @slow

Create writecache cvol (fast) volumes
lvcreate --yes  -L 1G -n corrupt_pool_meta writecache_sanity @fast

Deactivate *ONLY* fast pool before conversion to write cache (SEE bug 1185347)
Create writecached volume by combining the cache pool (fast) and origin (slow) volumes
lvconvert --yes --type writecache --cachesettings 'low_watermark=47 high_watermark=86 writeback_jobs=2274 autocommit_blocks=1919 autocommit_time=2974' --cachevol writecache_sanity/corrupt_pool_meta writecache_sanity/cworigin
Corrupting PV /dev/sdb1 (used in this cache pool)
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0030276 s, 346 MB/s
Running vgck (bug 894136)
  WARNING: Couldn't find device with uuid WnbYAo-uv6z-Cz7P-FY9Y-MM0s-3gqI-4PEoer.
  WARNING: VG writecache_sanity is missing PV WnbYAo-uv6z-Cz7P-FY9Y-MM0s-3gqI-4PEoer (last written to /dev/sdb1).
  WARNING: Couldn't find all devices for LV writecache_sanity/corrupt_pool_meta_cvol while checking used and assumed devices.
  The volume group is missing 1 physical volumes.
lvchange -an writecache_sanity
  WARNING: Couldn't find device with uuid WnbYAo-uv6z-Cz7P-FY9Y-MM0s-3gqI-4PEoer.
  WARNING: VG writecache_sanity is missing PV WnbYAo-uv6z-Cz7P-FY9Y-MM0s-3gqI-4PEoer (last written to /dev/sdb1).
  WARNING: Couldn't find all devices for LV writecache_sanity/corrupt_pool_meta_cvol while checking used and assumed devices.
vgchange -ay --partial writecache_sanity
  PARTIAL MODE. Incomplete logical volumes will be processed.
  WARNING: Couldn't find device with uuid WnbYAo-uv6z-Cz7P-FY9Y-MM0s-3gqI-4PEoer.
  WARNING: VG writecache_sanity is missing PV WnbYAo-uv6z-Cz7P-FY9Y-MM0s-3gqI-4PEoer (last written to /dev/sdb1).
  Cannot use partial or degraded activation with writecache.
Checking syslog to see if vgchange segfaulted

Dumping headers and metadata from /dev/sde1
pvck --dump headers /dev/sde1 
pvck --dump metadata /dev/sde1 -f /tmp/pvck_meta.215691
pvck --yes --repair -f /tmp/pvck_meta.215691 /dev/sdb1
  WARNING: No LVM label found on /dev/sdb1.  It may not be an LVM device.
  WARNING: no previous metadata areas found on device.
vgreduce --removemissing writecache_sanity
vgck --updatemetadata writecache_sanity
Running vgck (bug 894136)
Separating cache pool (lvconvert --yes --splitcache writecache_sanity/cworigin) from cache origin
Removing cache pool writecache_sanity/corrupt_pool_meta
Removing cache origin volume writecache_sanity/cworigin
lvremove -f /dev/writecache_sanity/cworigin

Comment 9 errata-xmlrpc 2021-05-18 15:01:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1659


Note You need to log in before you can comment on or make changes to this bug.