open-cas-linux/utils/60-persistent-storage-cas-load.rules
Jan Musial c4e15a1af7 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 <jan.musial@intel.com>
2019-11-18 15:59:37 +01:00

7 lines
154 B
Plaintext

ACTION=="remove", GOTO="cas_loader_end"
SUBSYSTEM!="block", GOTO="cas_loader_end"
RUN+="/lib/opencas/open-cas-loader /dev/$name"
LABEL="cas_loader_end"