Solved

Mirroring boot disk

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtualizing TAPE on dual VIOS 3 102
Skill Development 15 183
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 104
Wrap Oraccle SQL*Plus executable Command 4 95
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…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

830 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