Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36127

Help, Backup using dd

$
0
0
Hi!

I have this doub.

Look this scenario.

ServerA
I run this in terminal. This is the output.

Code:

[root@ServerA ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.0G  2.7G  68M  98% /
/dev/sda1            190M  17M  164M  10% /boot
tmpfs                236M  81M  156M  35% /dev/shm
[root@ServerA ~]#

---------------------



ServerB
I run this in terminal. This is the output.

Code:

[root@ServerB ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.0G  2.7G  68M  98% /
/dev/sdb1            190M  17M  164M  10% /boot
tmpfs                236M  81M  156M  35% /dev/shm
[root@ServerB ~]#













*SITUATION*
- ServerA is running in
/dev/sda
/dev/sda1
/dev/sda2

- ServerB is running in
/dev/sdb
/dev/sdb1
/dev/sdb2


I made a backup of entire disk of ServerA:
dd if=/dev/sda of=/media/usb/fulldisk.img

Perfect.


Now, I want to restore that image to ServerB.
dd if=/media/usb/fulldisk.img of=/dev/sdb

Perfect.



*The problem*
The ServerB now is identical to ServerA, BUT, BUT...the fulldisk.img is backup of /dev/sda (ServerA) that means, the image inside, have /etc/fstab configured to work using /dev/sda NOT /dev/sdb... So, if I restore the image and try to boot ServerB, the boot will fail because is going to try to run from /dev/sda BUT now is NOT /dev/sda, is /dev/sdb!!
How can I solve this?

Viewing all articles
Browse latest Browse all 36127

Trending Articles