I created an image of two disks in a machine (sda, sdc) to ONE image on a remote drive. This worked fine.
I now want to restore said image to a new machine (the old one went up in smoke), but the drives in the new machine are differnt.
Here's what I need to happen:
sda(img) -> sdb(machine)
sdc(img) -> sda(machine)
I did google around quite a bit, but whatever I try to restore that image, I can't seem to find an option to remap that image or to do one disk at a time.
What am I missing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, there is a command cnvt-ocs-dev which can be used to change the device name in an image. However, I'm not sure if that command will work for an image created from two drives. So if you have enough diskspace, I would make a copy of the image first before starting to experiment with this command.
Tried that, it now doesn't recognize that folder as a valid image. Did a copy, so no problem. I managed to change the disk names in the target system to match those of the backup, but now I get "The image was saved from more than 1 disk. This program can only deal with the image taken from one disk.". I'll keep researching WTF Clonezilla is doing here :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just did a quick test with a VirtualBox VM containing two empty diskdrives. Could make a single image of both disks and restore that image on the same disks without a problem. I also could restore the disks one at a time. So it should work. No idea why it isn't working at your end, though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I created an image of two disks in a machine (sda, sdc) to ONE image on a remote drive. This worked fine.
I now want to restore said image to a new machine (the old one went up in smoke), but the drives in the new machine are differnt.
Here's what I need to happen:
sda(img) -> sdb(machine)
sdc(img) -> sda(machine)
I did google around quite a bit, but whatever I try to restore that image, I can't seem to find an option to remap that image or to do one disk at a time.
What am I missing?
Well, there is a command cnvt-ocs-dev which can be used to change the device name in an image. However, I'm not sure if that command will work for an image created from two drives. So if you have enough diskspace, I would make a copy of the image first before starting to experiment with this command.
Information of the command can be found here: https://drbl.org/management/techrpt.php?c=cnvt-ocs-dev&t=To%20change%20the%20device%20name%20in%20saved%20clonezilla%20image
So in your case your could try to rename de device names as folows (commands will have to be run as root, or you could use sudo):
Make sure to use the above order, because if you rename sdc to sda first (while there already is a sda device) you will probably have a problem.
I hope this helps, but no guarantee.
Tried that, it now doesn't recognize that folder as a valid image. Did a copy, so no problem. I managed to change the disk names in the target system to match those of the backup, but now I get "The image was saved from more than 1 disk. This program can only deal with the image taken from one disk.". I'll keep researching WTF Clonezilla is doing here :)
It seems that restoring a image containing TWO disks to a machine containing TWO disks is pretty much impossible... -.-
Just did a quick test with a VirtualBox VM containing two empty diskdrives. Could make a single image of both disks and restore that image on the same disks without a problem. I also could restore the disks one at a time. So it should work. No idea why it isn't working at your end, though.