Whamcloud - gitweb
LU-12530 utils: narrow l_tunedisk udev rule 99/36599/2
authorOlaf Faaland <faaland1@llnl.gov>
Mon, 28 Oct 2019 20:34:53 +0000 (13:34 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 12 Nov 2019 04:06:57 +0000 (04:06 +0000)
Narrow the udev rule so that it runs l_tunedisk only for ext4 block
devices formatted for Lustre.

Devices which are members of ZFS pools do not need such tunings to
be provided by lustre - they are handled by ZFS.

There are currently no other OSD types in the tree.  Sites/Vendors which
support other OSDs will need to adjust the rule appropriately.

Change-Id: Iba8b20fc705da0259ab71ee33b92193cae7e8eae
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-on: https://review.whamcloud.com/36599
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/conf/99-lustre-server.rules

index fdd21ec..7fc0114 100644 (file)
@@ -1,3 +1,9 @@
 # Ensure block devices re-added to the system allow for large writes (LU-9551)
 # Ensure block devices re-added to the system allow for large writes (LU-9551)
-ACTION=="add|change", SUBSYSTEM=="block", RUN+="/usr/sbin/l_tunedisk /dev/%k"
+# Currently applies only to ldiskfs-formatted devices
+ACTION!="add|change",    GOTO="l_tunedisk_end"
+SUBSYSTEM!="block",      GOTO="l_tunedisk_end"
+ENV{ID_FS_TYPE}!="ext4", GOTO="l_tunedisk_end"
 
 
+ENV{ID_FS_LABEL}=="MGS|*-MDT*|*-OST*", RUN+="/usr/sbin/l_tunedisk /dev/%k"
+
+LABEL="l_tunedisk_end"