Re: Remote system directories

2004-12-21 Thread Ruben de Groot
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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Remote system directories

2004-12-20 Thread Kevin D. Kinsey, DaleCo, S.P.
Andrew P. wrote:
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?

I'd say "no" to that last; not.without some modifications (and I 
wouldn't care
to speculate on the advisability of that).  Here's the first obvious 
problem I see:

[642] Mon 20.Dec.2004 23:09:16[EMAIL PROTECTED]/home/kadmin]
ps -aux | grep tty
root   68398  0.0  0.1  1408  600  p5  R+   11:09PM   0:00.00 grep tty
root 682  0.0  0.0  1280   12  v0  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv0
root 683  0.0  0.0  1280   12  v1  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv1
root 684  0.0  0.0  1280   12  v2  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv2
root 685  0.0  0.0  1280   12  v3  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv3
root 686  0.0  0.0  1280   12  v4  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv4
root 687  0.0  0.0  1280   12  v5  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv5
root 688  0.0  0.0  1280   12  v6  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv6
root 689  0.0  0.0  1280   12  v7  Is+  Wed12PM   0:00.00 
/usr/libexec/getty Pc ttyv7

No tty's are available without /usr 
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Remote system directories

2004-12-20 Thread Andrew P.
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? 
I'm now experimenting with different subfolders of /usr and other dirs, 
and I'd be glad to hear a piece of advice.

Best wishes,
Andrew
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"