From 7b2cb54858daa60d560fd6374c4ecba552a10d27 Mon Sep 17 00:00:00 2001 From: Olaf Faaland Date: Mon, 28 Oct 2019 13:34:53 -0700 Subject: [PATCH] LU-12530 utils: narrow l_tunedisk udev rule 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 Reviewed-on: https://review.whamcloud.com/36599 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Nathaniel Clark Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/conf/99-lustre-server.rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/conf/99-lustre-server.rules b/lustre/conf/99-lustre-server.rules index fdd21ec..7fc0114 100644 --- a/lustre/conf/99-lustre-server.rules +++ b/lustre/conf/99-lustre-server.rules @@ -1,3 +1,9 @@ # 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" -- 1.8.3.1