All of lore.kernel.org
 help / color / mirror / Atom feed
* sg_persist triggers block kernel event ???
@ 2014-05-03 20:12 Christophe Varoqui
  2014-05-03 20:38 ` Christophe Varoqui
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christophe Varoqui @ 2014-05-03 20:12 UTC (permalink / raw)
  To: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 1015 bytes --]

Hi list,

I observe this on a debian 7.5 server with a udevadm monitor running in the
background :

# sg_persist -n -k /dev/sdbh
  PR generation=0x0, there are NO registered reservation keys

KERNEL[448809.342461] change
/devices/pci0000:20/0000:20:02.2/0000:24:00.0/host0/rport-0:0-3/target0:0:1/0:0:1:12/block/sdbh
(block)
ACTION=change
DEVNAME=/dev/sdbh
DEVPATH=/devices/pci0000:20/0000:20:02.2/0000:24:00.0/host0/rport-0:0-3/target0:0:1/0:0:1:12/block/sdbh
DEVTYPE=disk
MAJOR=67
MINOR=176
SEQNUM=261605
SUBSYSTEM=block

Every sg_persist command, with any options, trigger events.

On this server with more than 200 scsi devices, each receiving one read-key
and one read-reservation every 10 minutes, this triggers quite a eavy load
caused by 2 udev triggers :

1/ multipath -v0 $devpath
2/ udisks-lvm-pv-export $pv_uuid


Question is, is it normal for a "--in" sg_persist command to trigger a
change event on the scsi device ? If not, what we can do about it ?

Best regards,
Christophe Varoqui
www.opensvc.com

[-- Attachment #1.2: Type: text/html, Size: 1451 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-04 18:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-03 20:12 sg_persist triggers block kernel event ??? Christophe Varoqui
2014-05-03 20:38 ` Christophe Varoqui
2014-05-03 21:47   ` Christophe Varoqui
2014-05-03 23:34 ` Christophe Varoqui
2014-05-04 16:54   ` Hannes Reinecke
2014-05-04 17:23     ` Zdenek Kabelac
2014-05-04 18:01       ` Christophe Varoqui
2014-05-04 18:42         ` Christophe Varoqui
2014-05-04 16:57 ` Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.