Solved

Mirroring boot disk

Posted on 1997-05-06
1
355 Views
Last Modified: 2010-04-21
We're running a network using SCO Unix version 3.5.4.  Our main Hard Drive (SCSI disk) is near the end of its reliable lifetime.  I need to mirror the contents of this disk to a new SCSI hard disk.  Then, I'd need to switch the disks so that the new disk becomes the boot disk.  In effect, I shall be mirroring the contents of the old disk with the new, and replacing the old with the new.

What are the necessary commands to do this, and how do I configure the new HD for simultaneous operation with the old in order to accomplish the actual mirroring phase?

I am assuming that once this is accomplished I will be able to simply switch the SCSI ID's of the drives and the system will function as before.
0
Comment
Question by:keesh
1 Comment
 
LVL 2

Accepted Solution

by:
lockhart earned 100 total points
ID: 2006264
All you need is dd. If your drives were /dev/sd-old and /dev/sd-new, your dd command would be:

dd if=/dev/sd-old of=/dev/sd-new

This assumes that your drive's block size is 512 bytes on both drives. Read the dd manpage to see how to use the ibs (input block size) and obs (output block size) flags that will allow you to have different block sizes on your old and new drives.

Once you've done this command (it'll take awhile), you should be able to switch scsi id's and go.

Mike
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question