Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 1995 16:41:27 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        tinguely@plains.nodak.edu (Mark Tinguely)
Cc:        hackers@FreeBSD.org
Subject:   Re: About readonly root partition
Message-ID:  <199501131541.QAA00703@labinfo.iet.unipi.it>
In-Reply-To: <199501131503.AA12584@plains.NoDak.edu> from "Mark Tinguely" at Jan 13, 95 09:02:41 am

next in thread | previous in thread | raw e-mail | index | archive | help
> >  In the interest of better support for diskless and in general for
> >  multiple installations, it seems to me that it would be nice if
> >  /etc were *not* on the same filesystem as root, but rather in /var or
> >  some other location, so that each machine can have its own copy.
> 
> IMHO this should be a local change not a distributed change. Also IMHO, we
> should push for DATALESS environments and discourage DISKLESS enviroments.
> disks are far too cheap to have a 40-60 meg drive for boot,swap,tmp,parts of
> var to save the network which will be saturated with the applications as it is.

My points are that 
1) the proposed change (or something equivalent) helps in having
   a readonly root, which is good for a lot of uses, including
   running the system from a CD, running experimental kernels
   withouth risking to trash your system files, etc. etc.; as a
   side effect, it helps having DISKLESS environments, which at
   times are useful.
2) it does not break the world: /etc/rc is still there, it just gives
   you an additional option at the cost of a couple of lines of code in
   /sbin/init.

DATALESS vs DISKLESS is another topic of discussion.

I agree that swap, tmp, var *must* be local if possible, but that
is already supported (I like it a lot having local swap, either on
a dedicated partition or on the DOS filesystem[haven't tried the
latter], and all the non-permanent, writable portion of the filesystem
on mfs which in turn goes to the local swap).

The usefulness of a local boot partition is questionable (to me at
least), as the kernel is loaded only once.

Coming to programs, it becomes hard to say what is going to be
local and what not. Probably the VM system should know what's local and
what is not, to choose the best policy: as an example, I may be wrong
but I think that executable files are not usually saved to backing
store because it is considered cheaper to recover the code from the
filesystem. This might be a bad idea if swap is local (as it should
always be) and the file is on an NFS filesystem.

David and John might have some better comments on this subject.

	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522
====================================================================



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