From owner-freebsd-questions@FreeBSD.ORG Thu Jan 6 21:21:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93E48106564A for ; Thu, 6 Jan 2011 21:21:57 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6D9328FC0A for ; Thu, 6 Jan 2011 21:21:57 +0000 (UTC) Received: by pzk32 with SMTP id 32so3816562pzk.13 for ; Thu, 06 Jan 2011 13:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=C5SjjUdxK+vIEPMWzieWzsclxelDPklkoAoahi57ME0=; b=TUdSh8XtvOcwabS/1bFGcbKQs62MQIOJ3QfZ7wHzQULiB/b7U4ag7RQ2HoD0TFYQ7r Ul8FaaQ6SHkV+QVE7bfmriB6kPxNG0Arnqmd+/ztqS96cqSE4BdI/04rZW2se15yqk3g sa/sK35RMNnyZqdb9irUJg575AN+P6qXTyg6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nyGYLZbDhfOdFN9qHKlPn9NEboIdReDiF+vfOSYgqp+VIls9Svd3d5oC66gbaWGATm HIT1sSpNWfB3GAuxeRHxzzKbOSqzdq7lqaXoHnodBFeNLhtnBra0SUp6BvBMwdTp4oiO CnSNm6ywa1LUUytAXLmlpHJ0uDUzNnpVLP0mk= MIME-Version: 1.0 Received: by 10.142.11.9 with SMTP id 9mr1123434wfk.59.1294347355313; Thu, 06 Jan 2011 12:55:55 -0800 (PST) Received: by 10.142.218.3 with HTTP; Thu, 6 Jan 2011 12:55:55 -0800 (PST) Date: Thu, 6 Jan 2011 15:55:55 -0500 Message-ID: From: grarpamp To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Upgrading from FreeBSD 4.10 to 8.1? 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: Thu, 06 Jan 2011 21:21:57 -0000 I know I'll take heat from everyone else who responded saying to effectively ship a new box. But maybe this user has significant costs involved with that. Along with any other reasons... v4 to v8 can be done. I've done it entirely live over the net. Nothing crazy about it. The basic idea is that there are too many changes and tools involved to fart around with build/install world, mergemaster, CD's, sysinstall, etc. And they're just not aware of such a jump. And you can't trust the idiots on the other end to get it right even if they would work. You are the SA, free your mind. To the initiate, it would be harrowing. To the seasoned SA, it's logical cake. So backup your entire 4.x box over the wire, there will be no return. Go find a box and install v8 however you want it. If you fail, this one goes to the shipper asap. You can use a vm but that will take longer to ship. You are very wise to also install a v4 box and overlay your backup on it first for testing the entire process. If you failed to heed SA wisdom about separating / /usr /usr/local /var /home /boot, free space, etc on the original v4 box, your life will be much harder. But if you have a ton of unpartitioned free space on it, you can fix that one at a time too ;) Be very aware of boot sectors, loaders, partitions, slices, fstab, sizes, /dev, ifconfig, packet filters, kernel config, etc. That kills most people. Also, since all your apps will be pristine v8 vers, you need to sort out their use of the old data and config. If you have space, rsync -Haxi upload your v8 mountpoints to separate staging dirs on the v4 box. It helps narrow your power fail window :) Get on the v4 box. If you've got console, re boot -s. If not, take it down till only init, sh and sshd remain. If you have space, rsync your current v4 mountpoints to some backup dirs. You're going to need static versions of rsync, openssh, sh, su, and any other tools. You'll need to kill and run the static sshd... re: fstat, umount, libs, etc. If you want, truncate /etc/rc to load only static sshd from /root. This gives you some chance at recovery. Again, do a local trial run to figure out what, where and when you want or need all the tricks and in what order. Mount everything read-write and rsync -Haxi --delete from your v8 staging dirs (whether local or remote) over top of the live but now library freed v4 mountpoints. Reboot ;) Don't forget to lay down new boot sectors etc as and when needed during or after the above. It works, don't complain to me or this list if you break it :)