From owner-freebsd-questions Tue Apr 9 13:21:29 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA09643 for questions-outgoing; Tue, 9 Apr 1996 13:21:29 -0700 (PDT) Received: from phear.digex.net (phear.digex.net [204.91.98.116]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA09626 for ; Tue, 9 Apr 1996 13:21:24 -0700 (PDT) Received: from digex.net (eleet.digex.net [204.91.98.68]) by phear.digex.net (8.6.12/8.6.12) with SMTP id QAA01295; Tue, 9 Apr 1996 16:21:19 -0400 X-Mailer: InterCon TCP/Connect II 2.3.1 MIME-Version: 1.0 Message-Id: <9604091621.AA15091@digex.net> Date: Tue, 9 Apr 1996 16:21:15 -0400 From: "Steven D. Arnold" To: questions@freebsd.org Cc: disc@digex.net Subject: rdisting a lab of FreeBSD machines Content-Type: Text/Plain; charset=US-ASCII Content-Disposition: Inline Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I have a lab of FreeBSD machines we use for classes here. I want to create a master installation and have a method to quickly and automatically restore all the machines to an initial condition. The problem with rdist is that we can't simply rdist everything all at once on the entire filesystem -- I suspect overwriting /etc, /dev or the kernel could cause problems. ;) Another possibility -- create a bootable floppy with a small kernel, a Bourne shell and a script that NFS mounts some filesystems and copies over their contents to the local hard disks. The problem with this is that I am having a very hard time getting a floppy disk to be big enough to hold a kernel plus a Bourne shell. The FreeBSD minimal kernel is 1,085,639 bytes and the shell is about 300K. Ought to be small enough for a 1440K floppy, you say. But when I make a disk with the following commands: fdformat -f 1440 fd0.1440 disklabel -w /dev/fd0.1440 fd1440 newfs -m 0 /dev/fd0.1440 ...it turns out to only be ~880K. Out of desperation, I tried formatting the floppy with the above commands, except I used the 1720K configuration instead of the 1440. I ended up with a disk capable of holding 1137K -- still not enough. The idea of netbooting also occured to me, but it seems to require just as many resources on a floppy as the second plan. Basically, all I need is a solution for restoring these FreeBSD machines to a known configuration. Preferably in the end it will only involve me running a script and/or inserting a floppy in the drives of each machine, allowing the machine to then restore itself. Any ideas? Anyone else on this list faced a similar situation? Please respond to me directly. Thanks! -------------------------------------------------------------- Steven D. Arnold yami@digex.net "Nothing is impossible for the man who doesn't have to do it himself." --Weiler's Law http://phear.digex.net/liberoz.html My PGP public key: http://phear.digex.net/thoth/pgp.html