Bug 1377157 - LVM cache not updating and reporting unknown device
Summary: LVM cache not updating and reporting unknown device
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.1.1
: ---
Assignee: Nir Soffer
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On: 1374545
Blocks: 1429429
TreeView+ depends on / blocked
 
Reported: 2016-09-19 01:40 UTC by Ribu Tho
Modified: 2019-12-16 06:51 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1429429 (view as bug list)
Environment:
Last Closed: 2017-04-04 13:31:11 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
amureini: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1374545 0 urgent CLOSED Guest LVs created in ovirt raw volumes are auto activated on the hypervisor in RHEL 7 2021-06-10 11:42:20 UTC
Red Hat Product Errata RHEA-2017:0998 0 normal SHIPPED_LIVE VDSM bug fix and enhancement update 4.1 GA 2017-04-18 20:11:39 UTC

Internal Links: 1374545

Description Ribu Tho 2016-09-19 01:40:38 UTC
Description of problem:

The Hypervisor reports errors with devices saying as unknown in pvs output commands with attribute in (m) state.

Version-Release number of selected component (if applicable):

lvm2-2.02.130-5.el7_2.1.x86_64

How reproducible:


Steps to Reproduce:
1. Device is cached in LVM 
2. Being skipped during scans 
3. pvs reports as unknown device. 

Actual results:

device being reported as unknown though it contains the metadata and volume information on it that can be seen using hexdump . 

Expected results:

The output should contain the device with lvm header for the VG  in the output of the command. 

Additional info:

Comment 3 Fabian Deutsch 2016-09-19 08:21:43 UTC
Tal, any idea from the storage side?

Comment 4 Fabian Deutsch 2016-09-19 08:22:17 UTC
Ribu, can you please provide the RHEV-H version used by the customer?

Comment 5 Tal Nisan 2016-09-19 11:29:51 UTC
Adam, Nir, any insights?

Comment 6 Nir Soffer 2016-09-19 11:53:16 UTC
Vdsm disable lvm autoback for most commands on RHEV lvs, so you cannot expect the
backups to reflect the state on storage.

Also, when running lvm commands on RHEL 7, you must disable lvmetad like this:

    lvs --config ' global { use_lvmetad = 0 }'

Or run this before the lvm command:

    pvscan --cache

I'm not sure that sos commands are doing this, so they may display incorrect 
results.

Ribu, can you check that the unexpected output happens when using lvm
commands properly?

Comment 11 Nir Soffer 2017-01-31 06:56:23 UTC
In 4.1 vdsm disabled lvmetad, so this issue should be eliminated. The current plan
is to backport it to 4.0.z.

Comment 12 Nir Soffer 2017-02-14 11:51:34 UTC
Needs to check this again, I don't think we understand the issue yet.

Comment 13 Yaniv Kaul 2017-02-23 13:24:37 UTC
(In reply to Nir Soffer from comment #12)
> Needs to check this again, I don't think we understand the issue yet.

I believe lvmetad disable was backported - anything else?

Comment 14 Nir Soffer 2017-02-27 14:48:29 UTC
Based on comment 11, I think we can safely mark this as modified since this looks
like another lvmetad issue.

Comment 17 Eyal Edri 2017-03-19 08:08:58 UTC
No patches attached to the bug, there is not way for the bot to know if this was fixed in a certain build.
Please add the relevant patches with the fix.

Comment 18 Nir Soffer 2017-03-19 14:02:26 UTC
(In reply to Eyal Edri from comment #17)
> No patches attached to the bug, there is not way for the bot to know if this
> was fixed in a certain build.
> Please add the relevant patches with the fix.

This bug should be fixed by the changes in bug 1374545, this is why we marked it
as modified.

Comment 19 Allon Mureinik 2017-03-19 14:41:38 UTC
(In reply to Nir Soffer from comment #18)
> (In reply to Eyal Edri from comment #17)
> > No patches attached to the bug, there is not way for the bot to know if this
> > was fixed in a certain build.
> > Please add the relevant patches with the fix.
> 
> This bug should be fixed by the changes in bug 1374545, this is why we
> marked it
> as modified.
And moved to ON_QA alognside it.

Comment 23 Natalie Gavrielov 2017-03-26 10:51:01 UTC
I don't really get the scenario described in comment 0 (in "steps to reproduce" it seems that steps 2 and 3 are more a result rather than steps)
Any suggestions on how to test this fix here, a concrete scenario?

Comment 24 Nir Soffer 2017-04-03 22:31:23 UTC
(In reply to Natalie Gavrielov from comment #23)
> I don't really get the scenario described in comment 0 (in "steps to
> reproduce" it seems that steps 2 and 3 are more a result rather than steps)
> Any suggestions on how to test this fix here, a concrete scenario?

I don't think it is possible to test such issue. We disabled lvmetad so lvm cache
cannot be incorrect now, since we don't have any.


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