From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 16:20:42 2005 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 CCE5016A4CE for ; Tue, 15 Feb 2005 16:20:42 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30C6B43D4C for ; Tue, 15 Feb 2005 16:20:42 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [IPv6???1] (localhost.daemonsecurity.com [127.0.0.1]) by top.daemonsecurity.com (Postfix) with ESMTP id 82121FD01F; Tue, 15 Feb 2005 17:20:40 +0100 (CET) Message-ID: <42122150.9030300@locolomo.org> Date: Tue, 15 Feb 2005 17:20:32 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050127 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: cpghost@cordula.ws References: <20050215142237.GC56849@fw.farid-hajji.net> In-Reply-To: <20050215142237.GC56849@fw.farid-hajji.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Diskless NFS mounts weirdness 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: Tue, 15 Feb 2005 16:20:42 -0000 cpghost@cordula.ws wrote: > 1. /var *is* actually mounted on > 192.168.122.1:/pool/diskless_rw/192.168.122.11/var > but it is not listed in mount(8)s output. Why? > > 2. Which part of the system created /dev/md0 and mounted that > on /var? I don't need that and would like to save some RAM > anyway. I guess you are using 5.3 or newer? the /etc/rc.d/diskless script has been replaced, by among other things, a script /etc/rc.d/var which creates a memory disk, /dev/md0, using up your precious ram. I have tried to remove the script but get an error because nfs wants to update the /var/db/mounttab - before /var is actually mounted - so the mount fails. The /etc/rc.d/var script creates a memory disk if it detects that /var is read-only - which is the case since the nfs mount failed. And the memory disk is then populated. If the root partition is rw-mounted the nfs-mount will succeed. If you have enough ram this is not a problem, simply let var be a memory disk. You can set the size of the memory disk in rc.conf. > /dev/md0 on /var (ufs, local, soft-updates) > 192.168.122.1:/pool/diskless_rw/192.168.122.11/var on /var (nfs) Now this is wierd - how can you have to mounts on the same mount point? Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2