pr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Processing device (SEQNUM=5523, ACTION=change)
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Removing watch
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: value '[dmi/id]sys_vendor' is 'QEMU'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: value '[dmi/id]sys_vendor' is 'QEMU'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: /usr/lib/udev/rules.d/60-persistent-storage.rules:109 Importing properties from results of builtin command 'blkid'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Probe /dev/bcache0 with raid and offset=0
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: /usr/lib/udev/rules.d/69-bcache.rules:16 Importing properties from results of 'probe-bcache -o udev /dev/bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Starting 'probe-bcache -o udev /dev/bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: Successfully forked off '(spawn)' as PID 1912.
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Process 'probe-bcache -o udev /dev/bcache0' succeeded.
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: /usr/lib/udev/rules.d/69-bcache.rules:27 LINK 'bcache/by-uuid/1522715e-a390-40db-8d47-06fb728014e5'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Handling device node '/dev/bcache0', devnum=b251:0
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Preserve already existing symlink '/dev/block/251:0' to '../bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Creating symlink '/dev/bcache/by-uuid/1522715e-a390-40db-8d47-06fb728014e5' to '../../bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: sd-device: Created db file '/run/udev/data/b251:0' for '/devices/virtual/block/bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Adding watch on '/dev/bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: sd-device: Created db file '/run/udev/data/b251:0' for '/devices/virtual/block/bcache0'
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: Device (SEQNUM=5523, ACTION=change) processed
Apr 21 14:15:22 ubuntu-focal systemd-udevd[1870]: bcache0: sd-device-monitor: Passed 388 byte to netlink monitor
followed by the extra action:
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Processing device (SEQNUM=5524, ACTION=change)
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Removing watch
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: value '[dmi/id]sys_vendor' is 'QEMU'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: value '[dmi/id]sys_vendor' is 'QEMU'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: /usr/lib/udev/rules.d/60-persistent-storage.rules:109 Importing properties from results of builtin command 'blkid'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Probe /dev/bcache0 with raid and offset=0
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: /usr/lib/udev/rules.d/60-persistent-storage.rules:112 LINK 'disk/by-uuid/30b28bee-6a1e-423d-9d53-32c78ba5454a'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Updating old name, '/dev/bcache/by-uuid/1522715e-a390-40db-8d47-06fb728014e5' no longer belonging to '/devices/virtual/block/bcache0'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: No reference left, removing '/dev/bcache/by-uuid/1522715e-a390-40db-8d47-06fb728014e5'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Handling device node '/dev/bcache0', devnum=b251:0
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Preserve already existing symlink '/dev/block/251:0' to '../bcache0'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Creating symlink '/dev/disk/by-uuid/30b28bee-6a1e-423d-9d53-32c78ba5454a' to '../../bcache0'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: sd-device: Created db file '/run/udev/data/b251:0' for '/devices/virtual/block/bcache0'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Adding watch on '/dev/bcache0'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: sd-device: Created db file '/run/udev/data/b251:0' for '/devices/virtual/block/bcache0'
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: Device (SEQNUM=5524, ACTION=change) processed
Apr 21 14:15:43 ubuntu-focal systemd-udevd[1916]: bcache0: sd-device-monitor: Passed 471 byte to netlink monitor
So it appears the symlink is being added to /dev/bcache/by-uuid/1522715e-a390-40db-8d47-06fb728014e5 and then the next udev action removes this symlink and adds dev/disk/by-uuid/30b28bee-6a1e-423d-9d53-32c78ba5454a instead.
For older releases such as bionic we have one event:
UDEV [1304.304437] change /devices/ virtual/ block/bcache0 (block) UUID=0192e0a7- 9d8e-4771- 9bb1-d730a2f66a 9d /dev/bcache/ by-uuid/ 0192e0a7- 9d8e-4771- 9bb1-d730a2f66a 9d /dev/bcache0 /devices/ virtual/ block/bcache0 D=1304237024
.ID_FS_TYPE_NEW=
ACTION=change
CACHED_LABEL=
CACHED_
DEVLINKS=
DEVNAME=
DEVPATH=
DEVTYPE=disk
DRIVER=bcache
ID_FS_TYPE=
MAJOR=251
MINOR=0
SEQNUM=4384
SUBSYSTEM=block
TAGS=:systemd:
USEC_INITIALIZE
that creates the expected symlink.
---------
For focal, instead we get two events:
UDEV [2763.370729] change /devices/ virtual/ block/bcache0 (block) /devices/ virtual/ block/bcache0 UUID=1522715e- a390-40db- 8d47-06fb728014 e5 /dev/bcache0 D=2763323504 /dev/bcache/ by-uuid/ 1522715e- a390-40db- 8d47-06fb728014 e5
ACTION=change
DEVPATH=
SUBSYSTEM=block
DRIVER=bcache
CACHED_
CACHED_LABEL=
DEVNAME=
DEVTYPE=disk
SEQNUM=5523
USEC_INITIALIZE
.ID_FS_TYPE_NEW=
ID_FS_TYPE=
MAJOR=251
MINOR=0
DEVLINKS=
TAGS=:systemd:
KERNEL[2784.362374] change /devices/ virtual/ block/bcache0 (block) /devices/ virtual/ block/bcache0 /dev/bcache0
ACTION=change
DEVPATH=
SUBSYSTEM=block
SYNTH_UUID=0
DEVNAME=
DEVTYPE=disk
SEQNUM=5524
MAJOR=251
MINOR=0
UDEV [2784.433618] change /devices/ virtual/ block/bcache0 (block) /devices/ virtual/ block/bcache0 /dev/bcache0 D=2763323504 30b28bee- 6a1e-423d- 9d53-32c78ba545 4a ENC=30b28bee- 6a1e-423d- 9d53-32c78ba545 4a filesystem TYPE_NEW= ext4 /dev/disk/ by-uuid/ 30b28bee- 6a1e-423d- 9d53-32c78ba545 4a
ACTION=change
DEVPATH=
SUBSYSTEM=block
SYNTH_UUID=0
DEVNAME=
DEVTYPE=disk
SEQNUM=5524
USEC_INITIALIZE
ID_FS_UUID=
ID_FS_UUID_
ID_FS_VERSION=1.0
ID_FS_TYPE=ext4
ID_FS_USAGE=
.ID_FS_
MAJOR=251
MINOR=0
DEVLINKS=
TAGS=:systemd:
This performs:
pr 21 14:15:22 ubuntu-focal systemd- udevd[1870] : bcache0: Processing device (SEQNUM=5523, ACTION=change) udevd[1870] : bcache0: Removing watch udevd[1870] : value '[dmi/id] sys_vendor' is 'QEMU' udevd[1870] : value '[dmi/id] sys_vendor' is 'QEMU' udevd[1870] : bcache0: /usr/lib/ udev/rules. d/60-persistent -storage. rules:109 Importing properties from results of builtin command 'blkid' udevd[1870] : bcache0: Probe /dev/bcache0 with raid and offset=0 udevd[1870] : bcache0: /usr/lib/ udev/rules. d/69-bcache. rules:16 Importing properties from results of 'probe-bcache -o udev /dev/bcache0' udevd[1870] : bcache0: Starting 'probe-bcache -o udev /dev/bcache0' udevd[1870] : Successfully forked off '(spawn)' as PID 1912. udevd[1870] : bcache0: Process 'probe-bcache -o udev /dev/bcache0' succeeded. udevd[1870] : bcache0: /usr/lib/ udev/rules. d/69-bcache. rules:27 LINK 'bcache/ by-uuid/ 1522715e- a390-40db- 8d47-06fb728014 e5' udevd[1870] : bcache0: Handling device node '/dev/bcache0', devnum=b251:0 udevd[1870] : bcache0: Preserve already existing symlink '/dev/block/251:0' to '../bcache0' udevd[1870] : bcache0: Creating symlink '/dev/bcache/ by-uuid/ 1522715e- a390-40db- 8d47-06fb728014 e5' to '../../bcache0' udevd[1870] : bcache0: sd-device: Created db file '/run/udev/ data/b251: 0' for '/devices/ virtual/ block/bcache0' udevd[1870] : bcache0: Adding watch on '/dev/bcache0' udevd[1870] : bcache0: sd-device: Created db file '/run/udev/ data/b251: 0' for '/devices/ virtual/ block/bcache0' udevd[1870] : bcache0: Device (SEQNUM=5523, ACTION=change) processed udevd[1870] : bcache0: sd-device-monitor: Passed 388 byte to netlink monitor
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
Apr 21 14:15:22 ubuntu-focal systemd-
followed by the extra action:
Apr 21 14:15:43 ubuntu-focal systemd- udevd[1916] : bcache0: Processing device (SEQNUM=5524, ACTION=change) udevd[1916] : bcache0: Removing watch udevd[1916] : value '[dmi/id] sys_vendor' is 'QEMU' udevd[1916] : value '[dmi/id] sys_vendor' is 'QEMU' udevd[1916] : bcache0: /usr/lib/ udev/rules. d/60-persistent -storage. rules:109 Importing properties from results of builtin command 'blkid' udevd[1916] : bcache0: Probe /dev/bcache0 with raid and offset=0 udevd[1916] : bcache0: /usr/lib/ udev/rules. d/60-persistent -storage. rules:112 LINK 'disk/by- uuid/30b28bee- 6a1e-423d- 9d53-32c78ba545 4a' udevd[1916] : bcache0: Updating old name, '/dev/bcache/ by-uuid/ 1522715e- a390-40db- 8d47-06fb728014 e5' no longer belonging to '/devices/ virtual/ block/bcache0' udevd[1916] : bcache0: No reference left, removing '/dev/bcache/ by-uuid/ 1522715e- a390-40db- 8d47-06fb728014 e5' udevd[1916] : bcache0: Handling device node '/dev/bcache0', devnum=b251:0 udevd[1916] : bcache0: Preserve already existing symlink '/dev/block/251:0' to '../bcache0' udevd[1916] : bcache0: Creating symlink '/dev/disk/ by-uuid/ 30b28bee- 6a1e-423d- 9d53-32c78ba545 4a' to '../../bcache0' udevd[1916] : bcache0: sd-device: Created db file '/run/udev/ data/b251: 0' for '/devices/ virtual/ block/bcache0' udevd[1916] : bcache0: Adding watch on '/dev/bcache0' udevd[1916] : bcache0: sd-device: Created db file '/run/udev/ data/b251: 0' for '/devices/ virtual/ block/bcache0' udevd[1916] : bcache0: Device (SEQNUM=5524, ACTION=change) processed udevd[1916] : bcache0: sd-device-monitor: Passed 471 byte to netlink monitor
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
Apr 21 14:15:43 ubuntu-focal systemd-
So it appears the symlink is being added to /dev/bcache/ by-uuid/ 1522715e- a390-40db- 8d47-06fb728014 e5 and then the next udev action removes this symlink and adds dev/disk/ by-uuid/ 30b28bee- 6a1e-423d- 9d53-32c78ba545 4a instead.