1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
lvm2/lib
Peter Rajnoha f82e0210b7 dev-ext: issue error if external_device_info_source=udev and udev db record incomplete
Udev db records are marked as not initialized (incomplete) on timeout.
Issue an error message whenever LVM finds such records so users are
aware that something's going wrong with udev db.

This is important in case we use devices/external_device_info_source="udev"
where udev database records are used to do various filtering decisions.

For example:

udev log of timed out worker:

Nov 11 13:02:25 raw.virt systemd-udevd[607]: seq 1997 '/devices/virtual/block/dm-2' is taking a long time
Nov 11 13:04:25 raw.virt systemd-udevd[607]: seq 1997 '/devices/virtual/block/dm-2' killed
Nov 11 13:04:25 raw.virt systemd-udevd[607]: worker [11221] terminated by signal 9 (Killed)
Nov 11 13:04:25 raw.virt systemd-udevd[607]: worker [11221] failed while handling '/devices/virtual/block/dm-2'
...

LVM also issues error message visibly if incomplete udev db record is found,
devices/external_device_info_source="udev" is set:

$ pvs
  Udev database has incomplete information about device /dev/dm-2.
  Failed to get external handle for device /dev/dm-2 [udev].
  ...
2015-11-11 13:14:07 +01:00
..
activate raid: fix the string compare 2015-11-10 21:40:28 +01:00
cache libdaemon: fix passing 32bit values for %d 2015-11-09 17:04:10 +01:00
cache_segtype segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
commands cleanup: ensuring string is not NULL 2015-11-09 17:04:10 +01:00
config config: fix copy error in examples 2015-11-03 11:07:27 -06:00
datastruct cleanup: drop unneeded header file 2015-11-09 10:22:51 +01:00
device dev-ext: issue error if external_device_info_source=udev and udev db record incomplete 2015-11-11 13:14:07 +01:00
display libdm: Add dm_size_to_string to libdevmapper. 2015-07-27 21:30:20 +01:00
error segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
filters filters: swap device_is_usable test 2015-09-03 23:34:36 +02:00
format1 segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
format_pool segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
format_text cleanup: do not test alloca for NULL 2015-11-09 10:22:51 +01:00
freeseg segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
label cleanup: trace error from lvmcache_update_vgname_and_id 2015-08-18 15:00:08 +02:00
locking libdaemon: fix passing 32bit values for %d 2015-11-09 17:04:10 +01:00
log Revert "log: no file for external logging" 2015-10-13 15:31:57 +01:00
lvmpolld libdaemon: fix passing 32bit values for %d 2015-11-09 17:04:10 +01:00
metadata cache: ensure there is no NULL str 2015-11-09 17:04:10 +01:00
mirror segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
misc cleanup: reoder rstatus init 2015-11-09 10:22:52 +01:00
mm cleanup: gcc warning for old-style 2015-10-23 10:54:13 +02:00
properties report: add support for time (basic) 2015-06-30 15:15:10 +02:00
raid raid: Fail if kernel status denominator is zero. 2015-09-28 20:45:44 +01:00
replicator macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
report report: add extra pointer check 2015-11-09 10:19:20 +01:00
snapshot segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
striped segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
thin cleanup: remove thin low_water_mark from metadata 2015-10-29 12:14:20 +01:00
unknown segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
uuid uuid: Report invalid character. 2015-09-18 14:19:32 +01:00
zero segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
Makefile.in pvcreate: don't support unpartitioned DASD devices with CDL formatted 2015-10-27 11:42:47 +01:00