DD command to backup and restore

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support DD command to backup and restore
# 1  
Old 11-09-2010
DD command to backup and restore

Hi,

Currently I have 2 servers. 1 is already installed with RHEL4(withmyapplications) and the other one is still brand new.

My question is, is it possible to use DD command to backup the whole harddrive for the RHEL4 server and restore it to the new brand server so that I do not have to install it and do the works again from the start.

and if my RHEL4 server is HP prolliant and the 'brand new' server is Sun Microsystems server. is it possible to use the dd command to clone the whole disk and restore it using DD?

Because I did search using a search button on top and came up with this thread about DD, and it seems like it can not be done if I use two different servers or different harddisk brand and size.
https://www.unix.com/filesystems-disk...d-command.html

I have no idea whether it will bring any difference. Your help is greatly appreciate!

Thank You guys in advance.

Last edited by flekzout; 11-09-2010 at 11:10 PM..
# 2  
Old 11-10-2010
If they are not identical I doubt it work..(certainly not...)
You can use dd if you have a same disk in spare to "clone" your system, but for that system only...( you have a bootable backup of your system would be more correct)

you have nothing to guarantee you have same chipsets BIOS compatibility, scsi/disk controllers, lan cards etc...

(P.S. It can be done with different size disks only if disk is greater, but you loose the extra space...)
# 3  
Old 11-10-2010
It won't work, if hardware's are not compatible ...

Had it been only the data, it could had worked well ...
Unfortunately the RHEL4 system, having been configured on the server 1 would be having all the device drivers compatible to this HP server's H/w configurations.

It would still work only when you do a laborious job of replacing all such drivers and add a few extra manually. What's the point then?

The disk copy images are usually kept for the following scenarios:

1) When you fear of any crash and need to backup/preserve a well configured system.

2) To facilitates factry default in appliances, when users mess up thing in their appliance/systems settings.

3) To enable you to apply a similar setting across a number of similar machines. Eg. big corporates where IT department keep such a image to install over employees desktops.


Better Install a fresh RHEL4 on the SUN system and then mount the disk mage of this HP system as an additional storage and/or copy the data only -however, ofcourse take the dd snap of that HP machine.

Cheers!!!!!
Smilie

Last edited by Praveen_218; 11-10-2010 at 02:34 PM.. Reason: Typo errors ...
# 4  
Old 11-10-2010
Your guys answer is really help me to understand the use of DD.

Thanks to both of you.. appreciate it!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Backup and restore query

I have some old directories and files that I which to archive off. I have created archive using -p option with /usr/sbin/backup to a file. If I then do a du -g on the original directory and the archive differ as I'd expect due to using the p flag to compress the files < 2gb as part of the backup. ... (1 Reply)
Discussion started by: gefa
1 Replies

2. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

3. Solaris

Zpool backup and restore

hi, my requirement goes something like this: In current setup, we have SPARC server running Solaris10 5/08. Out of 3 HDD available, 2 HDD (other than root) were zpool-ed and 3 zones were created. Now, we have bought a new server with similar H/W config and planning to move the zones... (1 Reply)
Discussion started by: EmbedUX
1 Replies

4. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

5. AIX

How to restore from mksysb backup

system is not booting ... i want to restore from mksysb backup. (2 Replies)
Discussion started by: AIXlearner
2 Replies

6. AIX

AIX backup and restore

Hello, Some background so you can see what I'm trying to do on AIX: In Windows its possible to partition a single hard drive into 2 separate logical paritions which may appear as a C and a D drive. It is then possible to to use 3rd party software such as Power Quest Drive Image to create a... (3 Replies)
Discussion started by: quickfirststep
3 Replies

7. HP-UX

F-Backup restore

Hello! i have a blank harddrive and a complete tape backup of the workstation. the backup is made with F-Backup. Now my question is: how can i restore my workstation? thanks for every idea! paul tittel hup-si (3 Replies)
Discussion started by: paultittel
3 Replies

8. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

9. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies

10. UNIX for Dummies Questions & Answers

Cannot restore a TAR backup

I backed up a unix database using "tar -cvf /dev/rmt1 -N 800 /*" Normally I would restore this using "tar -xvf /dev/rmt1 -N 800" This is reporting an error about "not enough memory" I have done a new test backup and restore using the same commands and they work. ANY IDEAS ? (2 Replies)
Discussion started by: Ross.Goodman
2 Replies
Login or Register to Ask a Question