1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons
David Teigland a4ef8fa25e lvmetad: add disabled state
A global flag in lvmetad indicates it has been disabled.
Other flags indicate the reason it was disabled.
These flags can be queried using get_global_info.

The lvmetactl debugging utility can set and clear the
disabled flag in lvmetad.  Nothing else sets the
disabled flag yet.

Commands will check these flags after connecting to
lvmetad.  If the disabled flag is set, the command
will not use the lvmetad cache, but revert to disk
scanning.

To test this feature:

$ lvmetactl get_global_info
response = "OK"
global_invalid = 0
global_disable = 0
disable_reason = "none"
token = "filter:3041577944"

$ vgs
(should report VGs from lvmetad)

$ lvmetactl set_global_disable 1

$ lvmetactl get_global_info
response = "OK"
global_invalid = 0
global_disable = 1
disable_reason = "DIRECT"
token = "filter:3041577944"

$ vgs
  WARNING: Not using lvmetad because the disable flag was set directly.
(should report VGs without contacting lvmetad)

$ lvmetactl set_global_disable 0

$ vgs
(should report VGs from lvmetad)
2016-04-19 09:41:18 -05:00
..
clvmd gcc: cleanup Wunused-const-variable 2016-02-23 14:41:24 +01:00
cmirrord gcc: cleanup some sign warnings 2016-02-23 12:25:25 +01:00
dmeventd cleanup: gcc warn about comparing int with uint 2016-04-12 11:47:51 +02:00
lvmdbusd lvmdbusd: Add '-' to allowable PV device path chars 2016-03-24 12:27:02 -05:00
lvmetad lvmetad: add disabled state 2016-04-19 09:41:18 -05:00
lvmlockd lvmlockd: use new sanlock flag to avoid blocking 2016-02-24 10:10:59 -06:00
lvmpolld doc: change fsf address 2016-01-21 12:11:37 +01:00
Makefile.in lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00