From c4e15a1af79be94f3fdc693385fd541d6b7b1f1d Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Mon, 18 Nov 2019 13:09:00 +0100 Subject: [PATCH] Try to load devices on change udev event This fixes CAS-on-LVM scenario. Currently how CAS works: 1. LVM instantinates device nodes (not usable at this point) 2. CAS tries to add cores (fails) 3. LVM ends device configuration and issues change uevent 4. We ignore change uevents so we do nothing This patch makes sure we don't ignore change uevents. Still, some messages about not being able to open core device can show up in syslog - there's room for improvement. Signed-off-by: Jan Musial --- utils/60-persistent-storage-cas-load.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/60-persistent-storage-cas-load.rules b/utils/60-persistent-storage-cas-load.rules index 31a93eb..126d313 100644 --- a/utils/60-persistent-storage-cas-load.rules +++ b/utils/60-persistent-storage-cas-load.rules @@ -1,4 +1,4 @@ -ACTION!="add", GOTO="cas_loader_end" +ACTION=="remove", GOTO="cas_loader_end" SUBSYSTEM!="block", GOTO="cas_loader_end" RUN+="/lib/opencas/open-cas-loader /dev/$name"