diff --git a/src/lib/udev/rules.d/65-context.rules##apk.one b/src/lib/udev/rules.d/65-context.rules##apk.one index 8d356c4..6da454a 100644 --- a/src/lib/udev/rules.d/65-context.rules##apk.one +++ b/src/lib/udev/rules.d/65-context.rules##apk.one @@ -13,6 +13,10 @@ SUBSYSTEM=="block", ACTION=="change", \ ENV{RESIZE}=="1", \ RUN+="/sbin/service one-context-force restart" +SUBSYSTEM=="scsi", ACTION=="change", \ + ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED", \ + RUN+="/sbin/service one-context-force restart" + # Handle swap hot-attach SUBSYSTEM=="block", ACTION=="add", \ ENV{ID_FS_TYPE}=="swap", \ diff --git a/src/lib/udev/rules.d/65-context.rules##deb.one b/src/lib/udev/rules.d/65-context.rules##deb.one index 3c17c9f..52c6f8e 100644 --- a/src/lib/udev/rules.d/65-context.rules##deb.one +++ b/src/lib/udev/rules.d/65-context.rules##deb.one @@ -17,6 +17,10 @@ SUBSYSTEM=="block", ACTION=="change", \ ENV{RESIZE}=="1", \ RUN+="/usr/sbin/service one-context-force start" +SUBSYSTEM=="scsi", ACTION=="change", \ + ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED", \ + RUN+="/usr/sbin/service one-context-force start" + # Handle swap hot-attach SUBSYSTEM=="block", ACTION=="add", \ ENV{ID_FS_TYPE}=="swap", \ diff --git a/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one b/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one index 4824636..76f3aea 100644 --- a/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one +++ b/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one @@ -16,6 +16,10 @@ SUBSYSTEM=="block", ACTION=="change", \ ENV{RESIZE}=="1", \ RUN+="/bin/systemctl --no-block start one-context-force.service" +SUBSYSTEM=="scsi", ACTION=="change", \ + ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED", \ + RUN+="/bin/systemctl --no-block start one-context-force.service" + # Handle swap hot-attach SUBSYSTEM=="block", ACTION=="add", \ ENV{ID_FS_TYPE}=="swap", \ diff --git a/src/lib/udev/rules.d/65-context.rules##rpm.sysv.one b/src/lib/udev/rules.d/65-context.rules##rpm.sysv.one index 5eb3b75..fae9e08 100644 --- a/src/lib/udev/rules.d/65-context.rules##rpm.sysv.one +++ b/src/lib/udev/rules.d/65-context.rules##rpm.sysv.one @@ -7,6 +7,10 @@ SUBSYSTEM=="block", ACTION=="change", \ ENV{RESIZE}=="1", \ RUN+="/sbin/service one-context-force start" +SUBSYSTEM=="scsi", ACTION=="change", \ + ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED", \ + RUN+="/sbin/service one-context-force start" + # Handle swap hot-attach SUBSYSTEM=="block", ACTION=="add", \ ENV{ID_FS_TYPE}=="swap", \