From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 17:06:10 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 848F71065671 for ; Tue, 2 Sep 2008 17:06:10 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 36D1B8FC08 for ; Tue, 2 Sep 2008 17:06:10 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id m82H0ZCr063385; Tue, 2 Sep 2008 13:00:35 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id m82H0ZdG063384; Tue, 2 Sep 2008 13:00:35 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 2 Sep 2008 13:00:35 -0400 From: Jerry McAllister To: "J.D. Bronson" Message-ID: <20080902170035.GB63128@gizmo.acns.msu.edu> References: <48BB2359.4000208@xmission.com> <200808312353.m7VNrbCI024287@cheyenne.hanadarko.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808312353.m7VNrbCI024287@cheyenne.hanadarko.com> User-Agent: Mutt/1.4.2.2i Cc: questions@freebsd.org, Lloyd M Caldwell 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: Tue, 02 Sep 2008 17:06:10 -0000 On Sun, Aug 31, 2008 at 06:53:36PM -0500, J.D. Bronson wrote: > 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. This is the right way, except you left out creating the /mnta.../mnth mount points - which you probably already have created, but are not there on a base system. ////jerry > > Maybe there is a better or simpler way, but I have been doing this for years > and never had any issues. > > YMMV > > -JD > > _______________________________________________ > 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"