public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: "Seiichi Ikarashi (Fujitsu)" <s.ikarashi@fujitsu.com>,
	 "'linux-nfs@vger.kernel.org'" <linux-nfs@vger.kernel.org>
Cc: "'smayhew@redhat.com'" <smayhew@redhat.com>
Subject: Re: [PATCH] nfsdcld: prevent from accessing /var/lib/nfs/nfsdcld in read-only file system during boot
Date: Fri, 04 Oct 2024 10:43:31 -0400	[thread overview]
Message-ID: <69e8cb4eb9bdf086a1f5210af5643b145da8cfdd.camel@kernel.org> (raw)
In-Reply-To: <OSZPR01MB7772A3965EF12B8BEBFEAA7A88722@OSZPR01MB7772.jpnprd01.prod.outlook.com>

On Fri, 2024-10-04 at 09:04 +0000, Seiichi Ikarashi (Fujitsu) wrote:
> I saw a VMWare guest that hit a rare condition during boot;
> nfsdcld started too early to check access on /var/lib/nfs/nfsdcld which were
> still in read-only file system as follows:
> 
>   nfsdcld[...]: Unexpected error when checking access on /var/lib/nfs/nfsdcld: Read-only file system
>   systemd[1]: nfsdcld.service: Main process exited, code=exited, status=226/NAMESPACE
>   systemd[1]: nfsdcld.service: Failed with result 'exit-code'.
> 
> nfsdcld.service needs to wait the root file system to be remounted at least.
> 
> Signed-off-by: Seiichi Ikarashi <s.ikarashi@fujitsu.com>
> ---
>  systemd/nfsdcld.service | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/systemd/nfsdcld.service b/systemd/nfsdcld.service
> index 3ced565..188123d 100644
> --- a/systemd/nfsdcld.service
> +++ b/systemd/nfsdcld.service
> @@ -4,7 +4,7 @@ Documentation=man:nfsdcld(8)
>  DefaultDependencies=no
>  Conflicts=umount.target
>  Requires=rpc_pipefs.target proc-fs-nfsd.mount
> -After=rpc_pipefs.target proc-fs-nfsd.mount
> +After=rpc_pipefs.target proc-fs-nfsd.mount systemd-remount-fs.service
>  
>  [Service]
>  Type=forking
> 

Good catch! Seems like a reasonable fix.

Reviewed-by: Jeff Layton <jlayton@kernel.org>

  reply	other threads:[~2024-10-04 14:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-04  9:04 [PATCH] nfsdcld: prevent from accessing /var/lib/nfs/nfsdcld in read-only file system during boot Seiichi Ikarashi (Fujitsu)
2024-10-04 14:43 ` Jeff Layton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-18 10:47 Seiichi Ikarashi (Fujitsu)
2024-10-18 12:53 ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69e8cb4eb9bdf086a1f5210af5643b145da8cfdd.camel@kernel.org \
    --to=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=s.ikarashi@fujitsu.com \
    --cc=smayhew@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox