Unix System Total Replication


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix System Total Replication
# 1  
Old 11-02-2000
Network

Is there any way to totally replicate a unix system from one hardisk to another? And be able to swap the hardisk and restart the system without any error?
TQ
# 2  
Old 11-03-2000
Yes, of course. The dd() command. Disk-to-disk copy.
# 3  
Old 11-03-2000
Tq Neo, for the reply, but i think that would not solve my problem. I want to be able to duplicate the hardisk, say for backup purposes, and when the system actually crash or got corrupted, i can just change the hardisk to my backup and restart the computer without any hassle at all. Any ideas?
*tried dd() command, could not run system with copied hardisk.*
# 4  
Old 11-03-2000
We have used dd many times and it works fine. Many linux vendors also use dd to duplicate entire disk sets for linux boxes they are selling. That is how they can get a lot of linux boxes out the door quickly. If they had to do the standard install on each platform, it would take forever!

When you run dd between hard disks with the same geometry, the two disks have a mirror copy of each other. If you mount the copied disk in place of the original disk, it will work fine. If I'm not mistaken dd also copies all the boot sector and MBR boot information as well. Here is plain example:

(not counting blocks, other flags, etc.)

dd if=/dev/hda of=/dev/hdb

where /dev/hda is the original and /dev/hdb is the new one. Of course, your hard drives might be on different device drivers depending on your configuration, boot sequence, etc.

Then you must replace /dev/hda with /dev/hdb.

This should work. But I've not done if for some time, so please check the man pages for dd.

[Edited by Neo on 11-03-2000 at 09:51 PM]
# 5  
Old 04-27-2001
Network Attempted Mirroring with dd: failed

Dear Neo & Nuraman,

we had the same problem and wanted to mirror our boot disk
to a backup one. So we tried to use dd as suggested by Neo.
Our boot disk is partitioned in eight... partitions.
Our backup disk is exactly the same as the boot one (same
model, size) and has been partitioned in the same way as the boot one.
So we tried to dd each partition on the boot disk to the
corresponding partition on the backup

Example: dd if=/dev/dsk/c0t0d0s0 of=/dev/dsk/c0t2d0s0

At the end, we took a look at the backup disk: it was
empty, no file which was on the boot disk was found on the
backup.
We even tried to swap disks, but the server does not boot
anymore, a message is shown saying: Boot failed, loaded
file is not executable.

Did we dd'ed the correct devices ?
On our system there are the same partitions listed as
/dev/rdsk/c0t...
May be we must dd those devices instead ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies

2. Linux

Increasing total data size per file system request for block drivers

Hi All, I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows: struct request *req; uint card_addr,total_bytes; struct request_queue *rq = BlkDev->queue; req = elv_next_request(rq); .. .. card_addr = req->sector*512;... (1 Reply)
Discussion started by: amio
1 Replies

3. Shell Programming and Scripting

Recursive Replication of Unix folders to Windows

Requirements: ftp files recursively from unix to windows. Replicate directory paths on unix (source) to windows (destination) and place files in their respective folders. There are no set number of files per directory nor fix number of dirA or dirB etc.... Source OS: Solaris... (5 Replies)
Discussion started by: mlv_99
5 Replies

4. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

5. UNIX for Dummies Questions & Answers

df+du=Total space allocated(for a file system)

Hi All, Will df+du=Total space allocted for a file system?? Is the above correct. Please correct me If iam wrong. In one my programs the above is not happening. Please help me out. Many thanks. Regards, Manas (2 Replies)
Discussion started by: manas6
2 Replies

6. UNIX for Dummies Questions & Answers

folder replication between windows and unix

1. How do i replicate folders between windows and unix. if i create a subfolder under NDC in windows, it should automatically create a subfolder in unix as well. windows nt /NDC/SUBFOLDERS hp ux /NDC/SUBFOLDERS 2. How do i ftp a file from windows to unix using automated... (0 Replies)
Discussion started by: systemsb
0 Replies

7. HP-UX

How should I know the total RAM available on UNIX

Hi How Should I know the Total RAM available on HP-UX box? (7 Replies)
Discussion started by: skull123
7 Replies

8. HP-UX

HP Unix replication solution

Hi, I looking to setup HP Unix to HP Unix replication as plan of business continuity. The setup can be active passive or active active. Anyone can give me some idea what solution able to perform that? Thanks (3 Replies)
Discussion started by: ufo_999
3 Replies

9. UNIX for Dummies Questions & Answers

is this the UNIX operating system board? TOTAL NEWBIE

I'm trying to find information to help me switch to UNIX os from Windows98. Is this where I should be? If so, can someone get me started? I have a Compaq Presario 5030 with a USR 56k modem and other peripherials. Sound card is integrated onto the motherboard (I think). So, I need drivers, etc. Any... (2 Replies)
Discussion started by: leohutt
2 Replies
Login or Register to Ask a Question