Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2004 13:50:27 +0100
From:      Ruben de Groot <mail25@bzerk.org>
To:        "Andrew P." <infofarmer@mail.ru>
Cc:        questions@freebsd.org
Subject:   Re: Remote system directories
Message-ID:  <20041221125027.GE53768@ei.bzerk.org>
In-Reply-To: <41C7A6D8.5010908@mail.ru>
References:  <41C7A6D8.5010908@mail.ru>

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



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