Solved

Mirroring boot disk

Posted on 1997-05-06
1
354 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

864 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now