From 4ab46a2153ea8826a565fc6e9641e42c746a3613 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Thu, 4 Mar 2021 12:30:14 -0600 Subject: [PATCH] EX-2771 lustre: add 80-es-multi-rail.conf Add /etc/sysctl.d/80-es-multi-rail.conf with all the needed sysctl settings for multi rail. Signed-off-by: John L. Hammond Change-Id: I98a1841b18f7edfaa9649de3a6bd84d516833220 Reviewed-by: Andreas Dilger Reviewed-by: Serguei Smirnov Reviewed-by: Li Xi Reviewed-on: https://review.whamcloud.com/41998 Tested-by: jenkins Tested-by: Maloo --- lustre.spec.in | 1 + lustre/conf/80-es-multi-rail.conf | 21 +++++++++++++++++++++ lustre/conf/Makefile.am | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 lustre/conf/80-es-multi-rail.conf diff --git a/lustre.spec.in b/lustre.spec.in index 554734d..2b10833 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -880,6 +880,7 @@ fi %if %{with zfs} %config(noreplace) %{_sysconfdir}/ldev.conf %endif +%config(noreplace) %{_sysconfdir}/sysctl.d/80-es-multi-rail.conf %config(noreplace) %{_sysconfdir}/lnet.conf %config(noreplace) %{_sysconfdir}/modprobe.d/ko2iblnd.conf %if %{with lustre_utils} diff --git a/lustre/conf/80-es-multi-rail.conf b/lustre/conf/80-es-multi-rail.conf new file mode 100644 index 0000000..402d979 --- /dev/null +++ b/lustre/conf/80-es-multi-rail.conf @@ -0,0 +1,21 @@ +# 80-es-multi-rail.conf - ARP and routing sysctls for multi-rail +# +# Note this overrides some rp_filter settings from +# /usr/lib/sysctl.d/50-default.conf. +# +# 'all' rules control existing interfaces +# 'default' rules control new interfaces +# But it's not so simple. See +# https://unix.stackexchange.com/questions/90443/what-is-the-difference-between-all-default-and-eth-in-proc-sys-net-ipv + +net.ipv4.conf.all.accept_local = 1 +net.ipv4.conf.all.arp_announce = 2 +net.ipv4.conf.all.arp_filter = 0 +net.ipv4.conf.all.arp_ignore = 1 +net.ipv4.conf.all.rp_filter = 0 + +net.ipv4.conf.default.accept_local = 1 +net.ipv4.conf.default.arp_announce = 2 +net.ipv4.conf.default.arp_filter = 0 +net.ipv4.conf.default.arp_ignore = 1 +net.ipv4.conf.default.rp_filter = 0 diff --git a/lustre/conf/Makefile.am b/lustre/conf/Makefile.am index a5ae94c..40902d9 100644 --- a/lustre/conf/Makefile.am +++ b/lustre/conf/Makefile.am @@ -36,6 +36,7 @@ SUBDIRS = resource DIST_SUBDIRS = resource EXTRA_DIST = lustre.dtd lustre2ldif.xsl top.ldif \ + 80-es-multi-rail.conf \ 99-lustre.rules lustre ldev.conf ko2iblnd.conf lsvcgss \ lnet_routes.conf lnet.conf lgssc.conf 99-lustre-server.rules @@ -69,3 +70,6 @@ endif modprobedir = $(sysconfdir)/modprobe.d modprobe_DATA = ko2iblnd.conf + +sysctldir = $(sysconfdir)/sysctl.d +sysctl_DATA = 80-es-multi-rail.conf -- 1.8.3.1