Re: copy root disk from IDE to scsi

Previous thread: Secure FTP by Joe Spenceley on Monday, December 10, 2007 - 5:59 am. (2 messages)

Next thread: Re: Seg fault by cc1 on AMD-K6-2 by Mats Erik Andersson on Monday, December 10, 2007 - 6:44 am. (1 message)
To: <misc@...>
Date: Monday, December 10, 2007 - 6:40 am

Hi,
random question. I've a sun system running obsd 4.2. I though I didn'
have a scsi card with openfirmware so I installed on an IDE disk and
spent ages configuring the system. It's a mail server also so I don't
have the time to have a few hours of down time.

How would I go about cloning the 80Gb IDE disk which has only a few
Gb's in use to my 73Gb scsi disk? Also what boot variables need to be
set in openfirmware to get it to autoboot from the scsi disk?

thanks

Khalid

To: OpenBSD-Misc <misc@...>
Date: Monday, December 10, 2007 - 11:15 am

There's no way to do this without downtime, but you can probably
minimize it by 1) cloning over the network (i.e. put the scsi in a
different box, and use `scp mailserver:/$part dev_box:/mnt/$part`
(where part is one of 'home', 'usr', 'var') 2) figuring out what files
are getting written to and cloning them last, since you must shutdown
the mailserver for this or risk losing consistency. Since it's a
mailserver, you can probably copy every partition except for var
without shutting down the machine.
You can't copy the disklabels directly because the disks are different
sizes, so you'll have to re-disklabel manually. Plug the scsi into an
extra box OpenBSD box you have lying around (you have extras, right?).
fdisk and disklabel the scsi. Mount its partitions somewhere (I
suggested /mnt/$part but you can pick).
Does this help?

-Nick

Previous thread: Secure FTP by Joe Spenceley on Monday, December 10, 2007 - 5:59 am. (2 messages)

Next thread: Re: Seg fault by cc1 on AMD-K6-2 by Mats Erik Andersson on Monday, December 10, 2007 - 6:44 am. (1 message)