From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 00:14:42 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A64961065671 for ; Mon, 1 Sep 2008 00:14:42 +0000 (UTC) (envelope-from jd_bronson@sbcglobal.net) Received: from cheyenne.hanadarko.com (75-9-98-151.lightspeed.milwwi.sbcglobal.net [75.9.98.151]) by mx1.freebsd.org (Postfix) with ESMTP id 4E18B8FC14 for ; Mon, 1 Sep 2008 00:14:42 +0000 (UTC) (envelope-from jd_bronson@sbcglobal.net) Received: from lenovo.sbcglobal.net (lenovo.hanadarko.com [10.43.82.5]) by cheyenne.hanadarko.com (8.14.3/8.14.3) with ESMTP id m7VNrbCI024287; Sun, 31 Aug 2008 18:53:37 -0500 (CDT) Message-Id: <200808312353.m7VNrbCI024287@cheyenne.hanadarko.com> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sun, 31 Aug 2008 18:53:36 -0500 To: Lloyd M Caldwell From: "J.D. Bronson" In-Reply-To: <48BB2359.4000208@xmission.com> References: <48BB2359.4000208@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: questions@freebsd.org, lmc@xmission.com Subject: Re: dump/restore don't work, handbook lies 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: Mon, 01 Sep 2008 00:14:42 -0000 At 05:03 PM 8/31/2008 -0600, Lloyd M Caldwell wrote: >Hello, > >this all on a 7.0 freebsd system. > >Dump/Restore do NOT work as indicated in the handbook (or man >pages). It would be better to remove information from the handbook >rather then have information that doesn't work. Are you trying to resize the same disc or migrate to a NEW disk? Migrating to a new (larger) disc is trivial, at least in my experience. (I have never tried to resize any partitions though on a same disc, since new hard drives are cheap enough) Here is what I do to migrate to a totally new disc: Shutdown and install 2nd DRIVE boot machine... run sysinstall on the 2nd DRIVE (slice/dice/and setup MBR) then I run a small script like this: (Some presumptions are made ahead of time here) #!/bin/sh newfs /dev/ad2s1a newfs /dev/ad2s1d newfs /dev/ad2s1e newfs /dev/ad2s1f newfs /dev/ad2s1g newfs /dev/ad2s1h sleep 4 tunefs -n enable /dev/ad2s1a tunefs -n enable /dev/ad2s1d tunefs -n enable /dev/ad2s1e tunefs -n enable /dev/ad2s1f tunefs -n enable /dev/ad2s1g tunefs -n enable /dev/ad2s1h sleep 4 mount /dev/ad2s1a /mnta mount /dev/ad2s1d /mntd mount /dev/ad2s1e /mnte mount /dev/ad2s1f /mntf mount /dev/ad2s1g /mntg mount /dev/ad2s1h /mnth dump -C 32 -0Lf - / | ( cd /mnta ; restore xf - ) dump -C 32 -0Lf - /usr | ( cd /mntd ; restore xf - ) dump -C 32 -0Lf - /var | ( cd /mnte ; restore xf - ) dump -C 32 -0Lf - /home | ( cd /mntf ; restore xf - ) dump -C 32 -0Lf - /staff | ( cd /mntg ; restore xf - ) dump -C 32 -0Lf - /users | ( cd /mnth ; restore xf - ) umount /mnt* Then shut down. Place the 2nd drive in the 1st slot and turn it back on. Maybe there is a better or simpler way, but I have been doing this for years and never had any issues. YMMV -JD