B #194: Live-resize boot disk on SCSI

pull/198/head
Vlastimil Holer 5 years ago
parent 5df43d72f6
commit 4b77825708
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -13,6 +13,10 @@ SUBSYSTEM=="block", ACTION=="change", \
ENV{RESIZE}=="1", \ ENV{RESIZE}=="1", \
RUN+="/sbin/service one-context-force restart" 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 # Handle swap hot-attach
SUBSYSTEM=="block", ACTION=="add", \ SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="swap", \ ENV{ID_FS_TYPE}=="swap", \

@ -17,6 +17,10 @@ SUBSYSTEM=="block", ACTION=="change", \
ENV{RESIZE}=="1", \ ENV{RESIZE}=="1", \
RUN+="/usr/sbin/service one-context-force start" 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 # Handle swap hot-attach
SUBSYSTEM=="block", ACTION=="add", \ SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="swap", \ ENV{ID_FS_TYPE}=="swap", \

@ -16,6 +16,10 @@ SUBSYSTEM=="block", ACTION=="change", \
ENV{RESIZE}=="1", \ ENV{RESIZE}=="1", \
RUN+="/bin/systemctl --no-block start one-context-force.service" 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 # Handle swap hot-attach
SUBSYSTEM=="block", ACTION=="add", \ SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="swap", \ ENV{ID_FS_TYPE}=="swap", \

@ -7,6 +7,10 @@ SUBSYSTEM=="block", ACTION=="change", \
ENV{RESIZE}=="1", \ ENV{RESIZE}=="1", \
RUN+="/sbin/service one-context-force start" 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 # Handle swap hot-attach
SUBSYSTEM=="block", ACTION=="add", \ SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="swap", \ ENV{ID_FS_TYPE}=="swap", \

Loading…
Cancel
Save