Solved

Mirroring boot disk

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

708 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

11 Experts available now in Live!

Get 1:1 Help Now