Disk mirroring


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Disk mirroring
# 1  
Old 01-25-2005
Disk mirroring

Good Morning Smilie

I have a new challenge to solve, I am going to write a new backup disk mirroring script. The current one, whcih is useing 'dd' caused some stalled systems Smilie
Currently I am in the phase of experimenting with different methods, I was thinking about dump/restore afio/cpio or rsync.
The best solution looks like rsync for me, but what os your opinion ?

The script will run 1 time a week and has to mirror the complete OS disk to a second 'backup' disk. Only the OS FS will be backed up, no data filesystems !
The backup will run on a live system, I cannot go down to sinle user mode and/or remount the FS readonly for backing up Smilie

With 'dd' the Linux system will be forced to flush all dirty pages, which caused the stalled situation I described before. So I need a mirror method with doesn't cause a extremly high load, because the systems are high loaded anyway and is more or less fast; of course I could need hours for it, but it should be finished the next morning Smilie

Thanks for all hints !

Btw, the systems are RH AS 2.1 systems, IA64 multi processor and big RAM. The disks are default SCSI disks (36 or 72 GB), primary and backup disks have a seperate controller each. The shell is free choosable, I thought on bash.

Cheers
malcom
# 2  
Old 01-25-2005
dd would be my choice, but the disadvantage is that it is block level, so it has to copy blocks that have not changed.

Is this a boot disk, or a data disk? If it is data, I would use cpio -pdmv
This will not copy files that have not changed, saving I/O.
# 3  
Old 01-26-2005
Hi,

it is the primary OS boot disk, and using dd on linux is a bit critical. The systems I wnt to mirror, are mostly NFS Fileservers. The dd command forces the linux system to flush all dirty pages, you can imagine what happens in that situation with the system Smilie It stalls ...

Therefore, I can everything except dd Smilie But dd was also my first idea, until this experience...

I already did some testings with rsync and it looks not so bad ..
# 4  
Old 01-26-2005
I have been told you can do this, but have never tried (will try next week when I get back to the office)
Code:
# cat /dev/rdsk/c0t0d0s2 > /dev/rdsk/c1t1d0s2

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Disk Mirroring

Hi, How to identify whether the disk is being mirrored or not in RHEL (2 Replies)
Discussion started by: gsiva
2 Replies

2. Solaris

disk mirroring

hi every body I'm new to solaris and I need your help in how to configure disk mirroring for 4 hard disks so that two of them will be replica to the other two ...??? Thanxx (7 Replies)
Discussion started by: mm00123
7 Replies

3. Solaris

Disk Mirroring on solaris 5.8

Hi Friends, I am having Sun Solaris 5.8 OS installed having 2 different size hard disk, sizes are c0t0d0s0(160 GB) and c0t2d0s0 (40GB). I have installed Sun Solaris 5.8 OS in c0t0d0s0 (160GB) harddisk. I have configured all the parameters required for disk mirroring. But when executing... (4 Replies)
Discussion started by: Vijayakumarpc
4 Replies

4. Solaris

Solaris 10 Disk Mirroring

Has anyone managed to set up disk mirroring in Solaris 10 yet? If so can you point me in the direction of some useful documentation please. Cheers (25 Replies)
Discussion started by: korfnz
25 Replies

5. UNIX for Advanced & Expert Users

Mirroring Disk Geometry

How can one mirror disk geometry from one hard disk to another in Solaris. Is disk snapshot same as a mirror? Pls explain. (3 Replies)
Discussion started by: lexusujx
3 Replies

6. Solaris

Help !! disk Mirroring

Hi I have a Sunfire X4100 box with a 4 disk Chassis (although I only have 2 disks in it). I have been asked to add two more disks into the chassis so that I can mirror the original two using SVM .....Ive read through a couple of SVM docs but am finding it a little confusing, and if any of you... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

7. Solaris

Disk mirroring

Hi I have two raw disk that I want to mirror and then create soft partition on that. Could someone please help in the steps required c0t1d0 c0t0d0 Thanks Ajwat (2 Replies)
Discussion started by: Ajwat
2 Replies

8. UNIX for Dummies Questions & Answers

Disk mirroring under RedHat 8

I would like to build a new box that has the disk mirrored to another IDE disk on a different channel. Does anyone know if a RAID controller like the Promise is supported under RedHat 8, or should I use a software RAID. (1 Reply)
Discussion started by: 98_1LE
1 Replies

9. Filesystems, Disks and Memory

Disk Mirroring?? have any idea???

After reading some books, I came across this idea of having a duplicate of your current hard drive on another second hard drive so that if the first hard drive happens to crash, the system can be up and running in quickly now, is there anybody in here who uses this method at work?? If there is,... (3 Replies)
Discussion started by: IMPORTANT
3 Replies

10. UNIX for Dummies Questions & Answers

what is disk mirroring in unix?

Can anyone give some answers on what is disk mirroring in Unix? It may be related to unix online backup. (2 Replies)
Discussion started by: asutoshch
2 Replies
Login or Register to Ask a Question