From owner-freebsd-questions@FreeBSD.ORG Mon May 26 08:29:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A4E837B401 for ; Mon, 26 May 2003 08:29:12 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A14843F75 for ; Mon, 26 May 2003 08:29:11 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.6p2/8.12.6) with ESMTP id h4QFSZM2047275; Mon, 26 May 2003 10:28:35 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)h4QFSYCV047272; Mon, 26 May 2003 10:28:35 -0500 (CDT) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Mon, 26 May 2003 10:28:34 -0500 (CDT) From: Eduardo Viruena Silva To: William Rose In-Reply-To: <1053944894.28015.14.camel@miniluv.zip-it.org> Message-ID: <20030526102101.H46888@Gina.esfm.ipn.mx> References: <1053936567.27834.26.camel@miniluv.zip-it.org> <1053944894.28015.14.camel@miniluv.zip-it.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: PXE boot seems to use incorrect NFS root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 15:29:12 -0000 On Mon, 26 May 2003, William Rose wrote: > On Mon, 2003-05-26 at 19:43, Eduardo Viruena Silva wrote: > > You did not say which version of FreeBSD you are using. > > Whoops! Sorry. FreeBSD 4.7. > > > Diskless boot has two steps implemented by > > scripts: /etc/rc.diskless1 and /rc.etc/diskless2. > > Hmm. I saw these. In /etc/rc, it checks the value of the > vfs.nfs.diskless_valid sysctl, and if it's non-zero, then > /etc/rc.diskless1 is executed. But how does that sysctl get set? So I > assumed I didn't need to do anything to have /etc/rc.diskless1 run. > More importantly, the job for rc.diskless1 seems to be creating a > mfs-based /etc. I'm mounting the NFS partition read-write, so I figured > this wasn't important. > > > If you have /conf/default/etc, this directory is copied in > > a memory file system where /etc is mounted. If you > > have /conf/client_IP/etc then you can configure a particular > > client in there, depending on its IP. > > I didn't create a /conf, because I didn't want a customised /etc per > machine. Also, at this point I am allowing the PXE client to connect to > the gateway NFS export with read-write and -maproot=root > > > Now, it seems to me you are not setting "/etc/fstab" correctly. > > Look at mine: > > > > Isabeau:/usr/diskless/rootfs/etc> cat fstab > > 192.168.123.112:/usr/diskless/rootfs / nfs rw 0 0 > > 192.168.123.112:/usr /usr nfs rw 1 1 > > Isabeau:/usr/diskless/rootfs/etc> > > My fstab: > > # Device Mountpoint FStype Options D P > 192.168.0.1:/pxeboot / nfs rw 1 1 > proc /proc procfs rw 0 0 > > > are you sure your /etc/fstab says: "nfs" after the mounting points? > > Yes. > > Does this help? mmmh... nop, not really. I wrote a step by step guide to diskless some months ago. I found this: ===================================== 7. Server NFS configuration: In /etc/exports file, add the line: /usr -maproot=0:0 -alldirs 192.168.123.176 and, then: killall -HUP mountd While testing, I forgot include -maproot=0:0. According to exports(5), /usr is exported but the client did not have root permission [see man exports(5)] on this directory, and my diskless system did not boot. ===================================== Now, in your server, make: tail -f /var/log/messages and, in another session, make: killall -HUP mountd get back to the first session, what does it report? please, post /etc/exports also. > > cheers, > Will > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > - ______ _ * / /###\ / \ __ /\ /\ * / ./#### \ * \__|_/ | | / \/ \ | b#####| * _ | __ | | __ = .. \____ \ \_\#####/ / \| / \ | | /\_\/ = \_| * \___\###/ * \_/\_/\__/\__\/_/\__/ = \______/ _ | |