Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 17:20:32 +0100
From:      Erik Norgaard <norgaard@locolomo.org>
To:        cpghost@cordula.ws
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Diskless NFS mounts weirdness
Message-ID:  <42122150.9030300@locolomo.org>
In-Reply-To: <20050215142237.GC56849@fw.farid-hajji.net>
References:  <20050215142237.GC56849@fw.farid-hajji.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42122150.9030300>