From 16c4f2fa5676cbfb91cc1b2d4bb6778c608e1dbf Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Fri, 21 Feb 2020 00:50:38 -0800 Subject: [PATCH] LU-13219 tests: add nfs-server service in setup-nfs.sh For RHEL 8.1, the NFS server service is nfs-server instead of nfs. Test-Parameters: trivial \ clientdistro=el8.1 serverdistro=el8.1 \ testlist=parallel-scale-nfsv3,parallel-scale-nfsv4 Change-Id: I5a97c8fe419187412dfc02047ed66141f567d7fb Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/37663 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Wei Liu Reviewed-by: Oleg Drokin --- lustre/tests/setup-nfs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/tests/setup-nfs.sh b/lustre/tests/setup-nfs.sh index fa497fb..daed37a 100755 --- a/lustre/tests/setup-nfs.sh +++ b/lustre/tests/setup-nfs.sh @@ -29,7 +29,8 @@ setup_nfs() { # restart nfs server according to distro do_nodes $LUSTRE_CLIENT "{ [[ -e /etc/SuSE-release ]] && service nfsserver restart; } || - service nfs restart" || return 1 + service nfs restart || + service nfs-server restart" || return 1 do_nodes $NFS_CLIENTS "chkconfig --list rpcidmapd 2>/dev/null | grep -q rpcidmapd && service rpcidmapd restart || @@ -65,7 +66,8 @@ cleanup_nfs() { do_nodes $LUSTRE_CLIENT "{ [[ -e /etc/SuSE-release ]] && service nfsserver stop; } || - service nfs stop" || return 1 + service nfs stop || + service nfs-server stop" || return 1 do_nodes $LUSTRE_CLIENT "sed -i '/${MNTPNT##*/}/d' /etc/exports" || return 1 -- 1.8.3.1