From: Olaf Faaland Date: Mon, 28 Oct 2019 20:34:53 +0000 (-0700) Subject: LU-12530 utils: narrow l_tunedisk udev rule X-Git-Tag: 2.13.51~193 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=7b2cb54858daa60d560fd6374c4ecba552a10d27;hp=cd1faa0124f21e12a5ecd83c709c13918264fc86 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 --- 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"