Subject: Re: Upgrading Hard Drive
To: Mauricio <supremedalek@hotpop.com>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-pmax
Date: 10/23/2003 17:20:21
On 2003.10.23 15:28 Mauricio wrote:

> 	I am thinking on doing the unthinkable and replacing the 
> 512MB HD in my 5000/25 with a 2GB one.  What is the best way to move 
> everybody in?  I assume, go single user and tar or dd them around?
Connect the drive to the machine, disklabel it, make file systems, mount
them, copy data, install bootstrap (see installboot(8)), (edit
/etc/fstab if you changed partitioning sheme), halt, connect new disk
insted the old, boot, done.

You have multiple ways to copy the data. IMHO best is to use dump. E.g.
mount the new /, /usr, /var, ... to /mnt, /mnt/usr, /mnt/var, .... then
do:
cd /mnt
dump -0 -f - -B 10000000 / | restore -rf -
cd /mnt/usr
dump -0 -f - -B 10000000 /usr | restore -rf -
etc. etc. etc.

Mount the target drive woth option "-o async" or "-o softdep". This will
speed up the copy process considerably.
-- 


tschüß,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/