Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FC13535AF for ; Sat, 9 Mar 2024 23:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710027369; cv=none; b=o7wdQVJrjBGJj5f2yy+YlxgBg4sYFGAG3ZBTOTjr9w7oFWGcZNMVJWLNRdFvJNKWfu582UxIgN71a6XeKGgxYna0PbDQdfBwb+1lUVBRMhWmCGNXDTTpWv6/qb7G4IFV4GFFZmMFWXQ6XFVQjUKq4erSGJXlwUYnDbf4yGSlS4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710027369; c=relaxed/simple; bh=nvFnmB9qWv8VZu1h/ucScXdzbQkY9jadGFV6ENVCLGY=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lIebWUPpvkfklZofAxLNpDNnJ6MridJkmax1MSMErfgbbmmKx8c8K+burA9Ku7f8l498XoNc11kndkTV86o7ip4KsVkyJRYogmGQrVbw6owDYGbzCR5u+1/U6SyenOD6hDtS0BhydDCFCW3L9xPPB2m03vDhAksCkGTN/3uOcVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Dp1fp9cc; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Dp1fp9cc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710027366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nDI5kf8RKRBNUKTvccT/IIlzpcM03QY0UxO0X2tpQrs=; b=Dp1fp9cckYOqXhIqQQ9f6MRpWKHjUFunWfOgckEr8RGoYjm1eJVh10mGc1q9NqismLtjQr So+Aqe7vj8bjBTaCtKb3nakLGs/NY2Bmces4hqHdjlU4EJv+7+OfTSRAt4TsGnQTTPbITk TEUp29L3b9744Wg8m7p5nBb7LtsC5rE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-660-VdtVDhOYNNmTG_twe2XcSw-1; Sat, 09 Mar 2024 18:36:04 -0500 X-MC-Unique: VdtVDhOYNNmTG_twe2XcSw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8D6B78517C6 for ; Sat, 9 Mar 2024 23:36:04 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.16.116]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8196B37F6 for ; Sat, 9 Mar 2024 23:36:04 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id 0022712D1FC for ; Sat, 9 Mar 2024 18:36:04 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 05/10] nfsd: add a pipefs-directory config to nfs.conf Date: Sat, 9 Mar 2024 18:35:58 -0500 Message-ID: <20240309233603.1306533-6-smayhew@redhat.com> In-Reply-To: <20240309233603.1306533-1-smayhew@redhat.com> References: <20240309233603.1306533-1-smayhew@redhat.com> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Debian uses /run/rpc_pipefs for the pipefs mountpoint by default, but the nfs.conf that we deploy doesn't have a pipefs-directory configuration. That will cause any userspace daemons that use the pipefs to fail to start/restart because they'll now be looking for the pipefs to be mounted on /var/lib/nfs/rpc_pipefs... unless we reboot the nfsd server after we overwrite Debian's default nfs.conf with our own. So let's just add the pipefs-directory configuration to nfs.conf instead. Signed-off-by: Scott Mayhew --- playbooks/roles/nfsd/templates/nfs.conf.j2 | 3 +++ playbooks/roles/nfsd/vars/Debian.yml | 2 ++ playbooks/roles/nfsd/vars/RedHat.yml | 2 ++ playbooks/roles/nfsd/vars/Suse.yml | 2 ++ 4 files changed, 9 insertions(+) diff --git a/playbooks/roles/nfsd/templates/nfs.conf.j2 b/playbooks/roles/nfsd/templates/nfs.conf.j2 index 2396f429..8e89eba4 100644 --- a/playbooks/roles/nfsd/templates/nfs.conf.j2 +++ b/playbooks/roles/nfsd/templates/nfs.conf.j2 @@ -1,3 +1,6 @@ +[general] +pipefs-directory={{ pipefs_directory }} + [nfsd] udp=y threads={{ nfsd_threads }} diff --git a/playbooks/roles/nfsd/vars/Debian.yml b/playbooks/roles/nfsd/vars/Debian.yml index 3bb9e810..d8aa50bc 100644 --- a/playbooks/roles/nfsd/vars/Debian.yml +++ b/playbooks/roles/nfsd/vars/Debian.yml @@ -9,3 +9,5 @@ fstype_userspace_progs: btrfs: btrfs-progs ext4: e2fsprogs xfs: xfsprogs + +pipefs_directory: /run/rpc_pipefs diff --git a/playbooks/roles/nfsd/vars/RedHat.yml b/playbooks/roles/nfsd/vars/RedHat.yml index 590818ca..091c827c 100644 --- a/playbooks/roles/nfsd/vars/RedHat.yml +++ b/playbooks/roles/nfsd/vars/RedHat.yml @@ -10,3 +10,5 @@ fstype_userspace_progs: btrfs: btrfs-progs ext4: e2fsprogs xfs: xfsprogs + +pipefs_directory: /var/lib/nfs/rpc_pipefs diff --git a/playbooks/roles/nfsd/vars/Suse.yml b/playbooks/roles/nfsd/vars/Suse.yml index 73b06c83..786e5f81 100644 --- a/playbooks/roles/nfsd/vars/Suse.yml +++ b/playbooks/roles/nfsd/vars/Suse.yml @@ -8,3 +8,5 @@ fstype_userspace_progs: btrfs: btrfsprogs ext4: e2fsprogs xfs: xfsprogs + +pipefs_directory: /var/lib/nfs/rpc_pipefs -- 2.43.0