From owner-freebsd-questions@FreeBSD.ORG Fri Jun 10 20:25:31 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 701BA16A41C for ; Fri, 10 Jun 2005 20:25:31 +0000 (GMT) (envelope-from tshadwick@goinet.com) Received: from mail.goinet.com (mail.goinet.com [208.207.72.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06A5243D75 for ; Fri, 10 Jun 2005 20:25:30 +0000 (GMT) (envelope-from tshadwick@goinet.com) Received: from mail.goinet.com (localhost.goinet.com [127.0.0.1]) by mail.goinet.com (8.13.1/8.13.1) with ESMTP id j5AKPRpj095128; Fri, 10 Jun 2005 15:25:28 -0500 (CDT) (envelope-from tshadwick@goinet.com) Received: from localhost (tshadwick@localhost) by mail.goinet.com (8.13.1/8.13.1/Submit) with ESMTP id j5AKPROp095125; Fri, 10 Jun 2005 15:25:27 -0500 (CDT) (envelope-from tshadwick@goinet.com) X-Authentication-Warning: mail.goinet.com: tshadwick owned process doing -bs Date: Fri, 10 Jun 2005 15:25:27 -0500 (CDT) From: Tony Shadwick To: "Haulmark, Chris" In-Reply-To: <6FC9F9894A9F8C49A722CF9F2132FC220445A599@ms05.mailstreet2003.net> Message-ID: <20050610152451.K78603@mail.goinet.com> References: <6FC9F9894A9F8C49A722CF9F2132FC220445A599@ms05.mailstreet2003.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on mail.goinet.com X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: RE: system cloning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 20:25:31 -0000 Except that I still have to re-install all of the packages in /usr/local, many which have been built from sources. or are you suggesting that I copy out the /usr/local tree as well? Will that break anything? On Fri, 10 Jun 2005, Haulmark, Chris wrote: > Someone broke the silence: > >> Here's my scenario: >> >> I have a system that we are running in production that there was an >> oversight on, and it has a single hard drive installed (32GB SCSI I >> believe), rather than a 3 drive raid5 array. We would like >> to correct >> this, but we have all sorts of up-to-date packages and config files >> that we've tweaked that we would hate to just start over on it. > > There are many methods. If it was my situtation and it's only up to 32 GB > of space, I would do this: > > 1. Get a temporary computer with at least 32 GB available. Set it up as a > file server (Samba) with FreeBSD. > > 2. Mount it as a NFS server. > > 3. Use cp -rp for those directories (etc, usr, home, and all the others). Also > write down the partitions. > > 4. Replace the single hard drive with 3 hard drives and set up RAID 5. > > 5. Install the exact same partitions that you originally had on the previous > setup system. > > 6. Mount the file share on your temporary computer system with the data. > > 7. Copy everything back except those in /boot > > 8. Modify the fstab file if there is a difference between the original and > the new setup. > > I might have forgot something. > > Chris Haulmark > > >> There's a tool for OSX called "Carbon Copy Cloner" that would >> take care of >> this for me, which is basically a series of copy commands >> that takes the >> filesystem from one drive to another, preserving EVERYTHING >> important, and then bless the boot volume. >> >> Is there anything similar I can do on FreeBSD? My boss >> thinks I should be >> able to tar up the entire filesystem, create the raid array, >> and untar the >> whole thing on the new array. I seem to think this will fail >> due to block >> devices that have changed, fstab entries that have changed (though >> this is correctable), and symlinks that don't nicely come across. >> >> Thoughts? >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > >