From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 01:09:37 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 C269F16A4B3 for ; Mon, 20 Oct 2003 01:09:37 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CAC143F75 for ; Mon, 20 Oct 2003 01:09:36 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h9K89MjA016172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Oct 2003 09:09:25 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h9K89MVO016171; Mon, 20 Oct 2003 09:09:22 +0100 (BST) (envelope-from matthew) Date: Mon, 20 Oct 2003 09:09:22 +0100 From: Matthew Seaman To: wolfie@cotse.net Message-ID: <20031020080922.GC15500@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , wolfie@cotse.net, freebsd-questions@freebsd.org References: <200310191236.56846@X-tra> <200310191252.52885@X-tra> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2JFBq9zoW8cOFH7v" Content-Disposition: inline In-Reply-To: <200310191252.52885@X-tra> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Correcting my own msg (was Sanity and /var/tmp) 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, 20 Oct 2003 08:09:37 -0000 --2JFBq9zoW8cOFH7v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 19, 2003 at 12:52:52PM -0700, wolfie@cotse.net wrote: > On Sunday 19 October 2003 12:36 pm, I sent a message with a few ugly=20 > typos.=20 >=20 > It should have read:=20 > > This may be an incredibly stupid question. Nevertheless I'm gonna=20 > ask... > > > > Is it safe and sane in a RELENG_5_1 system to create and use > > /var/ tmp via a script in /etc/rc.local: > > > > [no entry in FSTAB] > > mdconfig -a -t swap -s ... -u 10 > > newfs -O2 /dev/md10 > > mount /md10 /var/tmp > > chmod 1777 /var/tmp Using a memory based filesystem for /tmp (rather than /var/tmp) is certainly viable. Which ever temporary file system is involved, you should be able to configure it entirely out of /etc/fstab -- see the mdmfs(8) man page. Historically /var/tmp was always a "real" filesystem and the contents of /var/tmp were expected to persist across reboots. Stuff in /tmp was expected to disappear. However, nowadays that distinction is fading away and many people will advise you to have just one temporary file system and use sym-links to make it appear in all of the expected places. Running with a memory based /var/tmp should be fine generally. You'll need to double check that you aren't running any applications which rely on the persistence of /var/tmp over reboots. That's going to be uncommon nowadays, but there are a couple of examples I can think of directly: eg. vi(1) won't be able to recover editor files across reboots and the TeX/LaTeX/metafont font cache will be wiped out by the reboot and so forth. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --2JFBq9zoW8cOFH7v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/k5gydtESqEQa7a0RAscmAJ0bTrjC+xXWs8yCqlymcoeiQPmm9QCfeZJX znOG7J9xiRir7SXtebMPRN8= =gGrF -----END PGP SIGNATURE----- --2JFBq9zoW8cOFH7v--