Bug 1430822
| Summary: | pvscan/vgscan/lvscan/lvmdiskscan need to call function "lvmnotify_send" too | ||
|---|---|---|---|
| Product: | [Community] LVM and device-mapper | Reporter: | Tony Asleson <tasleson> |
| Component: | lvm2 | Assignee: | LVM Team <lvm-team> |
| lvm2 sub component: | Command-line tools | QA Contact: | cluster-qe <cluster-qe> |
| Status: | NEW --- | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | high | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, teigland, thornber, zkabelac |
| Version: | 2.02.167 | Keywords: | Triaged |
| Target Milestone: | --- | Flags: | rule-engine:
lvm-technical-solution?
rule-engine: lvm-test-coverage? |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Tony Asleson
2017-03-09 16:14:31 UTC
First to clarify how this is part of a broader issue... Both lvmetad and lvmdbusd cache information about device state and lvm state. If device/lvm state is modified through lvm tools, then lvm can update the state in lvmetad/lvmdbusd. But, if device/lvm state is modified by non-lvm tools, then lvmetad/lvmdbusd are not updated. To work around this problem, the command 'pvscan --cache' exists so a person can manually refresh all the lvmetad state. lvmdbusd needs the same kind of thing, so a user can manually refresh all the lvmdbusd state. Is the command 'vgscan --notifydbus' sufficent for this, or do we need something more? (In reply to David Teigland from comment #1) > First to clarify how this is part of a broader issue... Both lvmetad and > lvmdbusd cache information about device state and lvm state. If device/lvm > state is modified through lvm tools, then lvm can update the state in > lvmetad/lvmdbusd. But, if device/lvm state is modified by non-lvm tools, > then lvmetad/lvmdbusd are not updated. > > To work around this problem, the command 'pvscan --cache' exists so a person > can manually refresh all the lvmetad state. lvmdbusd needs the same kind of > thing, so a user can manually refresh all the lvmdbusd state. Is the > command 'vgscan --notifydbus' sufficent for this, or do we need something > more? I would like to see all the "scan" tools simply kick the lvm dbus service to ensure it's up to date. My preference would be for the user to not have to explicitly pass something on the lvm command line to do this as it's really an implementation detail IMHO. Sounds reasonable to make the 'scan --cache' commands automatically generate a dbus signal. Trivial patch; I'll do this after 7.4 changes are done. |