Solved

Mirroring boot disk

Posted on 1997-05-06
1
357 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sparc Solaris hangs without crash dump & no events from messages 3 101
can't umount nfs share after server goes offline... 4 103
dot directory in FreeBSD??? 4 102
Sed question 2 139
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
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.:
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.
Suggested Courses

739 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