summaryrefslogtreecommitdiffstats
path: root/debian/udev
diff options
context:
space:
mode:
Diffstat (limited to 'debian/udev')
-rw-r--r--debian/udev/95-ceph-osd-lvm.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/udev/95-ceph-osd-lvm.rules b/debian/udev/95-ceph-osd-lvm.rules
new file mode 100644
index 000000000..00feae51f
--- /dev/null
+++ b/debian/udev/95-ceph-osd-lvm.rules
@@ -0,0 +1,13 @@
+# OSD LVM layout example
+# VG prefix: ceph-
+# LV prefix: osd-
+ACTION=="add", SUBSYSTEM=="block", \
+ ENV{DEVTYPE}=="disk", \
+ ENV{DM_LV_NAME}=="osd-*", \
+ ENV{DM_VG_NAME}=="ceph-*", \
+ OWNER:="ceph", GROUP:="ceph", MODE:="660"
+ACTION=="change", SUBSYSTEM=="block", \
+ ENV{DEVTYPE}=="disk", \
+ ENV{DM_LV_NAME}=="osd-*", \
+ ENV{DM_VG_NAME}=="ceph-*", \
+ OWNER="ceph", GROUP="ceph", MODE="660"