Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031239AbWLEUMz (ORCPT ); Tue, 5 Dec 2006 15:12:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031249AbWLEUMz (ORCPT ); Tue, 5 Dec 2006 15:12:55 -0500 Received: from pat.uio.no ([129.240.10.15]:35782 "EHLO pat.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031239AbWLEUMy (ORCPT ); Tue, 5 Dec 2006 15:12:54 -0500 Subject: Re: Mounting NFS root FS From: Trond Myklebust To: Jan Engelhardt Cc: Janne Karhunen , MrUmunhum@popdial.com, linux-kernel@vger.kernel.org In-Reply-To: References: <4571CE06.4040800@popdial.com> <24c1515f0612040351p6056101frc12db8eb86063213@mail.gmail.com> <1165246177.711.179.camel@lade.trondhjem.org> <200612041912.30527.Janne.Karhunen@gmail.com> <1165265229.5698.21.camel@lade.trondhjem.org> <1165347465.5742.88.camel@lade.trondhjem.org> Content-Type: text/plain Date: Tue, 05 Dec 2006 15:12:45 -0500 Message-Id: <1165349565.5742.104.camel@lade.trondhjem.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-UiO-Spam-info: not spam, SpamAssassin (score=-3.787, required 12, autolearn=disabled, AWL 1.21, UIO_MAIL_IS_INTERNAL -5.00) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1277 Lines: 29 On Tue, 2006-12-05 at 20:59 +0100, Jan Engelhardt wrote: > >> >> ./run_init -c /mnt /sbin/init; # or similar > >> >> > >> >> And you can also start locking after pivot_rooting to /mnt, that would > >> >> not even require (/mnt)/var/lib/nfs to be a separate mount. > >> > > >> >Much better idea. You can delay starting rpc.statd until you have set up > >> >your filesystem provided that you are not running any programs that > >> >require NLM locking. If you do need to run such a program before you > >> >start rpc.statd, then you will have to use the '-onolock' mount option. > >> > >> Since we're on the topic locking, is it because I am not running > >> statd on the client that my NFS client hangs during boot phase? > > > >If you have applications that try to set locks before rpc.statd is up > >and running, then that would explain it. > > Even if the nfs mount is mounted using -o ro,nolock? No. The 'nolock' option means that the NFS client will use the VFS posix locks only, which will not depend on rpc.statd. Trond - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/