]> sourceware.org Git - lvm2.git/commit
dev-ext: issue error if external_device_info_source=udev and udev db record incomplete
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 11 Nov 2015 12:13:54 +0000 (13:13 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 11 Nov 2015 12:14:07 +0000 (13:14 +0100)
commitf82e0210b7cb9f3926ef5051ca34a4ad383ba271
treef6b191c7aa8006665d99a81d7bb9770c8e311dd5
parent6d0db97163125b6f4c7e07b6aba2f27dd050d14b
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].
  ...
WHATS_NEW
lib/device/dev-ext.c
This page took 0.041793 seconds and 5 git commands to generate.