Return-Path: linux-nfs-owner@vger.kernel.org Received: from natasha.panasas.com ([67.152.220.90]:44478 "EHLO natasha.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864Ab2AYSvb (ORCPT ); Wed, 25 Jan 2012 13:51:31 -0500 Message-ID: <4F204F20.5080809@panasas.com> Date: Wed, 25 Jan 2012 20:51:12 +0200 From: Boaz Harrosh MIME-Version: 1.0 To: Jim Rees CC: Srinivas KANDAGATLA , , , , , Subject: Re: [RFC:PATCH 3.1.0] do_mount: Add mount retry option for nfs root mount. References: <1327503003-21722-1-git-send-email-srinivas.kandagatla@st.com> <4F202BD4.5020400@panasas.com> <20120125183200.GA26907@umich.edu> In-Reply-To: <20120125183200.GA26907@umich.edu> Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org List-ID: On 01/25/2012 08:32 PM, Jim Rees wrote: > Boaz Harrosh wrote: > > On 01/25/2012 04:50 PM, Srinivas KANDAGATLA wrote: > > From: Srinivas Kandagatla > > > > This patch adds mountretry kernel parameter for nfs root mount. > > mount retry indicates the number of times nfs root mount attempts to be > > made before giving up. If this option is not specified, the default > > value of 3 retries is used. > > > > If the system is set to have root on NFS. And the root is not found > what does it do? does it Just bums out with a recovery console? > > So what better options does it have other then retry for ever. die? > > I always thought that was inconsistent. With an hard mount NFS > will never give up and will retry for ever freezing all IOers until > the server came back. Only with root-mount it gives up. > > Please explain what is the benefits of giving up at all. Can a machine > be at all usable without it's root? > > Doesn't grub have some fallback logic in case the given kernel/root fails? If grub has one set, then it can also put a parameter to specify the retry count. (I do like this patch) > Also, don't you want some indication that it's not working other than just a > blank screen? Sure print like hell on every loop bigger then 5 (And sleep between trys) but keep trying until interrupted (alt+ctrl+delete) I'm just saying that the default should be "max_uint" not 5 Just my $0.017 Boaz