From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 12:48:02 2004 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 18B9216A4CE for ; Tue, 21 Dec 2004 12:48:02 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69DB243D39 for ; Tue, 21 Dec 2004 12:48:01 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.1/8.13.1) with ESMTP id iBLCoR8F078488; Tue, 21 Dec 2004 13:50:27 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id iBLCoRgF078487; Tue, 21 Dec 2004 13:50:27 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Tue, 21 Dec 2004 13:50:27 +0100 From: Ruben de Groot To: "Andrew P." Message-ID: <20041221125027.GE53768@ei.bzerk.org> References: <41C7A6D8.5010908@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41C7A6D8.5010908@mail.ru> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, FROM_ENDS_IN_NUMS autolearn=failed version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on ei.bzerk.org cc: questions@freebsd.org Subject: Re: Remote system directories 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, 21 Dec 2004 12:48:02 -0000 On Tue, Dec 21, 2004 at 07:30:16AM +0300, Andrew P. typed: > Hello! > > I've got a freebsd box with a 2Gb hard drive and a server with a lot of > free space. I want to make use of nfs and let the "small" box mount most > of its directories in read-write mode from the server. What directories > are safe to be moved to a remote location? The idea is that should the > server go down, the box must still be bootable and accessible via ssh. > > I've read hier manual page, but it doesn't go deep into how bad the > system need each directory at startup - and how heavy access is to each > folder during normal operation. > > Can the system boot into multi-user mode in case /usr fails to mount? No > I'm now experimenting with different subfolders of /usr and other dirs, > and I'd be glad to hear a piece of advice. If I were you I would do a minimal (though complete) installation of FreeBSD on the client machine. Enable sshd and put a script in /usr/local/etc/rc.d to nfs-mount whatever you need from the server. (remember, you can easily mount over an existing directory hierarchy, thereby hiding the original files) Something like: #!/bin/sh # # check if nfs-server is up /usr/bin/showmount -e nfs-server if [ $? -eq 0 ]; then # mount nfs shares /sbin/mount -t nfs nfs-server:/export/usr /usr # etc fi