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 1475975 - LVM cache: warning about loosing redundancy is incorrect.
Summary: LVM cache: warning about loosing redundancy is incorrect.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-27 16:51 UTC by Jonathan Earl Brassow
Modified: 2021-09-03 12:53 UTC (History)
8 users (show)

Fixed In Version: lvm2-2.02.176-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 15:20:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0853 0 None None None 2018-04-10 15:21:32 UTC

Description Jonathan Earl Brassow 2017-07-27 16:51:25 UTC
Was testing https://bugzilla.redhat.com/show_bug.cgi?id=1179970#c19 and came across a strange error:

"WARNING: Data redundancy is lost with writeback caching of raid logical volume!"

This would be correct if my cacheDataLV and cacheMetaLV were not also RAID LVs, but they are.

This:
        if (lv_is_raid(origin_lv) &&
            first_seg(seg->pool_lv)->cache_mode == CACHE_MODE_WRITEBACK)
                log_warn("WARNING: Data redundancy is lost with writeback "
                         "caching of raid logical volume!");
should probably make sure that the component devices of the cachepool are not RAID before printing the warning

Comment 3 Zdenek Kabelac 2017-11-27 11:39:06 UTC
Switched to: "could be lost"

https://www.redhat.com/archives/lvm-devel/2017-November/msg00086.html


Recognizing 'exact' level of lost resilience is ATM beyond code capabilities - but a more explaining message may arrive in future.

Comment 5 Corey Marthaler 2017-12-09 00:08:25 UTC
Fix verified in the latest rpms.

3.10.0-811.el7.x86_64

lvm2-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-libs-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-cluster-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-lockd-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-python-boom-0.8.1-5.el7    BUILT: Wed Dec  6 04:15:40 CST 2017
cmirror-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-libs-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-event-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-event-libs-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-persistent-data-0.7.3-2.el7    BUILT: Tue Oct 10 04:00:07 CDT 2017



[root@host-117 ~]# lvs -a -o +devices
  LV                            VG            Attr       LSize   Pool Origin Data%  Meta% Cpy%Sync Devices
  [lvol0_pmspare]               cache_sanity  ewi-------  12.00m                                   /dev/sda1(23)
  smallK_cache                  cache_sanity  Cwi---C---  52.00k                                   smallK_cache_cdata(0)
  [smallK_cache_cdata]          cache_sanity  Cwi---r---  52.00k                                   smallK_cache_cdata_rimage_0(0),smallK_cache_cdata_rimage_1(0)
  [smallK_cache_cdata_rimage_0] cache_sanity  Iwi---r---  52.00k                                   /dev/sdf1(3)
  [smallK_cache_cdata_rimage_1] cache_sanity  Iwi---r---  52.00k                                   /dev/sdg1(3)
  [smallK_cache_cdata_rmeta_0]  cache_sanity  ewi---r---  12.00k                                   /dev/sdf1(0)
  [smallK_cache_cdata_rmeta_1]  cache_sanity  ewi---r---  12.00k                                   /dev/sdg1(0)
  [smallK_cache_cmeta]          cache_sanity  ewi---r---  12.00m                                   smallK_cache_cmeta_rimage_0(0),smallK_cache_cmeta_rimage_1(0)
  [smallK_cache_cmeta_rimage_0] cache_sanity  Iwi---r---  12.00m                                   /dev/sdf1(19)
  [smallK_cache_cmeta_rimage_1] cache_sanity  Iwi---r---  12.00m                                   /dev/sdg1(19)
  [smallK_cache_cmeta_rmeta_0]  cache_sanity  ewi---r---  12.00k                                   /dev/sdf1(16)
  [smallK_cache_cmeta_rmeta_1]  cache_sanity  ewi---r---  12.00k                                   /dev/sdg1(16)
  smallK_origin                 cache_sanity  rwi-a-r---  80.00k                          100.00   smallK_origin_rimage_0(0),smallK_origin_rimage_1(0)
  [smallK_origin_rimage_0]      cache_sanity  iwi-aor---  80.00k                                   /dev/sda1(3)
  [smallK_origin_rimage_1]      cache_sanity  iwi-aor---  80.00k                                   /dev/sde1(3)
  [smallK_origin_rmeta_0]       cache_sanity  ewi-aor---  12.00k                                   /dev/sda1(0)
  [smallK_origin_rmeta_1]       cache_sanity  ewi-aor---  12.00k                                   /dev/sde1(0)

[root@host-117 ~]# lvconvert --yes --type cache --cachepool cache_sanity/smallK_cache cache_sanity/smallK_origin
  Logical volume cache_sanity/smallK_origin is now cached.

[root@host-117 ~]# lvs -a -o +devices
  LV                             VG            Attr       LSize   Pool           Origin                Data%  Meta% Cpy%Sync Devices
  [lvol0_pmspare]                cache_sanity  ewi-------  12.00m                                                            /dev/sda1(23)
  [smallK_cache]                 cache_sanity  Cwi---C---  52.00k                                      0.00   0.39  0.00     smallK_cache_cdata(0)
  [smallK_cache_cdata]           cache_sanity  Cwi-aor---  52.00k                                                   100.00   smallK_cache_cdata_rimage_0(0),smallK_cache_cdata_rimage_1(0)  
  [smallK_cache_cdata_rimage_0]  cache_sanity  iwi-aor---  52.00k                                                            /dev/sdf1(3)
  [smallK_cache_cdata_rimage_1]  cache_sanity  iwi-aor---  52.00k                                                            /dev/sdg1(3)
  [smallK_cache_cdata_rmeta_0]   cache_sanity  ewi-aor---  12.00k                                                            /dev/sdf1(0)
  [smallK_cache_cdata_rmeta_1]   cache_sanity  ewi-aor---  12.00k                                                            /dev/sdg1(0)
  [smallK_cache_cmeta]           cache_sanity  ewi-aor---  12.00m                                                   100.00   smallK_cache_cmeta_rimage_0(0),smallK_cache_cmeta_rimage_1(0)  
  [smallK_cache_cmeta_rimage_0]  cache_sanity  iwi-aor---  12.00m                                                            /dev/sdf1(19)
  [smallK_cache_cmeta_rimage_1]  cache_sanity  iwi-aor---  12.00m                                                            /dev/sdg1(19)
  [smallK_cache_cmeta_rmeta_0]   cache_sanity  ewi-aor---  12.00k                                                            /dev/sdf1(16)
  [smallK_cache_cmeta_rmeta_1]   cache_sanity  ewi-aor---  12.00k                                                            /dev/sdg1(16)
  smallK_origin                  cache_sanity  Cwi-a-C---  80.00k [smallK_cache] [smallK_origin_corig] 0.00   0.39  0.00     smallK_origin_corig(0)
  [smallK_origin_corig]          cache_sanity  rwi-aoC---  80.00k                                                   100.00   smallK_origin_corig_rimage_0(0),smallK_origin_corig_rimage_1(0)
  [smallK_origin_corig_rimage_0] cache_sanity  iwi-aor---  80.00k                                                            /dev/sda1(3)
  [smallK_origin_corig_rimage_1] cache_sanity  iwi-aor---  80.00k                                                            /dev/sde1(3)
  [smallK_origin_corig_rmeta_0]  cache_sanity  ewi-aor---  12.00k                                                            /dev/sda1(0)
  [smallK_origin_corig_rmeta_1]  cache_sanity  ewi-aor---  12.00k                                                            /dev/sde1(0)

Comment 8 errata-xmlrpc 2018-04-10 15:20:44 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, 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/RHEA-2018:0853


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